import { AdminComponent } from '../admin/admin.component';
import { AWSSandboxConfComponent } from 'app/admin/inner-admin-pages/right-admin-panel/awssandbox-conf/awssandbox-conf.component';
import { CaFormComponent } from '../admin/inner-admin-pages/right-admin-panel/capability-assessment/ca-form/ca-form.component';
import { CandidateTransferComponent } from '../admin/candidate-transfer/candidate-transfer.component';
import { CapabilityAssessmentComponent } from '../admin/inner-admin-pages/right-admin-panel/capability-assessment/capability-assessment.component';
import { CaTilesComponent } from '../admin/inner-admin-pages/right-admin-panel/capability-assessment/ca-tiles/ca-tiles.component';
import { CcIndexAdminComponent } from '../admin/inner-admin-pages/right-admin-panel/cc-index-admin/cc-index-admin.component';
import { CCIndexComponent } from '../admin/ccindex/ccindex.component';
import { CCIndexFormComponent } from '../admin/ccindex/ccindex-form/ccindex-form.component';
import { CoachNominationComponent } from '../admin/coach-nomination/coach-nomination.component';
import { CommonModule } from '@angular/common';
import { CoursesEmpComponent } from '../admin/inner-admin-pages/right-admin-panel/courses-emp/courses-emp.component';
import { DataTableComponent } from 'app/admin/shared/data-table/data-table.component';
import { FilterPipe } from '../admin/inner-admin-pages/right-admin-panel/location-admin/filter.pipe';
import { FiltersPipe } from '../admin/inner-admin-pages/right-admin-panel/user-mgmt/filters.pipe';
import { FormInputMultipleComponent } from '../admin/shared/form-input-multiple/form-input-multiple.component';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { InnerAdminPagesComponent } from '../admin/inner-admin-pages/inner-admin-pages.component';
import { InnerHeaderComponent } from '../admin/inner-admin-pages/inner-header/inner-header.component';
import { InnovationFocalsComponent } from 'app/admin/inner-admin-pages/right-admin-panel/innovation-focals/innovation-focals.component';
import { JobRequirementComponent } from 'app/admin/inner-admin-pages/right-admin-panel/job-requirement/job-requirement.component';
import { LandingPageComponent } from 'app/admin/landing-page/landing-page.component';
import { LearningPathComponent } from '../admin/inner-admin-pages/right-admin-panel/learning-path/learning-path.component';
import { LeftAdminPanelComponent } from '../admin/inner-admin-pages/left-admin-panel/left-admin-panel.component';
import { LocationAdminComponent } from '../admin/inner-admin-pages/right-admin-panel/location-admin/location-admin.component';
import { LocationComponent } from '../admin/location/location.component';
import { LocationFormComponent } from '../admin/location/location-form/location-form.component';
import { LocFormComponent } from '../admin/inner-admin-pages/right-admin-panel/location-admin/loc-form/loc-form.component';
import { LocTilesComponent } from '../admin/inner-admin-pages/right-admin-panel/location-admin/loc-tiles/loc-tiles.component';
import { LpFilterComponent } from '../admin/shared/lp-filter/lp-filter.component';
import { LpSelectSkillsComponent } from '../admin/inner-admin-pages/right-admin-panel/learning-path/lp-select-skills/lp-select-skills.component';
import { LpTilesComponent } from '../admin/inner-admin-pages/right-admin-panel/learning-path/lp-tiles/lp-tiles.component';
import { MyDateRangePickerModule } from 'mydaterangepicker';
import { NewCandidateTransferComponent } from 'app/admin/inner-admin-pages/right-admin-panel/candidate-transfer/candidate-transfer.component';
import { NgModule } from '@angular/core';
import { NlandingPageComponent } from '../admin/nlanding-page/nlanding-page.component';
import { QuillModule } from '../../../node_modules/ngx-quill';
import { RightAdminPanelComponent } from '../admin/inner-admin-pages/right-admin-panel/right-admin-panel.component';
import { RolesAdminComponent } from '../admin/inner-admin-pages/right-admin-panel/roles-admin/roles-admin.component';
import { RoleTilesComponent } from '../admin/inner-admin-pages/right-admin-panel/roles-admin/role-tiles/role-tiles.component';
import { RouterModule, Routes } from '@angular/router';
import { SandboxformComponent } from 'app/admin/inner-admin-pages/right-admin-panel/awssandbox-conf/sandboxform/sandboxform.component';
import { SandboxtileComponent } from 'app/admin/inner-admin-pages/right-admin-panel/awssandbox-conf/sandboxtile/sandboxtile.component';
import { SharedModule } from './shared.module';
import { SkillComponent } from '../admin/skill/skill.component';
import { SkillFormComponent } from '../admin/skill/skill-form/skill-form.component';
import { SkilsetAdminComponent } from '../admin/inner-admin-pages/right-admin-panel/skilset-admin/skilset-admin.component';
import { SkilsetFormComponent } from '../admin/inner-admin-pages/right-admin-panel/skilset-admin/skilset-form/skilset-form.component';
import { SkilsetTilesComponent } from '../admin/inner-admin-pages/right-admin-panel/skilset-admin/skilset-tiles/skilset-tiles.component';
import { UsecaseFormComponent } from '../admin/inner-admin-pages/right-admin-panel/usecase-list/usecase-form/usecase-form.component';
import { UsecaseListComponent } from '../admin/inner-admin-pages/right-admin-panel/usecase-list/usecase-list.component';
import { UserFormComponent } from '../admin/inner-admin-pages/right-admin-panel/user-mgmt/user-form/user-form.component';
import { UserMgmtComponent } from 'app/admin/inner-admin-pages/right-admin-panel/user-mgmt/user-mgmt.component';
import { UserTilesComponent } from '../admin/inner-admin-pages/right-admin-panel/user-mgmt/user-tiles/user-tiles.component';
import { JrFormComponent } from '../admin/inner-admin-pages/right-admin-panel/job-requirement/jr-form/jr-form.component';
import { JrTilesComponent } from '../admin/inner-admin-pages/right-admin-panel/job-requirement/jr-tiles/jr-tiles.component';
import { EngineeringEnvComponent } from '../admin/inner-admin-pages/right-admin-panel/engineering-env/engineering-env.component';
import { ProjectRequestListComponent } from '../admin/inner-admin-pages/right-admin-panel/project-request-list/project-request-list.component';
import { InnovTilesComponent } from '../admin/inner-admin-pages/right-admin-panel/innovation-focals/innov-tiles/innov-tiles.component';
import { InnovFormComponent } from '../admin/inner-admin-pages/right-admin-panel/innovation-focals/innov-form/innov-form.component';
import { CollegeRecruitmentComponent } from '../admin/inner-admin-pages/right-admin-panel/college-recruitment/college-recruitment.component';
import { CollegeFormComponent } from '../admin/inner-admin-pages/right-admin-panel/college-recruitment/college-form/college-form.component';
import { CollegeTilesComponent } from '../admin/inner-admin-pages/right-admin-panel/college-recruitment/college-tiles/college-tiles.component';


const routes: Routes = [
    {
        path: 'admin',
        component: AdminComponent,
        // canActivate: [AdminAuthenticationService],
        children: [
            { path: '', component: NlandingPageComponent },
            // { path: 'users', component: UsersComponent },
            // { path: 'user', component: UserManagementComponent },
            { path: 'inner-page/:id', component: InnerAdminPagesComponent },
            { path: 'usecase-list', component: UsecaseListComponent },
            { path: 'usecase-form', component: UsecaseFormComponent },
            // { path: 'user/:id', component: UserManagementComponent },
            { path: 'candidate-transfer', component: CandidateTransferComponent },
            { path: 'locations', component: LocationComponent },
            { path: 'location', component: LocationFormComponent },
            { path: 'location/:id', component: LocationFormComponent },
            { path: 'coach-nomination', component: CoachNominationComponent },
            { path: 'skills', component: SkillComponent },
            { path: 'skill', component: SkillFormComponent },
            { path: 'skill/:id', component: SkillFormComponent },
            { path: 'cc-index', component: CCIndexComponent },
            { path: 'cc-index-form', component: CCIndexFormComponent },
            { path: 'cc-index-form/:id', component: CCIndexFormComponent },
            { path: 'capability-assessment', component: CapabilityAssessmentComponent },
            { path: 'job-requirement', component: JobRequirementComponent },
            { path: 'jr-form', component: JrFormComponent },
            { path: 'jr-tiles', component: JrTilesComponent }
        ]
    },
];

@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        SharedModule,
        ReactiveFormsModule,
        MyDateRangePickerModule,
        QuillModule,
        RouterModule.forChild(routes)
    ],
    declarations: [
        AdminComponent,
        NlandingPageComponent,
        InnerAdminPagesComponent,
        UsecaseListComponent,
        UsecaseFormComponent,
        CandidateTransferComponent,
        LocationComponent,
        LocationFormComponent,
        CoachNominationComponent,
        SkillComponent,
        SkillFormComponent,
        CCIndexComponent,
        CCIndexFormComponent,
        CapabilityAssessmentComponent,
        InnerHeaderComponent,
        LeftAdminPanelComponent,
        RightAdminPanelComponent,
        CcIndexAdminComponent,
        RolesAdminComponent,
        LocationAdminComponent,
        SkilsetAdminComponent,
        InnovationFocalsComponent,
        JobRequirementComponent,
        UserMgmtComponent,
        AWSSandboxConfComponent,
        SandboxtileComponent,
        SandboxformComponent,
        LandingPageComponent,
        NewCandidateTransferComponent,
        DataTableComponent,
        FormInputMultipleComponent,
        CaFormComponent,
        CaTilesComponent,
        CoursesEmpComponent,
        LearningPathComponent,
        LpSelectSkillsComponent,
        LpTilesComponent,
        FilterPipe,
        LocFormComponent,
        LocTilesComponent,
        RoleTilesComponent,
        SkilsetFormComponent,
        SkilsetTilesComponent,
        FiltersPipe,
        UserFormComponent,
        UserTilesComponent,
        LpFilterComponent,
        JrFormComponent,
        JrTilesComponent,
        EngineeringEnvComponent,
        ProjectRequestListComponent,
        InnovTilesComponent,
        InnovFormComponent,
        CollegeRecruitmentComponent,
        CollegeFormComponent,
        CollegeTilesComponent
    ]
})
export class AdminRoutingModule { }
