import { RouterModule } from '@angular/router';
import { EventDetailsComponent } from './event-details/event-details.component';
import { ExternalManagamentsComponent } from './external-managaments/external-managaments.component';
import { SharedModule } from './../shared/shared.module';
import { ExternalEventsComponent } from './external-events/external-events.component';
import { ExternalPageService } from './../shared/external-page.service';
import { ExternalPageRoutingModule } from './external-routing-module';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { ExternalPageHeaderComponent } from './external-page-header/external-page-header.component';
import { ExternalPageContentComponent } from './external-page-content/external-page-content.component';
import { ExternalPageComponent } from './external-page/external-page.component';
import { AgmCoreModule } from '@agm/core';
import { CalendarModule, DateAdapter } from 'angular-calendar';
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
import { ExternalHospitalComponent } from './external-hospital/external-hospital.component';
import { NewPageComponent } from './new-page/new-page.component';
import { ExternalEventsTableComponent } from './external-events-table/external-events-table.component';
import {NgxPaginationModule} from 'ngx-pagination';
import { MoreNewsComponent } from './more-news/more-news.component';
import { InernalServicePageComponent } from './inernal-service-page/inernal-service-page.component';
import { ExternalContactUsComponent } from './external-contact-us/external-contact-us.component';
import { ExternalPolicyComponent } from './external-policy/external-policy.component';
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
import { ContactUsComponent } from './contact-us/contact-us.component';

import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { CarouselModule } from 'ngx-owl-carousel-o';

@NgModule({
    declarations: [ExternalPageHeaderComponent,
        ExternalPageContentComponent,
        ExternalPageComponent,
        ExternalEventsComponent,
        ExternalHospitalComponent,
        NewPageComponent,
        ExternalEventsTableComponent,
        MoreNewsComponent,
        ExternalManagamentsComponent,
        EventDetailsComponent,
        InernalServicePageComponent,
        ExternalContactUsComponent,
        ExternalPolicyComponent,
        ContactUsComponent,
    ],
    imports: [
        CommonModule,
        FormsModule,
        BrowserAnimationsModule,
        RouterModule,
        CarouselModule,
        NgxPaginationModule,
        CarouselModule,
        SharedModule,
        NgbModule.forRoot(),
        AgmCoreModule.forRoot({
            apiKey: 'AIzaSyAxlgymaua-8BszEryfQIOr9PLKrtEqU2I'
          }),
        ExternalPageRoutingModule,
        CalendarModule.forRoot({
            provide: DateAdapter,
            useFactory: adapterFactory
          })
    ],
    providers: [
        ExternalPageService,
    ],
})

export class ExternalPageModule {

}