import { EventsDateComponent } from './events/events-date.component';
import { NewsPagesComponent } from './news-pages/news-pages.component';
import { CircularsPageComponent } from './circulars-page/circulars-page.component';
import { NewsPageComponent } from './news-page/news-page.component';
import { InternalPageContentComponent } from './internal-page-content/internal-page-content.component';
import { NgModule } from '@angular/core';
// import { AuthGuardService as AuthGuard } from './../shared/auth-guard.service';
import { RouterModule, Routes } from '@angular/router';
import { InternalPageComponent } from './internal-page/internal-page.component';

import { HospitalContentComponent } from './hospital-content/hospital-content.component';
import { LoginComponent } from './../login/login.component';
import { ExternalServiceDetailsComponent } from './external-service-details/external-service-details.component';
import { InternalContactUsComponent } from './internal-contact-us/internal-contact-us.component';
import { InternalPolicyComponent } from './internal-policy/internal-policy.component';


const internalPageRoutes: Routes = [
        {path: 'InternalPage' , component: InternalPageComponent, children:[
        {path: '', component: InternalPageContentComponent},
        {path:'circulars', component: CircularsPageComponent},
        {path: 'events', component: EventsDateComponent},
        {path: 'newpages', component: NewsPagesComponent},
        {path: 'contactUs/:contactId', component: InternalContactUsComponent},
        {path: 'policy/:policyId', component: InternalPolicyComponent},
        {path: 'externalServiceDetails/:serviceId', component: ExternalServiceDetailsComponent},
        {path: 'news/:reportId', component: NewsPageComponent},
        {path: ':typePage', component: HospitalContentComponent},
    ]},
];

@NgModule({
    imports: [
        RouterModule.forChild(internalPageRoutes),
    ],
    //exports: [internalPageRoutes]
    exports: [
        RouterModule
      ]
})

export class InternalPageRoutingModule {

}
