--- /dev/null
+/* Copyright (c) 2019 AT&T Intellectual Property. #\r
+# #\r
+# Licensed under the Apache License, Version 2.0 (the "License"); #\r
+# you may not use this file except in compliance with the License. #\r
+# You may obtain a copy of the License at #\r
+# #\r
+# http://www.apache.org/licenses/LICENSE-2.0 #\r
+# #\r
+# Unless required by applicable law or agreed to in writing, software #\r
+# distributed under the License is distributed on an "AS IS" BASIS, #\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #\r
+# See the License for the specific language governing permissions and #\r
+# limitations under the License. #\r
+##############################################################################*/\r
+\r
+\r
+import {NgModule} from '@angular/core';\r
+import {RouterModule, Routes} from '@angular/router';\r
+import {LayoutComponent} from './layout.component';\r
+import {AdminGuard} from "../shared/guard/admin.guard";\r
+\r
+const routes: Routes = [\r
+ {\r
+ path: '',\r
+ component: LayoutComponent,\r
+ children: [\r
+ {path: '', redirectTo: 'dashboard', pathMatch: 'prefix'},\r
+ {path: 'test-definitions', loadChildren: './tests/tests.module#TestsModule'},\r
+ {path: 'settings', loadChildren: './settings/settings.module#SettingsModule'},\r
+ {path: 'manage-group', loadChildren: './manage-group/manage-group.module#ManageGroupModule'},\r
+ {path: 'feedback', loadChildren: './feedback/feedback.module#FeedbackModule'},\r
+ {path: 'dashboard', loadChildren: './dashboard/dashboard.module#DashboardModule'},\r
+ {path: 'scheduling', loadChildren: './scheduling/scheduling.module#SchedulingModule'},\r
+ {path: 'onboarding', loadChildren: './onboarding/onboarding.module#OnboardingModule'},\r
+ {path: 'control-panel', loadChildren: './control-panel/control-panel.module#ControlPanelModule'},\r
+ {path: 'test-heads', loadChildren: './virtual-test-heads/virtual-test-heads.module#VirtualTestHeadsModule'},\r
+ {path: 'test-instances', loadChildren: './test-instances-catalog/test-instances-catalog.module#TestInstancesCatalogModule'},\r
+ {path: 'test-executions', loadChildren: './test-executions-catalog/test-executions-catalog.module#TestExecutionsCatalogModule'},\r
+ {path: 'user-management', loadChildren: './user-management/user-management.module#UserManagementModule', canActivate: [AdminGuard]},\r
+ {path: 'modeler', loadChildren: './modeler/modeler.module#ModelerModule'}\r
+ \r
+ ]\r
+ }\r
+];\r
+\r
+@NgModule({\r
+ imports: [RouterModule.forChild(routes)],\r
+ exports: [RouterModule]\r
+})\r
+export class LayoutRoutingModule {\r
+}\r