import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { PermissionsEnum } from '@gauzy/contracts' ; import { NgxPermissionsGuard } from 'ngx-permissions' ; import { EmploymentTypesComponent } from './employment-types.component' ; const routes = [ { path : '' , component : EmploymentTypesComponent , canActivate : [ NgxPermissionsGuard ] , data : { permissions : { only : [ PermissionsEnum . ALL_ORG_VIEW ] , redirectTo : '/pages/dashboard' } , selectors : { project : false , employee : false , date : false } } } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] } ) export class EmploymentTypesRoutingModule { }