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