1/**
2 * A module for the configuration
3 *
4 * @module app/configuration/index
5 * @exports app/configuration/index
6 */
7
8window.angular && (function (angular) {
9    'use strict';
10
11    angular
12        .module('app.configuration', [
13            'ngRoute',
14            'app.constants',
15            'app.common.services'
16        ])
17        // Route configuration
18        .config(['$routeProvider', function ($routeProvider) {
19            $routeProvider
20                .when('/configuration/network', {
21                    'template': require('./controllers/network-controller.html'),
22                    'controller': 'networkController',
23                    authenticated: true
24                })
25                .when('/configuration/security', {
26                    'template': require('./controllers/security-controller.html'),
27                    'controller': 'securityController',
28                    authenticated: true
29                }).when('/configuration/date-time', {
30                    'template': require('./controllers/date-time-controller.html'),
31                    'controller': 'dateTimeController',
32                    authenticated: true
33                })
34                .when('/configuration/file', {
35                    'template': require('./controllers/file-controller.html'),
36                    'controller': 'fileController',
37                    authenticated: true
38                }).when('/configuration', {
39                    'template': require('./controllers/network-controller.html'),
40                    'controller': 'networkController',
41                    authenticated: true
42                }).when('/configuration/firmware', {
43                'template': require('./controllers/firmware-controller.html'),
44                'controller': 'firmwareController',
45                authenticated: true
46            });
47        }]);
48
49})(window.angular);
50