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