['$rootScope', '$scope', '$routeParams', 'Restangular', 'AssignmentMediator', 'AssignmentService', 'DataService', 'Message', function($rootScope, $scope, $routeParams, Restangular, AssignmentMediator, AssignmentService, DataService, Message) {

    <% import 'Core/Angular/Macro/Controller.tpl' as macro_controller %>
    <%= macro_controller.EntityMeta('Edit brand - Brands') %>
    <%= macro_controller.EntityGet({'nameSingular': 'brand', 'namePlural': 'brands'}) %>
    <%= macro_controller.EntityUpdate({'nameSingular': 'brand', 'namePlural': 'brands'}) %>

    <%= macro_controller.PanelDataService({
        'defaultType': 'image',
        'types': [
            { 'nameSingular': 'image', 'namePlural': 'images', 'limit': 12, 'select': 'Variations.*', 'hasOrigin': true, 'hasUploader': true },
            { 'nameSingular': 'file', 'namePlural': 'files', 'limit': 20, 'hasOrigin': true, 'hasUploader': true },
        ],
        'watch': ['brand.logo_image_id', 'brand.ambiental_image_id', 'brand.ambientar_video_id', 'brand.catalog_file_id', 'brand.logo_file_id'],
        'origin': 'brand',
    }) %>
}]
