import {NgModule} from "@angular/core";
import {RouterModule, Routes} from "@angular/router";
import {AccessDeniedComponent} from "./component/access-denied.component";
import {ConfirmExitGuard} from "@webbpm/base-package";

const appRoutes: Routes = [
  {
    path: 'access-denied',
    component: AccessDeniedComponent,
    canActivate: [ConfirmExitGuard]
  },
  {
    path: 'milregistration',
    loadChildren: 'generated-sources/page-milregistration.module#PagemilregistrationModule',
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'appeals',
    loadChildren: 'generated-sources/page-appeals.module#PageappealsModule',
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'ratings',
    loadChildren: 'generated-sources/page-ratings.module#PageratingsModule',
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'recruitment',
    loadChildren: 'generated-sources/page-recruitment.module#PagerecruitmentModule',
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'notregistered',
    loadChildren: 'generated-sources/page-notregistered.module#PagenotregisteredModule',
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'citizen',
    loadChildren: 'generated-sources/page-citizen.module#PagecitizenModule',
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'citizencard/:id',
    loadChildren: 'generated-sources/page-citizencard.module#PagecitizencardModule',
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'main',
    loadChildren: 'generated-sources/page-main.module#PagemainModule',
  },
  {
    path: 'total_registered_second',
    loadChildren: 'generated-sources/page-total_registered_second.module#Pagetotal_registered_secondModule',
  }
];

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

}
