Initial OpenECOMP policy/engine commit
[policy/engine.git] / ecomp-sdk-app / src / main / webapp / app / policyApp / controller / policyController.js
1 /*-
2  * ============LICENSE_START=======================================================
3  * ECOMP Policy Engine
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 /**
22  * 
23  */
24 angular.module('abs').requires.push('ui.grid','ui.grid.pagination','ui.grid.selection', 'ui.grid.exporter', 'ui.grid.edit', 'ui.grid.autoResize',
25         'ui.grid.resizeColumns','ngRoute', 'pascalprecht.translate', 'ngCookies', 'ui-notification', 'ui.grid.treeView');
26 app.config(function($routeProvider) {
27         $routeProvider
28         .when('/Editor', {
29                 templateUrl:'app/policyApp/policy-models/Editor/src/templates/main.html',
30                 controller : "FileManagerCtrl"
31         })
32         .when('/Dictionary', {
33                 templateUrl: 'app/policyApp/policy-models/policy_Dictionary.html',
34                 controller : "dictionaryTabController"
35         })
36         .when('/Pdp', {
37                 templateUrl: 'app/policyApp/policy-models/policy_PDPManagement.html',
38                 controller : "pdpTabController"
39         })
40         .when('/Push', {
41                 templateUrl: 'app/policyApp/policy-models/policy_AutoPush.html',
42                 controller : "policyPushController"
43         })
44         .when('/Admin', {
45                 templateUrl: 'app/policyApp/policy-models/policy_AdminTab.html',
46                 controller : "policyAdminController"
47         })
48         .when('/Roles', {
49                 templateUrl: 'app/policyApp/policy-models/policy_Roles.html',
50                 controller : "policyRolesController"
51         })
52         .when('/Dashboard', {
53                 templateUrl: 'app/policyApp/policy-models/policy_DashboardLogging.html',
54                 controller : "policyDashboardController"
55         })
56         .when('/Dashboard_Health', {
57                 templateUrl: 'app/policyApp/policy-models/policy_DashboardHealth.html',
58                 controller : "policyDashboardHealthController"
59         })
60         .otherwise({
61                 templateUrl:'app/policyApp/policy-models/Editor/src/templates/main.html',
62                 controller : "FileManagerCtrl"  
63         });
64         
65 });