import { Routes , RouterModule } from '@angular/router' ; import { NgModule } from '@angular/core' ; import { EquipmentSharingPolicyComponent } from './equipment-sharing-policy.component' ; import { NgxPermissionsGuard } from 'ngx-permissions' ; import { PermissionsEnum } from '@gauzy/contracts' ; const routes = [ { path : '' , component : EquipmentSharingPolicyComponent , canActivate : [ NgxPermissionsGuard ] , data : { permissions : { only : [ PermissionsEnum . ALL_ORG_VIEW ] , redirectTo : '/pages/dashboard' } } } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] } ) export class EquipmentSharingPolicyRoutingModule { }