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', {
118 url: '/role/:roleId',
121 templateUrl: 'app/views/role/role.html',
122 controller: 'roleController',
126 }).state('root.roleFunctions', {
127 url: '/roleFunctions',
130 templateUrl: 'app/views/role/role_function_list.html',
131 controller: 'roleFunctionListController',
132 controllerAs: 'roleFunctions'
135 }).state('root.users', {
139 templateUrl: 'app/views/users/users.tpl.html',
140 controller: 'UsersCtrl',
141 controllerAs: 'users'
144 }).state('root.applications', {
145 url: '/applications',
148 templateUrl: 'app/views/applications/applications.tpl.html',
149 controller: 'ApplicationsCtrl',
153 }).state('root.microserviceOnboarding', {
154 url: '/microserviceOnboarding',
157 templateUrl: 'app/views/microservice-onboarding/microservice-onboarding.tpl.html',
158 controller: 'MicroserviceOnboardingCtrl',
159 controllerAs: 'microserviceOnboarding'
162 }).state('root.widgetOnboarding', {
163 url: '/widgetOnboarding',
166 templateUrl: 'app/views/widget-onboarding/widget-onboarding.tpl.html',
167 controller: 'WidgetOnboardingCtrl',
168 controllerAs: 'widgetOnboarding'
171 }).state('root.accountOnboarding', {
172 url: '/accountOnboarding',
175 templateUrl: 'app/views/account-onboarding/account-onboarding.tpl.html',
176 controller: 'AccountOnboardingCtrl',
177 controllerAs: 'accountOnboarding'
180 }).state('root.functionalMenu', {
181 url: '/functionalMenu',
184 templateUrl: 'app/views/functionalMenu/functionalMenu.tpl.html',
185 controller: 'FunctionalMenuCtrl',
186 controllerAs: 'functionalMenu'
189 }).state('root.getAccess', {
196 templateUrl: 'app/views/support/get-access/get-access.tpl.html',
197 controller: 'GetAccessCtrl',
198 controllerAs: 'access'
201 }).state('root.contactUs', {
205 templateUrl: 'app/views/support/contact-us/contact-us.tpl.html',
206 controller: 'ContactUsCtrl',
207 controllerAs: 'contact'
210 }).state('root.userNotifications', {
211 url: '/userNotifications',
214 templateUrl: 'app/views/user-notifications-admin/user.notifications.tpl.html',
215 controller: 'userNotificationsCtrl',
216 controllerAs: 'userNotifications'
219 }).state('root.notificationHistory', {
220 url: '/notificationHistory',
223 templateUrl: 'app/views/notification-history/notificationhistory.tpl.html',
224 controller: 'notificationHistoryCtrl',
225 controllerAs: 'notificationHistory'
228 }).state('root.portalAdmins', {
229 url: '/portalAdmins',
232 templateUrl: 'app/views/portal-admin/portal-admin.tpl.html',
233 controller: 'PortalAdminsCtrl',
234 controllerAs: 'portalAdmin'
237 }).state('root.error404', {
241 templateUrl: 'app/views/errors/error.404.tpl.html',
242 controller: 'ErrorCtrl',
243 controllerAs: 'error'
246 }).state('noUserError', {
250 templateUrl: 'app/views/errors/error.tpl.html',
251 controller: 'ErrorCtrl',
252 controllerAs: 'error'
255 }).state('unKnownError', {
256 url: '/unKnownError',
259 templateUrl: 'app/views/errors/error.tpl.html',
260 controller: 'ErrorCtrl',
261 controllerAs: 'error'