import { RouterModule, Routes } from '@angular/router'; import { ModuleWithProviders } from '@angular/core'; import { DashboardDemoComponent } from './demo/view/dashboarddemo.component'; //import { PanelsDemoComponent } from './demo/view/panelsdemo.component'; //import { OverlaysDemoComponent } from './demo/view/overlaysdemo.component'; import { MenusDemoComponent } from './demo/view/menusdemo.component'; //import { MessagesDemoComponent } from './demo/view/messagesdemo.component'; //import { MiscDemoComponent } from './demo/view/miscdemo.component'; //import { EmptyDemoComponent } from './demo/view/emptydemo.component'; //import { ChartsDemoComponent } from './demo/view/chartsdemo.component'; //import { FileDemoComponent } from './demo/view/filedemo.component'; //import { DocumentationComponent } from './demo/view/documentation.component'; import { AuthGuard } from './_guards/auth.guard'; import { LoginComponent } from './login.component'; import { ForgotPasswordComponent } from './forgot-password.component'; import {EssPayrollModule} from './ess-payroll/ess-payroll.module'; import { LandingPageComponent } from './ess/landing-page/landing-page.component'; import {CoreHrDashboardComponent} from './core-hr/core-hr-dashboard/core-hr-dashboard/core-hr-dashboard.component'; // import { UserComponent } from './authentication/user/user.component'; // import { UserRoleComponent } from './authentication/user-role/user-role.component'; // import { UserAccessTypeComponent } from './authentication/user-access-type/user-access-type.component'; // import { HardPasswordComponent } from './authentication/hard-password/hard-password.component'; // import { UsersComponent } from './authentication/users/users.component'; // import { ChangePasswordComponent } from './authentication/change-password/change-password.component'; // import { ForgotPasswordComponent } from './authentication/forgot-password/forgot-password.component'; // import { TelerikGridDemoComponent } from './demo/grid/telerik-grid-demo.component'; // import { SystemConfigurationComponent } from './authentication/system-configuration/system-configuration.component'; export const routes: Routes = [ // { path: 'login', component: LoginComponent }, { path: '', component: DashboardDemoComponent, canActivate: [AuthGuard], data: { title: 'Dashboard' } }, { path: 'login', component: LoginComponent, data: { title: 'Login' } },{ path: 'defaultLogin', component: LoginComponent, data: { title: 'DefaultLogin' } }, { path: 'landing-page', component: LandingPageComponent, data: { title: 'Admin-Dashboard' } }, { path: 'forgot-password', component: ForgotPasswordComponent, data: { title: 'Forgot Password' } }, //{ path: 'panels', component: PanelsDemoComponent }, //{ path: 'overlays', component: OverlaysDemoComponent }, { path: 'menus', component: MenusDemoComponent }, //{ path: 'messages', component: MessagesDemoComponent }, //{ path: 'misc', component: MiscDemoComponent }, //{ path: 'empty', component: EmptyDemoComponent }, //{ path: 'charts', component: ChartsDemoComponent }, //{ path: 'file', component: FileDemoComponent }, //{ path: 'documentation', component: DocumentationComponent }, // { path: 'role', component: RoleComponent, canActivate: [AuthGuard] }, // { path: 'grid-form', component: GridWithFormComponent }, //// { path: 'userdemo', component: UserComponent, canActivate: [AuthGuard] }, // { path: 'user-role', component: UserRoleComponent, canActivate: [AuthGuard] }, // { path: 'user-access-type', component: UserAccessTypeComponent, canActivate: [AuthGuard] }, // { path: 'hard-password', component: HardPasswordComponent, canActivate: [AuthGuard] }, // { path: 'change-password', component: ChangePasswordComponent, canActivate: [AuthGuard] }, // { path: 'forgot-password', component: ForgotPasswordComponent, canActivate: [AuthGuard] }, // { path: 'sample-grid', component: TelerikGridDemoComponent, canActivate: [AuthGuard] }, { path: 'authentication', canActivate: [AuthGuard], loadChildren: () => import('./authentication/authentication.module').then(m => m.AuthenticationModule) }, { path: 'core-hr', canActivate: [AuthGuard], loadChildren: () => import('./core-hr/core-hr.module').then(m => m.CoreHrModule) }, { path: 'leave', canActivate: [AuthGuard], loadChildren: () => import('./leave/leave.module').then(m => m.LeaveModule) }, { path: 'attendance', canActivate: [AuthGuard], loadChildren: () => import('./attendance/attendance.module').then(m => m.AttendanceModule) }, { path: 'payroll', canActivate: [AuthGuard], loadChildren: () => import('./payroll/payroll.module').then(m => m.PayrollModule) }, { path: 'recruitment', canActivate: [AuthGuard], loadChildren: () => import('./recruitment/recruitment.module').then(m => m.RecruitmentModule) }, { path: 'recruitment-ess', canActivate: [AuthGuard], loadChildren: () => import('././recruitment/recruitment-ess/recruitment-ess.module').then(m => m.RecruitmentEssModule) }, { path: 'organization-management', canActivate: [AuthGuard], loadChildren: () => import('./organization-management/organization-management.module').then(m => m.OrganizationManagementModule) }, { path: 'payroll-ot', canActivate: [AuthGuard], loadChildren: () => import('./payroll-ot/payroll-ot.module').then(m => m.PayrollOtModule) }, { path: 'payroll-tax', canActivate: [AuthGuard], loadChildren: () => import('./payroll-tax/payroll-tax.module').then(m => m.PayrollTaxModule) }, { path: 'talent-management', canActivate: [AuthGuard], loadChildren: () => import('./talent-management/talent-management.module').then(m => m.TalentManagementModule) }, { path: 'final-settlement', canActivate: [AuthGuard], loadChildren: () => import('./final-settlement/final-settlement.module').then(m => m.FinalSettlementModule) }, { path: 'training-new', canActivate: [AuthGuard], loadChildren: () => import('./training-new/training-new.module').then(m => m.TrainingNewModule) }, { path: 'adhoc-feature', canActivate: [AuthGuard], loadChildren: () => import('./adhoc-feature/adhoc-feature.module').then(m => m.AdhocFeatureModule) }, { path: 'common-interface', canActivate: [AuthGuard], loadChildren: () => import('./common-interface/common-interface.module').then(m => m.CommonInterfaceModule) }, { path: 'ess', canActivate: [AuthGuard], loadChildren: () => import('./ess/ess.module').then(m => m.EssModule) }, { path: 'ess-payroll', canActivate: [AuthGuard], loadChildren: () => import('./ess-payroll/ess-payroll.module').then(m => m.EssPayrollModule) }, { path: 'reports', canActivate: [AuthGuard], loadChildren: () => import('./reports/reports.module').then(m => m.ReportsModule) }, { path: 'claim-management', canActivate: [AuthGuard], loadChildren: () => import('./claim/claim.module').then(m => m.ClaimModule) }, { path: 'grievance-management', canActivate: [AuthGuard], loadChildren: () => import('./grievance-management/grievance-management.module').then(m => m.GrievanceManagementModule) }, { path: 'survey', canActivate: [AuthGuard], loadChildren: () => import('./survey/survey.module').then(m => m.SurveyModule) }, { path: 'opi', canActivate: [AuthGuard], loadChildren: () => import('./opi/opi.module').then(m => m.opiModule) }, { path: 'dataintegration', canActivate: [AuthGuard], loadChildren: () => import('./data-integration/data-integration.module').then(m => m.DataIntegrationModule) } ]; export const AppRoutes: ModuleWithProviders = RouterModule.forRoot(routes, { scrollPositionRestoration: 'enabled' });