/* global angular, random */
angular.module("app").config([
    '$stateProvider',
    function ($stateProvider) {
        $stateProvider.state('main.caja_tag_arqueo', {
            url: '/caja_tag/arqueo',
            templateUrl: 'templates/caja/caja-arqueo.html' + random,
            controller: 'CajaArqueoCtrl',
            resolve: {
                loadMyCtrl: [
                    '$ocLazyLoad',
                    function ($ocLazyLoad) {
                        return $ocLazyLoad.load([
                            'js/controllers/caja-tag-controllers.js' + random,
                            'js/services/caja-tag-services.js' + random
                        ]);
                    }
                ]
            }
        });
    }
]);