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