2 * ============LICENSE_START==========================================
4 * ===================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ===================================================================
8 * Unless otherwise specified, all software contained herein is licensed
9 * under the Apache License, Version 2.0 (the "License");
10 * you may not use this software except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
21 * Unless otherwise specified, all documentation contained herein is licensed
22 * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
23 * you may not use this documentation except in compliance with the License.
24 * You may obtain a copy of the License at
26 * https://creativecommons.org/licenses/by/4.0/
28 * Unless required by applicable law or agreed to in writing, documentation
29 * distributed under the License is distributed on an "AS IS" BASIS,
30 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 * See the License for the specific language governing permissions and
32 * limitations under the License.
34 * ============LICENSE_END============================================
40 angular.module('ecompApp')
41 .config($stateProvider => {
47 templateUrl: 'app/views/header/header.tpl.html',
48 controller: 'HeaderCtrl',
49 controllerAs: 'header'
52 templateUrl: 'app/views/tabs/tabs.tpl.html',
53 controller: 'TabsCtrl',
54 controllerAs: 'tabsHome'
57 templateUrl: 'app/views/sidebar/sidebar.tpl.html',
58 controller: 'SidebarCtrl',
59 controllerAs: 'sidebar'
62 templateUrl: 'app/views/userbar/userbar.tpl.html',
63 controller: 'UserbarCtrl',
64 controllerAs: 'userbar'
67 templateUrl: 'app/views/footer/footer.tpl.html',
68 controller: 'FooterCtrl',
69 controllerAs: 'footer'
72 }).state('root.applicationsHome', {
73 url: '/applicationsHome',
76 templateUrl: 'app/views/dashboard/dashboard.tpl.html',
77 controller: 'DashboardCtrl',
78 controllerAs: 'dashboard'
81 }).state('root.appCatalog', {
85 templateUrl: 'app/views/catalog/catalog.tpl.html',
86 controller: 'CatalogCtrl',
87 controllerAs: 'catalog'
90 }).state('root.widgetCatalog', {
91 url: '/widgetCatalog',
94 templateUrl: 'app/views/widget-catalog/widget-catalog.tpl.html',
95 controller: 'WidgetCatalogCtrl',
96 controllerAs: 'widgetCatalog'
99 }).state('root.admins', {
103 templateUrl: 'app/views/admins/admins.tpl.html',
104 controller: 'AdminsCtrl',
105 controllerAs: 'admins'
108 }).state('root.roles', {
112 templateUrl: 'app/views/role/role_list.html',
113 controller: 'roleListController',
114 controllerAs: 'roles'
117 }).state('root.role', {
124 templateUrl: 'app/views/role/role.html',
125 controller: 'roleController',
129 }).state('root.roleFunctions', {
130 url: '/roleFunctions',
133 templateUrl: 'app/views/role/role_function_list.html',
134 controller: 'roleFunctionListController',
135 controllerAs: 'roleFunctions'
138 }).state('root.users', {
142 templateUrl: 'app/views/users/users.tpl.html',
143 controller: 'UsersCtrl',
144 controllerAs: 'users'
147 }).state('root.applications', {
148 url: '/applications',
151 templateUrl: 'app/views/applications/applications.tpl.html',
152 controller: 'ApplicationsCtrl',
156 }).state('root.microserviceOnboarding', {
157 url: '/microserviceOnboarding',
160 templateUrl: 'app/views/microservice-onboarding/microservice-onboarding.tpl.html',
161 controller: 'MicroserviceOnboardingCtrl',
162 controllerAs: 'microserviceOnboarding'
165 }).state('root.widgetOnboarding', {
166 url: '/widgetOnboarding',
169 templateUrl: 'app/views/widget-onboarding/widget-onboarding.tpl.html',
170 controller: 'WidgetOnboardingCtrl',
171 controllerAs: 'widgetOnboarding'
174 }).state('root.accountOnboarding', {
175 url: '/accountOnboarding',
178 templateUrl: 'app/views/account-onboarding/account-onboarding.tpl.html',
179 controller: 'AccountOnboardingCtrl',
180 controllerAs: 'accountOnboarding'
183 }).state('root.functionalMenu', {
184 url: '/functionalMenu',
187 templateUrl: 'app/views/functionalMenu/functionalMenu.tpl.html',
188 controller: 'FunctionalMenuCtrl',
189 controllerAs: 'functionalMenu'
192 }).state('root.getAccess', {
199 templateUrl: 'app/views/support/get-access/get-access.tpl.html',
200 controller: 'GetAccessCtrl',
201 controllerAs: 'access'
204 }).state('root.contactUs', {
208 templateUrl: 'app/views/support/contact-us/contact-us.tpl.html',
209 controller: 'ContactUsCtrl',
210 controllerAs: 'contact'
213 }).state('root.userNotifications', {
214 url: '/userNotifications',
217 templateUrl: 'app/views/user-notifications-admin/user.notifications.tpl.html',
218 controller: 'userNotificationsCtrl',
219 controllerAs: 'userNotifications'
222 }).state('root.notificationHistory', {
223 url: '/notificationHistory',
226 templateUrl: 'app/views/notification-history/notificationhistory.tpl.html',
227 controller: 'notificationHistoryCtrl',
228 controllerAs: 'notificationHistory'
231 }).state('root.portalAdmins', {
232 url: '/portalAdmins',
235 templateUrl: 'app/views/portal-admin/portal-admin.tpl.html',
236 controller: 'PortalAdminsCtrl',
237 controllerAs: 'portalAdmin'
240 }).state('root.webAnalytics', {
241 url: '/webAnalytics',
244 templateUrl: 'app/views/webAnalytics/webAnalytics.tpl.html',
245 controller: 'WebAnalyticsCtrl',
246 controllerAs: 'webAnalytics'
249 }).state('root.webAnlayticsSource', {
250 url: '/addWebAnalyticsSource',
253 templateUrl: 'app/views/webAnalytics/webAnalyticsList.tpl.html',
254 controller: 'WebAnalyticsCtrl',
255 controllerAs: 'webAnalytics'
258 }).state('root.error404', {
262 templateUrl: 'app/views/errors/error.tpl.html',
263 controller: 'ErrorCtrl',
264 controllerAs: 'error'
267 }).state('noUserError', {
271 templateUrl: 'app/views/errors/error.tpl.html',
272 controller: 'ErrorCtrl',
273 controllerAs: 'error'
276 }).state('unKnownError', {
277 url: '/unKnownError',
280 templateUrl: 'app/views/errors/error.tpl.html',
281 controller: 'ErrorCtrl',
282 controllerAs: 'error'