import ngModule from '../module';
import Section from 'salix/components/section';

class Controller extends Section {
    constructor($element, $) {
        super($element, $);
        this.filter = {
            include: [
                {
                    relation: 'mandateType',
                    scope: {
                        fields: ['id', 'name']
                    }
                }, {
                    relation: 'company',
                    scope: {
                        fields: ['id', 'code']
                    }
                }
            ]
        };
    }
}

Controller.$inject = ['$element', '$scope'];

ngModule.vnComponent('vnClientMandate', {
    template: require('./index.html'),
    controller: Controller
});