//common//
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuardService } from '../app/core/services/auth-guard.service';
//Pages//
import { LandingComponent } from './common/landing/landing.component';
import { EmicalculatorComponent } from './common/emicalculator/emicalculator.component';
import { LoginComponent } from './common/login/login.component';
import { SetPasswwordComponent } from './common/set-passwword/set-passwword.component';
import { UserProfileComponent } from './common/user-profile/user-profile.component';
import { MytrainingComponent } from './sales_executive/mytraining/mytraining.component';
import { MycontentComponent } from './sales_executive/mycontent/mycontent.component';
import { MyassessmentComponent } from './sales_executive/myassessment/myassessment.component';
import { AssessmentQuestionComponent } from './sales_executive/assessment-question/assessment-question.component';
import { LederboardComponent } from './sales_executive/lederboard/lederboard.component';
import { FeedbackComponent } from './sales_executive/feedback/feedback.component';
import { FeedbackSurveyComponent } from './sales_executive/feedback-survey/feedback-survey.component';
import { BulletinComponent } from './sales_executive/bulletin/bulletin.component';
import { WalletComponent } from './sales_executive/wallet/wallet.component';
import { WalletCatComponent } from './sales_executive/wallet/wallet_cat.component';
import { WalletProductListComponent } from './sales_executive/wallet/product_list.component';
import { WalletProductDescComponent } from './sales_executive/wallet/product_description';
import { AboutComponent } from './sales_executive/about/about.component';
import { FaqComponent } from './sales_executive/faq/faq.component';
import { SalesReportComponent } from './manager/sales-report/sales-report.component';
import { DseReportComponent } from './manager/dse-report/dse-report.component';
import { AssessmentReportComponent } from './manager/assessment-report/assessment-report.component';
import { AnaliticalReportComponent } from './manager/analitical-report/analitical-report.component';
import { LeaderboardReportComponent } from './manager/leaderboard-report/leaderboard-report.component';
import { LeaderboardAssessmentComponent } from './manager/leaderboard-assessment/leaderboard-assessment.component';
import { CourseReportComponent } from './manager/course-report/course-report.component';
import { FeedbackReportComponent } from './manager/feedback-report/feedback-report.component';
import { SetsalesReportComponent } from './manager/setsales-report/setsales-report.component';
import { RewardReportComponent } from './manager/reward-report/reward-report.component';
import { TrainerComponent } from './trainersite/trainer/trainer.component';
import { TrainingcourseComponent } from './trainersite/trainingcourse/trainingcourse.component';
import { ConfirmpopComponent } from './trainersite/confirmpop/confirmpop.component';
import { ConfirmPopupComponent } from './sales_executive/confirm-popup/confirm-popup.component';
import { LaunchThreesixtyDashboardComponent } from './launch-threesixty-dashboard/launch-threesixty-dashboard.component';
import { LauchThreesixtyComponent } from './launch-threesixty-dashboard/lauch-threesixty/lauch-threesixty.component';
import { LauchThreesixtyComparisonComponent } from './launch-threesixty-dashboard/lauch-threesixty-comparison/lauch-threesixty-comparison.component';
import { LaunchSalesComponent } from './launch-threesixty-dashboard/launch-sales/launch-sales.component';
import { LaunchPersonalizeComponent } from './launch-threesixty-dashboard/launch-personalize/launch-personalize.component';
import { LauchEnquiryComponent } from './launch-threesixty-dashboard/lauch-enquiry/lauch-enquiry.component';
import { LaunchBrochureComponent } from './launch-threesixty-dashboard/launch-brochure/launch-brochure.component';
import { LeaderboardRankingComponent } from './manager/leaderboard-ranking/leaderboard-ranking.component';
import { SetsalesTargetReportComponent } from './manager/setsalestarget-report/setsalestarget-report.component';
import { ProductVideosComponent } from './launch-threesixty-dashboard/product-videos/product-videos.component';
import { AddTrainingComponent } from './trainersite/addtraining/addtraining.component';
import { AddbatchComponent } from './trainersite/addbatch/addbatch.component';
import { MySchedulesComponent } from './trainersite/myschedule/myschedule.component';
import { MyEnquiriesComponent } from './leadmodule/my-enquiries/my-enquiries.component';
import { MyTrainingsComponent } from './leadmodule/my-trainings/my-trainings.component';

import { TodaysTaskComponent } from './leadmodule/todays-task/todays-task.component';
import { ActionHistoryComponent } from './leadmodule/action-history/action-history.component';
import { NonsyncenquiryComponent } from './leadmodule/nonsyncenquiry/nonsyncenquiry.component';

import { MyusersComponent } from './sales_executive/myusers/myusers.component';
import { HoSchedulesComponent } from './trainersite/hoschedule/hoschedule.component';
import { AddHoTrainingComponent } from './trainersite/hoaddtraining/hoaddtraining.component';
import { TestrideComponent } from './leadmodule/testride/testride.component';
import { IlearnReportsComponent } from './manager/ilearn-reports/ilearn-reports.component';
import { AddClsTrainingComponent } from './trainersite/addclstraining/addclstraining.component';
import { ViewClsTrainingComponent } from './trainersite/viewclstrainingdetails/viewclstrainingdetails.component';
import { EditClsTrainingComponent } from './trainersite/editclstraining/editclstraining.component';
import { TrainingNotificationComponent } from './trainersite/trainingnotification/trainingnotification.component';
import { WebcamComponent } from './trainersite/webcam/webcam.component';
import { NewCreateClsTrainingComponent } from './trainersite/newcreateclstraining/newcreateclstraining.component';
import { NewEditClsTrainingComponent } from './trainersite/neweditclstraining/neweditclstraining.component';
import { DseTrainingFeedbackComponent } from './trainersite/dsetrainingfeedback/dsetrainingfeedback.component';
import { AllTrainingFeedbackComponent } from './trainersite/alltrainingfeedback/alltrainingfeedback.component';
import { CreateenquiryComponent } from './leadmodule/createenquiry/createenquiry.component';
import { ActivityPlannerComponent } from './leadmodule/activity-planner/activity-planner.component';
import { EnquiryProcessComponent } from './leadmodule/enquiry-process/enquiry-process.component';
import { EnquiryStatusComponent } from './leadmodule/enquiry-status/enquiry-status.component';
import { EnquiryStageComponent } from './leadmodule/enquiry-stage/enquiry-stage.component';
import { EnquiryProfileComponent } from './leadmodule/enquiry-profile/enquiry-profile.component';
import { QuotationComponent } from './leadmodule/quotation/quotation.component';
import { PriceListComponent } from './leadmodule/price-list/price-list.component';
import { AddPlanComponent } from './leadmodule/add-plan/add-plan.component';
import { EmiCalulatorComponent } from './leadmodule/emi-calulator/emi-calulator.component';

import { ActivitydaylistComponent } from './leadmodule/activitydaylist/activitydaylist.component';

import { ActivitydaylistDealerComponent } from './leadmoduledealer/activitydaylist-dealer/activitydaylist-dealer.component';
// import { ActivityPlannerDealerComponent } from './leadmoduledealer/activity-planner-dealer/activity-planner-dealer.component';
// import { AddPlanDealerComponent } from './leadmoduledealer/add-plan-dealer/add-plan-dealer.component';
// import { CreateenquiryDealerComponent } from './leadmoduledealer/createenquiry-dealer/createenquiry-dealer.component';
// import { EmiCalulatorDealerComponent } from './leadmoduledealer/emi-calulator-dealer/emi-calulator-dealer.component';
import { EnquirypopupDealerComponent } from './leadmoduledealer/enquirypopup-dealer/enquirypopup-dealer.component';
// import { EnquiryProcessDealerComponent } from './leadmoduledealer/enquiry-process-dealer/enquiry-process-dealer.component';
import { EnquiryProfileDealerComponent } from './leadmoduledealer/enquiry-profile-dealer/enquiry-profile-dealer.component';
import { EnquiryStageDealerComponent } from './leadmoduledealer/enquiry-stage-dealer/enquiry-stage-dealer.component';

import { EnquiryStatusDealerComponent } from './leadmoduledealer/enquiry-status-dealer/enquiry-status-dealer.component';
import { MyEnquiriesDealerComponent } from './leadmoduledealer/my-enquiries-dealer/my-enquiries-dealer.component';
// import { MyTrainingsDealerComponent } from './leadmoduledealer/my-trainings-dealer/my-trainings-dealer.component';
import { NonsyncenquiryDealerComponent } from './leadmoduledealer/nonsyncenquiry-dealer/nonsyncenquiry-dealer.component';
// import { PendingTaskDealerComponent } from './leadmoduledealer/pending-task-dealer/pending-task-dealer.component';
import { PriceListDealerComponent } from './leadmoduledealer/price-list-dealer/price-list-dealer.component';
// import { QuotationDealerComponent } from './leadmoduledealer/quotation-dealer/quotation-dealer.component';
import { TaskstatusDealerComponent } from './leadmoduledealer/taskstatus-dealer/taskstatus-dealer.component';
import { CreateEnquiryDealerComponent } from './leadmoduledealer/create-enquiry-dealer/create-enquiry-dealer.component';
import { TestrideDealerComponent } from './leadmoduledealer/testride-dealer/testride-dealer.component';
import { TodaysTaskDealerComponent } from './leadmoduledealer/todays-task-dealer/todays-task-dealer.component';
import { SalesDseComponent } from './leadmodule/sales-dse/sales-dse.component';
import { EnquiryDseComponent } from './leadmodule/enquiry-dse/enquiry-dse.component';
import { ActionHistoryDealerComponent } from './leadmoduledealer/action-history-dealer/action-history-dealer.component';

import { ActivityPlannerDealerComponent } from './leadmoduledealer/activity-planner-dealer/activity-planner-dealer.component';
import { EnquiryDealerComponent } from './leadmoduledealer/enquiry-dealer/enquiry-dealer.component';
import { SalesDealerComponent } from './leadmoduledealer/sales-dealer/sales-dealer.component';

import { QuotationDealerComponent } from './leadmoduledealer/quotation-dealer/quotation-dealer.component';
import { EmiCalculatorDealerComponent } from './leadmoduledealer/emi-calculator-dealer/emi-calculator-dealer.component';
import { UserlistComponent } from './leadmoduledealer/userlist/userlist.component';
import { DashboardComponent } from './leadmodulemanager/dashboard/dashboard.component';
import { TodayTaskManagerComponent } from './leadmodulemanager/today-task-manager/today-task-manager.component';
import { TaskstatusManagerComponent } from './leadmodulemanager/taskstatus-manager/taskstatus-manager.component';
import { TestrideManagerComponent } from './leadmodulemanager/testride-manager/testride-manager.component';
import { EnquiryStatusManagerComponent } from './leadmodulemanager/enquiry-status-manager/enquiry-status-manager.component';
import { EnquiryStageManagerComponent } from './leadmodulemanager/enquiry-stage-manager/enquiry-stage-manager.component';
import { DashboardRegionalManagerComponent } from './leadmodulemanager/dashboard-regional-manager/dashboard-regional-manager.component';
import { DashboardZonalManagerComponent } from './leadmodulemanager/dashboard-zonal-manager/dashboard-zonal-manager.component';
import { EnquiryReportComponent } from './leadmodule/enquiry-report/enquiry-report.component';
import { EnquiryReportDealerComponent } from './leadmoduledealer/enquiry-report-dealer/enquiry-report-dealer.component';
import { ActionHistoryManagerComponent } from './leadmodulemanager/action-history-manager/action-history-manager.component';

import { EnquiryProfileManagerComponent } from './leadmodulemanager/enquiry-profile-manager/enquiry-profile-manager.component';
import { ManagerSalesComponent } from './leadmodulemanager/manager-sales/manager-sales.component';
import { ActivityPlannerManagerComponent } from './leadmodulemanager/activity-planner-manager/activity-planner-manager.component';
import { ActivitydaylistManagerComponent } from './leadmodulemanager/activitydaylist-manager/activitydaylist-manager.component';
import { EnquiryManagerComponent } from './leadmodulemanager/enquiry-manager/enquiry-manager.component';
import { ManagerDselistComponent } from './leadmodulemanager/manager-dselist/manager-dselist.component';
import { AreaEnquiryReportComponent } from './leadmodulemanager/area-enquiry-report/area-enquiry-report.component';
import { RegionalEnquiryReportComponent } from './leadmodulemanager/regional-enquiry-report/regional-enquiry-report.component';
import { ZoneEnquiryReportComponent } from './leadmodulemanager/zone-enquiry-report/zone-enquiry-report.component';
import { DashboardHoComponent } from './leadmodulemanager/dashboard-ho/dashboard-ho.component';
import { DashboardTrainerComponent } from './leadmodulemanager/dashboard-trainer/dashboard-trainer.component';
import { HoEnquiryReportComponent } from './leadmodulemanager/ho-enquiry-report/ho-enquiry-report.component';
import { TrainerEnquiryReportComponent } from './leadmodulemanager/trainer-enquiry-report/trainer-enquiry-report.component';
import { ClassroomReportsComponent } from './trainersite/trainingreports/classroom-reports/classroom-reports.component';
import { TrainingFeedbackReportsComponent } from './trainersite/trainingreports/training-feedback-reports/training-feedback-reports.component';
import { TrainingIlearnReportsComponent } from './trainersite/trainingreports/training-ilearn-reports/training-ilearn-reports.component';
import { TrainingDeclineReportsComponent } from './trainersite/trainingreports/training-decline-reports/training-decline-reports.component';
import { TrainingAbsentReportComponent } from './trainersite/trainingreports/training-absent-report/training-absent-report.component';
import { TrainingClosureReportComponent } from './trainersite/trainingreports/training-closure-report/training-closure-report.component';
import { TrainingDseFeedbackReportComponent } from './trainersite/trainingreports/training-dse-feedback-report/training-dse-feedback-report.component';
import { TrainingManualAttendanceReportComponent } from './trainersite/trainingreports/training-manual-attendance-report/training-manual-attendance-report.component';
import { TrainingVariousComponent } from './trainersite/trainingreports/training-various/training-various.component';

//Path//
export const routes: Routes = [

  // { path: '', component: LoginComponent  },
  // { path: 'dashboard', component: LandingComponent,canActivate: [AuthGuardService] },
  // { path: 'mytraining', component: MytrainingComponent,canActivate: [AuthGuardService] },
  // { path: 'mycontent', component: MycontentComponent,
  //   children: [
  //     { path: '', component: MytrainingComponent  },
  //     { path: 'details/:id', component: MycontentComponent }
  //   ], canActivate: [AuthGuardService]
  // }
  { path: '', component: LoginComponent },
  { path: 'mytraining', component: MytrainingComponent, canActivate: [AuthGuardService] },
  { path: 'mycontent', component: MycontentComponent, canActivate: [AuthGuardService] },
  { path: 'mycontent/:id', component: MycontentComponent,canActivate: [AuthGuardService]  },
  { path: 'myassessment', component: MyassessmentComponent,canActivate: [AuthGuardService] },
  { path: 'emicalculator', component: EmicalculatorComponent,canActivate: [AuthGuardService] },
  { path: 'assessment/:id', component: AssessmentQuestionComponent,canActivate: [AuthGuardService]},
  { path: 'dashboard', component: LandingComponent,canActivate: [AuthGuardService]  },
  { path: 'threesixty-dashboard', component: LaunchThreesixtyDashboardComponent,canActivate: [AuthGuardService]  },
  { path: 'launch-threesixty', component: LauchThreesixtyComponent,canActivate: [AuthGuardService]  },
  { path: 'launch-comparison', component: LauchThreesixtyComparisonComponent,canActivate: [AuthGuardService]  },
  { path: 'product-vidoes', component: ProductVideosComponent,canActivate: [AuthGuardService]  },
  { path: 'launch-sales', component: LaunchSalesComponent,canActivate: [AuthGuardService]  },
  { path: 'launch-personalise', component: LaunchPersonalizeComponent,canActivate: [AuthGuardService]  },
  { path: 'launch-enquiry', component: LauchEnquiryComponent,canActivate: [AuthGuardService]  },
  { path: 'download_brouchure/:model/:varient/:token', component: LaunchBrochureComponent   },
  { path: 'userprofile', component: UserProfileComponent,canActivate: [AuthGuardService]  },
  { path: 'setpassword', component: SetPasswwordComponent },
  { path: 'setpassword/:type', component: SetPasswwordComponent },
  { path: 'myusers', component: MyusersComponent,canActivate: [AuthGuardService] },
  { path: 'leaderboard', component: LederboardComponent,canActivate: [AuthGuardService] },
  { path: 'leaderboard-ranking', component: LeaderboardRankingComponent,canActivate: [AuthGuardService] },
  { path: 'leaderboard-teamranking', component: LeaderboardRankingComponent,canActivate: [AuthGuardService] },
  { path: 'feedback', component: FeedbackComponent,canActivate: [AuthGuardService] },
  { path: 'feedback/:id', component: FeedbackSurveyComponent,canActivate: [AuthGuardService] },
  { path: 'bulletin', component: BulletinComponent,canActivate: [AuthGuardService] } ,
  { path: 'about', component: AboutComponent,canActivate: [AuthGuardService] } ,
  { path: 'faq', component: FaqComponent,canActivate: [AuthGuardService] } ,
  { path: 'wallet', component: WalletComponent,canActivate: [AuthGuardService] } ,
  { path: 'wallet/category_list', component: WalletCatComponent,canActivate: [AuthGuardService] } ,
  { path: 'wallet/product_list/:id', component: WalletProductListComponent,canActivate: [AuthGuardService] } ,
  { path: 'wallet/category_list/:id', component: WalletProductDescComponent,canActivate: [AuthGuardService] } ,
  { path: 'salesreport', component: SalesReportComponent } ,
  { path: 'salesreport/:type/:email/:zmmail/:rmmail/:ammail/:mob_tempmth/:mob_tempyr/:id', component: SalesReportComponent } ,
  { path: 'dsereport', component: DseReportComponent } ,
  { path: 'dsereport/:type/:email/:zmmail/:rmmail/:ammail/:id', component: DseReportComponent } ,
  { path: 'assessmentreport', component: AssessmentReportComponent } ,
  { path: 'assessmentreport/:type/:email/:zmmail/:rmmail/:ammail/:id', component: AssessmentReportComponent } ,
  { path: 'analyticalreport', component: AnaliticalReportComponent } ,
  { path: 'analyticalreport/:type/:email/:zmmail/:rmmail/:ammail/:id', component: AnaliticalReportComponent } ,
  { path: 'leaderboardreport', component: LeaderboardReportComponent } ,
  { path: 'leaderboardreport/:type/:email/:zmmail/:rmmail/:ammail/:id', component: LeaderboardReportComponent } ,
  { path: 'asessmentleaderboardreport', component: LeaderboardAssessmentComponent } ,
  { path: 'asessmentleaderboardreport/:type/:email/:zmmail/:rmmail/:ammail/:id', component: LeaderboardAssessmentComponent } ,
  { path: 'coursereport', component: CourseReportComponent } ,
  { path: 'coursereport/:type/:email/:zmmail/:rmmail/:ammail/:id', component: CourseReportComponent } ,
  { path: 'setsalestergetreport', component: SetsalesTargetReportComponent } ,
  // { path: 'coursereport/:type/:email/:zmmail/:rmmail/:ammail/:id', component: CourseReportComponent } ,
  { path: 'feedbackreport', component: FeedbackReportComponent } ,
  { path: 'feedbackreport/:type/:email/:zmmail/:rmmail/:ammail/:id', component: FeedbackReportComponent } ,
  { path: 'rewardreport', component: RewardReportComponent } ,
  { path: 'rewardreport/:type/:id', component: RewardReportComponent } ,
  { path: 'setsalesreport', component: SetsalesReportComponent } ,
  { path: 'setsalesreport/:type/:email/:zmmail/:rmmail/:ammail/:id', component: SetsalesReportComponent } ,
  { path: 'trainer', component: TrainerComponent },
  { path: 'trainer/:type/:email/:id', component: TrainerComponent },
  { path: 'trainingcourse/:id', component: TrainingcourseComponent },
  { path: 'trainingfeedback/:id', component: DseTrainingFeedbackComponent },
  { path: 'allfeedback/:id', component: AllTrainingFeedbackComponent },
  { path: 'trainingcourse/:id/:type/:email/:token', component: TrainingcourseComponent },
  { path: 'addtraining', component: AddTrainingComponent },
  { path: 'hoaddtraining', component: AddHoTrainingComponent },
  { path: 'addclstraining', component: AddClsTrainingComponent },
  { path: 'newcreationtraining', component: NewCreateClsTrainingComponent },
  { path: 'newedittraining/:id', component: NewEditClsTrainingComponent },
  { path: 'editclstraining/:id', component: EditClsTrainingComponent },
  { path: 'addbatch', component: AddbatchComponent },
  { path: 'confirmpop', component: ConfirmpopComponent },
  { path: 'viewtraining/:id', component: ViewClsTrainingComponent },
  { path: 'myschedules', component: MySchedulesComponent,canActivate: [AuthGuardService] } ,
  { path: 'ilearning', component: HoSchedulesComponent,canActivate: [AuthGuardService] } ,
  { path: 'myenquiries', component: MyEnquiriesComponent },
  { path: 'create-enquiry', component: CreateenquiryComponent,canActivate: [AuthGuardService] },
  { path: 'create-enquiry/:back', component: CreateenquiryComponent,canActivate: [AuthGuardService] },
  
  { path: 'activityplanner', component: ActivityPlannerComponent },  
  { path: 'nonsyncenquiry', component: NonsyncenquiryComponent,canActivate: [AuthGuardService]},  
  { path: 'enquiry-status', component: EnquiryStatusComponent,canActivate: [AuthGuardService]},  
  
  { path: 'myenquiries', component: MyEnquiriesComponent,canActivate: [AuthGuardService]  },

  
  { path: 'mytrainings', component: MyTrainingsComponent },
  { path: 'notificationtraining/:id', component: TrainingNotificationComponent },
  { path: 'task/:id', component: TodaysTaskComponent },
  { path: 'action-history', component: ActionHistoryComponent },
  { path: 'enquiry-profile', component: EnquiryProfileComponent },
  
  { path: 'quotation', component: QuotationComponent},
  { path: 'quotation/:type', component: QuotationComponent},
  { path: 'quotation/:type/:userid/:customername/:email/:model/:variant/:color/:contactno/:dealername/:dealeraddress/:dealermobile/:dealeremail/:tokenvalue', component: QuotationComponent },

  { path: 'quotation/:type/:direct/:dealername/:dealeraddress/:dealermobile/:dealeremail/:tokenvalue', component: QuotationComponent},

  { path: 'emi-calculator', component: EmiCalulatorComponent },
  { path: 'emi-calculator/:type', component: EmiCalulatorComponent },
  { path: 'emi-calculator/:type/:userid/:model/:variant/:color/:tokenvalue', component: EmiCalulatorComponent },
  { path: 'emi-calculator/:type/:direct/:model/:variant/:color/:tokenvalue', component: EmiCalulatorComponent },  
  { path: 'emi-calculator/:type/:direct/:tokenvalue', component: EmiCalulatorComponent},

  // Dealer EMI AND CALCULATION
  { path: 'dealer-quotation', component: QuotationDealerComponent},
  { path: 'dealer-quotation/:type', component: QuotationDealerComponent},
  { path:'dealer-quotation/:type/:smpin/:userid/:customername/:email/:model/:variant/:color/:contactno/:dealername/:dealermobile/:dealeremail/:tokenvalue', component: QuotationDealerComponent },

  { path: 'training-feedback-reports', component: TrainingFeedbackReportsComponent},
  { path: 'training-ilearn-reports', component: TrainingIlearnReportsComponent},
  { path: 'training-decline-reports', component: TrainingDeclineReportsComponent},
  { path: 'training-absent-reports', component: TrainingAbsentReportComponent},
  { path: 'training-closure-reports', component: TrainingClosureReportComponent},
  { path: 'training-dse-feedback-reports', component: TrainingDseFeedbackReportComponent},
  { path: 'training-manual-attendance-reports', component: TrainingManualAttendanceReportComponent},
  { path: 'training-various-reports', component: TrainingVariousComponent},

 


  { path: 'dealer-quotation/:type/:direct/:smpin/:tokenvalue', component: QuotationDealerComponent},
  
  { path: 'dealer-emi-calculator', component: EmiCalculatorDealerComponent },
  { path: 'dealer-emi-calculator/:type', component: EmiCalculatorDealerComponent },
  { path: 'dealer-emi-calculator/:type/:smpin/:userid/:model/:variant/:color/:tokenvalue', component: EmiCalculatorDealerComponent }, 
  { path: 'dealer-emi-calculator/:type/:smpin/:direct/:tokenvalue', component: EmiCalculatorDealerComponent},
  { path: 'dealer-emi-calculator/:type/:direct/:tokenvalue', component: EmiCalculatorDealerComponent},
  { path: 'dealer-emi-calculator/:type/:smpin/:direct/:model/:variant/:color/:tokenvalue', component: EmiCalculatorDealerComponent },
  

 


  






  { path: 'activity-list/:id', component: ActivitydaylistComponent ,canActivate: [AuthGuardService] }, 
  
  
  { path: 'ilearn-reports', component: IlearnReportsComponent },
  { path: 'webcam', component: WebcamComponent},
  { path: 'enquiry-process', component: EnquiryProcessComponent},
  { path: 'testride', component: TestrideComponent},
  { path: 'enquiry-status/:id', component: EnquiryStatusComponent,canActivate: [AuthGuardService]},
  { path: 'enquiry-stage/:id', component: EnquiryStageComponent,canActivate: [AuthGuardService]},
  { path: 'price-list', component: PriceListComponent,canActivate: [AuthGuardService]},  
  { path: 'enquiry-report', component: EnquiryReportComponent,canActivate: [AuthGuardService]},  



  
  { path: 'sales-dse', component: SalesDseComponent,canActivate: [AuthGuardService]},  
  { path: 'enquiry-dse', component: EnquiryDseComponent,canActivate: [AuthGuardService]},  

  { path: 'add-plan', component: AddPlanComponent,canActivate: [AuthGuardService]},
  
  // Lead Module Dealer
  { path: 'dealer-action-history', component: ActionHistoryDealerComponent,canActivate: [AuthGuardService]},
  { path: 'dealer-activityday-link/:id', component: ActivitydaylistDealerComponent,canActivate: [AuthGuardService]},
  // { path: 'dealer-activity-planner', component: ActivityPlannerDealerComponent,canActivate: [AuthGuardService]},
  // { path: 'dealer-addplan', component: AddPlanDealerComponent,canActivate: [AuthGuardService]},
  // { path: 'dealer-create-enquiry', component: CreateenquiryDealerComponent,canActivate: [AuthGuardService]},
  // { path: 'dealer-emi-calculator', component: EmiCalulatorDealerComponent,canActivate: [AuthGuardService]},
  { path: 'dealer-enquiry-popup', component: EnquirypopupDealerComponent,canActivate: [AuthGuardService]},
  // { path: 'dealer-enquiry-process', component: EnquiryProcessDealerComponent,canActivate: [AuthGuardService]},
  { path: 'dealer-enquiry-profile', component: EnquiryProfileDealerComponent,canActivate: [AuthGuardService]},
  { path: 'dealer-enquiry-stage/:id', component: EnquiryStageDealerComponent,canActivate: [AuthGuardService]},
  { path: 'dealer-enquiry-status/:id', component: EnquiryStatusDealerComponent,canActivate: [AuthGuardService]},
  { path: 'dealer-myenquiries', component: MyEnquiriesDealerComponent,canActivate: [AuthGuardService]},
  // { path: 'dealer-mytrainings', component: MyTrainingsDealerComponent,canActivate: [AuthGuardService]},
  { path: 'dealer-nonsyncenquiry', component: NonsyncenquiryDealerComponent,canActivate: [AuthGuardService]},
  // { path: 'dealer-pendingtask', component: PendingTaskDealerComponent,canActivate: [AuthGuardService]},
  { path: 'dealer-pricelist', component: PriceListDealerComponent,canActivate: [AuthGuardService]},
  // { path: 'dealer-quotation', component: QuotationDealerComponent,canActivate: [AuthGuardService]},
  { path: 'dealer-taskstatus', component: TaskstatusDealerComponent,canActivate: [AuthGuardService]},
  { path: 'dealer-create-enquiry', component: CreateEnquiryDealerComponent,canActivate: [AuthGuardService]},  
  { path: 'dealer-create-enquiry/:back', component: CreateEnquiryDealerComponent,canActivate: [AuthGuardService]},  


  { path: 'dealer-activity-planner', component: ActivityPlannerDealerComponent,canActivate: [AuthGuardService]},  
  
 
  { path: 'dse-user-list', component: UserlistComponent,canActivate: [AuthGuardService]  },

  { path: 'dealer-testride', component: TestrideDealerComponent,canActivate: [AuthGuardService]},
  { path: 'dealer-task/:id', component: TodaysTaskDealerComponent,canActivate: [AuthGuardService]},

  { path: 'dealer-enquiry', component: EnquiryDealerComponent,canActivate: [AuthGuardService]},
  { path: 'dealer-sales', component: SalesDealerComponent,canActivate: [AuthGuardService]},
  { path: 'dealer-enquiry-report', component: EnquiryReportDealerComponent},
  { path: 'dealer-enquiry-report/:type/:tokenvalue', component: EnquiryReportDealerComponent},


  
  { path: 'manager-enquiry', component: DashboardComponent,canActivate: [AuthGuardService]},
  { path: 'manager-task/:id', component: TodayTaskManagerComponent,canActivate: [AuthGuardService]},
  { path: 'manager-taskstatus', component: TodayTaskManagerComponent,canActivate: [AuthGuardService]},

  { path: 'manager-testride', component: TestrideManagerComponent,canActivate: [AuthGuardService]},
  { path: 'manager-enquiry-status/:id', component: EnquiryStatusManagerComponent,canActivate: [AuthGuardService]},
  { path: 'manager-enquiry-stage/:id', component: EnquiryStageManagerComponent,canActivate: [AuthGuardService]},


  { path: 'manager-enquiry-profile', component: EnquiryProfileManagerComponent,canActivate: [AuthGuardService]},
  { path: 'manager-sales', component: ManagerSalesComponent,canActivate: [AuthGuardService]},


  { path: 'regional-enquiry', component: DashboardRegionalManagerComponent,canActivate: [AuthGuardService]},
  { path: 'zonal-enquiry', component: DashboardZonalManagerComponent,canActivate: [AuthGuardService]},
  { path: 'manager-action-history', component: ActionHistoryManagerComponent,canActivate: [AuthGuardService]},
  { path: 'manager-activity-planner', component: ActivityPlannerManagerComponent,canActivate: [AuthGuardService]},  
  { path: 'manager-activityday-list/:id', component: ActivitydaylistManagerComponent,canActivate: [AuthGuardService]},  
  { path: 'manager-enquiries', component: EnquiryManagerComponent,canActivate: [AuthGuardService]},  
  { path: 'manager-dselist', component: ManagerDselistComponent,canActivate: [AuthGuardService]},  
  

  { path: 'area-enquiry-report', component: AreaEnquiryReportComponent,canActivate: [AuthGuardService]},
  { path: 'area-enquiry-report/:type/:tokenvalue', component: AreaEnquiryReportComponent},


  { path: 'region-enquiry-report', component: RegionalEnquiryReportComponent,canActivate: [AuthGuardService]},
  { path: 'region-enquiry-report/:type/:tokenvalue', component: RegionalEnquiryReportComponent},


  { path: 'zone-enquiry-report', component: ZoneEnquiryReportComponent,canActivate: [AuthGuardService]},
  { path: 'zone-enquiry-report/:type/:tokenvalue', component: RegionalEnquiryReportComponent},
  { path: 'ho-enquiry', component: DashboardHoComponent},
  { path: 'trainer-enquiry', component: DashboardTrainerComponent},

  { path: 'ho-enquiry-report', component: HoEnquiryReportComponent},
  { path: 'ho-enquiry-report/:type/:tokenvalue', component: HoEnquiryReportComponent},

  { path: 'trainer-enquiry-report', component: TrainerEnquiryReportComponent},
  { path: 'trainer-enquiry-report/:type/:tokenvalue', component: TrainerEnquiryReportComponent},
  { path: 'training-classroom-reports', component: ClassroomReportsComponent},




  { path: '**', pathMatch: 'full', redirectTo: '' } // catch any unfound routes and redirect to ford landing page ActionHistoryManagerComponent

];

@NgModule({
  imports: [ RouterModule.forRoot(routes) ],
  exports: [ RouterModule ]
})

export class AppRoutingModule {}
