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

    <% import 'Core/Angular/Macro/Controller.tpl' as macro_controller %>
    <%= macro_controller.EntityMeta('New Brand - Brands') %>
    <%= macro_controller.EntityCreate({'nameSingular': 'brand', 'namePlural': 'brands', 'return_path': path({"module": "brands", "controller": "edit"}, "admin") }) %>

    <%= 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',
    }) %>
}]