import {NgModule} from "@angular/core";
import {RouterModule, Routes} from "@angular/router";
import {ConfirmExitGuard} from "@webbpm/base-package";
import {RolesGuard} from "./guard/RolesGuard";

const appRoutes: Routes = [
  {
    path: 'conversion',
    loadChildren: 'generated-sources/page-conversion.module#PageconversionModule',
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'appeals',
    loadChildren: 'generated-sources/page-appeals.module#PageappealsModule',
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'accounting_criminal_administrative_liability',
    loadChildren: 'generated-sources/page-accounting_criminal_administrative_liability.module#Pageaccounting_criminal_administrative_liabilityModule',
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'administration',
    loadChildren: 'generated-sources/page-administration.module#PageadministrationModule',
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'logging',
    loadChildren: 'generated-sources/page-logging.module#PageloggingModule',
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'incidents',
    loadChildren: 'generated-sources/page-incidents.module#PageincidentsModule',
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'military_registration_changing_address',
    loadChildren: 'generated-sources/page-military_registration_changing_address.module#Pagemilitary_registration_changing_addressModule',
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'removal_military_registration',
    loadChildren: 'generated-sources/page-removal_military_registration.module#Pageremoval_military_registrationModule',
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'register_subpoenas',
    loadChildren: 'generated-sources/page-register_subpoenas.module#Pageregister_subpoenasModule',
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'register_subpoenas_subsystem',
    loadChildren: 'generated-sources/page-register_subpoenas_subsystem.module#Pageregister_subpoenas_subsystemModule',
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'updating',
    loadChildren: 'generated-sources/page-updating.module#PageupdatingModule',
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'initial_registration',
    loadChildren: 'generated-sources/page-initial_registration.module#Pageinitial_registrationModule',
    canActivate: [ConfirmExitGuard],
  }
];

@NgModule({
            imports: [RouterModule.forChild(appRoutes)],
            exports: [RouterModule]
          })
export class AppRoutingModule {

}
