import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';


const routes: Routes = [
  { path: '', redirectTo: 'authentication/login', pathMatch: 'full' },
  {
    path: 'authentication', loadChildren: './authentication/authentication.module#AuthenticationPageModule'},
  { path: 'home', loadChildren: './home/home.module#HomePageModule' },
  { path: 'profile', loadChildren: './profile/profile.module#ProfilePageModule' },
  { path: 'vacation-rule', loadChildren: './vacation-rule/vacation-rule.module#VacationRulePageModule' },
  { path: 'accrual-balances', loadChildren: './accrual-balances/accrual-balances.module#AccrualBalancesPageModule' },
  { path: 'my-team', loadChildren: './my-team/my-team.module#MyTeamPageModule' },
  { path: 'attendance', loadChildren: './attendance/attendance.module#AttendancePageModule' },
  { path: 'eit', loadChildren: './eit/eit.module#EITPageModule' },
  { path: 'absence', loadChildren: './absence/absence.module#AbsencePageModule' },
  { path: 'notification', loadChildren: './notification/notification.module#NotificationPageModule' },
  { path: 'my-specialist', loadChildren: './my-specialist/my-specialist.module#MySpecialistPageModule' },
  { path: 'my-subordinate', loadChildren: './my-subordinate/my-subordinate.module#MySubordinatePageModule' },
  { path: 'time-card', loadChildren: './time-card/time-card.module#TimeCardPageModule' },
  { path: 'payslip', loadChildren: './payslip/payslip.module#PayslipPageModule' }

];

@NgModule({
  imports: [
    /*RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules}),*/
    RouterModule.forRoot(routes),
  ],
  exports: [RouterModule]
})
export class AppRoutingModule { }
