import { CandidateEventDetailsComponent } from '../pgm/candidate-event-details/candidate-event-details.component';
import { CommonModule } from '@angular/common';
import { CourseAndAssessmentComponent } from '../pgm/pgm-bny/course-and-assessment/course-and-assessment.component';
import { EmployeeEventDetailsComponent } from '../pgm/employee-event-details/employee-event-details.component';
import { ExportComponentComponent } from '../pgm/export-component/export-component.component';
import { ExportEmployeComponentComponent } from '../pgm/export-employe-component/export-employe-component.component';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MyDateRangePickerModule } from 'mydaterangepicker';
import { NgModule } from '@angular/core';
import { PgmAssignCoachComponent } from '../pgm/pgm-assign-coach/pgm-assign-coach.component';
import { PgmBnyEmployeeLandingComponent } from '../pgm/pgm-landing/pgm-bny-employee-landing/pgm-bny-employee-landing.component';
import { PgmCandidateComponent } from '../pgm/pgm-candidate/pgm-candidate.component';
import { PgmCandidateDashBoardComponent } from '../pgm/pgm-landing/pgm-candidate-dash-board/pgm-candidate-dash-board.component';
import { PgmCoachDashBoardComponent } from '../pgm/pgm-landing/pgm-coach-dash-board/pgm-coach-dash-board.component';
import { PgmComponent } from '../pgm/pgm.component';
import { PgmEmployeeDetailsComponent } from '../pgm/pgm-employee-details/pgm-employee-details.component';
import { PgmLandingComponent } from '../pgm/pgm-landing/pgm-landing.component';
import { PgmLearningPathDetailsComponent } from '../pgm/pgm-employee-details/shared/pgm-learning-path-details/pgm-learning-path-details.component';
import { PgmRecommendedAssessmentComponent } from '../pgm/pgm-recommended-assessment/pgm-recommended-assessment.component';
import { PgmRecommendedCourseComponent } from '../pgm/pgm-recommended-course/pgm-recommended-course.component';
import { PgmReviewerDetailsComponent, RemoveUnderscorePipe } from '../pgm/pgm-reviewer-details/pgm-reviewer-details.component';
import { RouterModule, Routes } from '@angular/router';
import { SelectCourseAndAssessmentComponent } from '../pgm/pgm-bny/select-course-and-assessment/select-course-and-assessment.component';
import { SelectLearningPathComponent } from '../pgm/pgm-bny/select-learning-path/select-learning-path.component';
import { CandidateListComponent } from '../pgm/candidate-list/candidate-list.component';
import { SharedModule } from './shared.module';

const routes: Routes = [
  {
    path: 'pgm',
    component: PgmComponent,
    children: [
      {
        path: 'landing',
        component: PgmLandingComponent,

        children: [
          { path: '', component: PgmCandidateDashBoardComponent },
          { path: 'coach', component: PgmCoachDashBoardComponent },
          { path: 'employee', component: PgmBnyEmployeeLandingComponent },
        ]
      },
      { path: 'candidateList', component: CandidateListComponent },
      { path: 'exports', component: ExportComponentComponent },
      { path: 'exportEmployee', component: ExportEmployeComponentComponent },
      { path: 'candidateEventDetails/:id', component: CandidateEventDetailsComponent },
      { path: 'employeeEventDetails/:userId/:courseId', component: EmployeeEventDetailsComponent },
      { path: 'candidateDetails/:id', component: PgmCandidateComponent },
      /*{ path: 'employee/recommendedCourse/:id', component: PgmRecommendedCourseComponent },
      { path: 'employee/recommendedAssessment/:id', component: PgmRecommendedAssessmentComponent },*/
      { path: 'employee/CourseAndAssessment/:id', component: CourseAndAssessmentComponent },
      { path: 'employee/SelectCourseAndAssessment', component: SelectCourseAndAssessmentComponent },
      { path: 'employee/SelectLearningPath', component: SelectLearningPathComponent },
      { path: 'employee/:empId', component: PgmEmployeeDetailsComponent },
      { path: 'employee/learningPath/:id', component: PgmLearningPathDetailsComponent },
      { path: 'assignCoach/:userId/:courseId', component: PgmAssignCoachComponent },
      { path: 'reviewerDetails', component: PgmReviewerDetailsComponent }
    ]
  },
  {
    path: 'talent-transformation',
    component: PgmComponent,
    children: [
      {
        path: 'landing',
        component: PgmLandingComponent,

        children: [
          { path: '', component: PgmCandidateDashBoardComponent },
          { path: 'coach', component: PgmCoachDashBoardComponent },
          { path: 'employee', component: PgmBnyEmployeeLandingComponent },
        ]
      },
      { path: 'candidateList', component: CandidateListComponent },
      { path: 'exports', component: ExportComponentComponent },
      { path: 'exportEmployee', component: ExportEmployeComponentComponent },
      { path: 'candidateEventDetails/:id', component: CandidateEventDetailsComponent },
      { path: 'employeeEventDetails/:userId/:courseId', component: EmployeeEventDetailsComponent },
      { path: 'candidateDetails/:id', component: PgmCandidateComponent },
      /*{ path: 'employee/recommendedCourse/:id', component: PgmRecommendedCourseComponent },
      { path: 'employee/recommendedAssessment/:id', component: PgmRecommendedAssessmentComponent },*/
      { path: 'employee/CourseAndAssessment/:id', component: CourseAndAssessmentComponent },
      { path: 'employee/SelectCourseAndAssessment', component: SelectCourseAndAssessmentComponent },
      { path: 'employee/SelectLearningPath', component: SelectLearningPathComponent },
      { path: 'employee/:empId', component: PgmEmployeeDetailsComponent },
      { path: 'employee/learningPath/:id', component: PgmLearningPathDetailsComponent },
      { path: 'assignCoach/:userId/:courseId', component: PgmAssignCoachComponent },
      { path: 'reviewerDetails', component: PgmReviewerDetailsComponent }
    ]
  },
];

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    SharedModule,
    ReactiveFormsModule,
    MyDateRangePickerModule,
    RouterModule.forChild(routes)
  ],
  declarations: [
    PgmComponent,
    SelectCourseAndAssessmentComponent,
    ExportEmployeComponentComponent,
    PgmAssignCoachComponent,
    PgmRecommendedAssessmentComponent,
    CourseAndAssessmentComponent,
    PgmEmployeeDetailsComponent,
    PgmCandidateDashBoardComponent,
    PgmLandingComponent,
    PgmBnyEmployeeLandingComponent,
    PgmReviewerDetailsComponent,
    PgmLearningPathDetailsComponent,
    SelectLearningPathComponent,
    PgmCandidateComponent,
    PgmCoachDashBoardComponent,
    EmployeeEventDetailsComponent,
    CandidateEventDetailsComponent,
    ExportComponentComponent,
    PgmRecommendedCourseComponent,
    CandidateListComponent,
    RemoveUnderscorePipe
  ]
})
export class PgmRoutingModule { }
