/* Copyright CloudLinux Zug GmbH 2010-2017 All Rights Reserved
 *
 * Licensed under CLOUD LINUX LICENSE AGREEMENT
 * http://cloudlinux.com/docs/LICENSE.TXT
 */

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { TypeaheadModule } from 'ngx-bootstrap/typeahead';

import { ImunifyRouterModule } from './imunify-routing.module';
import { ImunifyComponent } from './imunify.component';
import { ImunifyStatusComponent } from './imunify-status.component';
import { IncidentsComponent } from './incidents.component';
import { ImunifyGuard } from './imunify-guard.service';
import { XHR } from '../utils/xhr';

@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        ImunifyRouterModule,
        TypeaheadModule.forRoot(),
    ],
    exports: [
        TypeaheadModule,
        ImunifyRouterModule,
    ],
    declarations: [
        ImunifyComponent,
        ImunifyStatusComponent,
        IncidentsComponent,
    ],
    providers: [
        XHR,
        ImunifyGuard,
    ],
})
export class ImunifyModule {}
