import { ModuleWithProviders } from '@angular/core' ; import { RouterModule , Routes } from '@angular/router' ; import { AuthGuardBpm , AuthGuardEcm } from '@alfresco/adf-core' ; import { HomeComponent } from './home/home.component' ; import { LoginComponent } from './login/login.component' ; import { TasksComponent } from './tasks/tasks.component' ; import { TaskDetailsComponent } from './task-details/task-details.component' ; import { StartProcessComponent } from './start-process/start-process.component' ; import { AppLayoutComponent } from './app-layout/app-layout.component' ; import { FileViewComponent } from './file-view/file-view.component' ; import { BlobViewComponent } from './file-view/blob-view.component' ; import { StartTaskComponent } from './start-task/start-task.component' ; import { ProcessDetailsComponent } from './process-details/process-details.component' ; export const appRoutes = [ { path : 'files/:nodeId/view' , component : FileViewComponent , canActivate : [ AuthGuardEcm ] , outlet : 'overlay' } , { path : 'preview/blob' , component : BlobViewComponent , outlet : 'overlay' , pathMatch : 'full' } , { path : '' , component : AppLayoutComponent , children : [ { path : '' , component : HomeComponent } , { path : 'home' , component : HomeComponent } , { path : 'community' , component : TasksComponent , canActivate : [ AuthGuardBpm ] } , { path : 'community/tasks' , component : TasksComponent , canActivate : [ AuthGuardBpm ] } , { path : 'community/tasks/:taskId' , component : TaskDetailsComponent , canActivate : [ AuthGuardBpm ] } , { path : 'community/processes/:processId' , component : ProcessDetailsComponent , canActivate : [ AuthGuardBpm ] } , { path : 'community/start-process' , component : StartProcessComponent , canActivate : [ AuthGuardBpm ] } , { path : 'community/start-task' , component : StartTaskComponent , canActivate : [ AuthGuardBpm ] } ] } , { path : 'login' , component : LoginComponent } ] ;