import { NgModule, ErrorHandler } from '@angular/core';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { BarcodeScanner } from '@ionic-native/barcode-scanner';
import { LipigasPersonas } from './app.component';
import { IonicStorageModule } from '@ionic/storage';
import { Network } from '@ionic-native/network';
import { Lipigas } from '../lipigas';
import { VerNoticia } from '../pages/vernoticia/vernoticia';
import { Cumpleanos } from '../pages/cumpleanos/cumpleanos';
import { Colaboradores } from '../pages/colaboradores/colaboradores';
import { VerPersona } from '../pages/verpersona/verpersona';
import { SolicitarPuntos } from '../pages/solicitarpuntos/solicitarpuntos';
import { AprobarPuntos } from '../pages/aprobarpuntos/aprobarpuntos';
import { NoticiasComponent } from '../pages/noticias/noticias';
import { CursosDetalle } from '../pages/cursos/detalle';
import { CursosListar } from '../pages/cursos/listar';
import { Enrolar } from '../pages/cursos/enrolar';
import { Sub } from '../pages/cursos/sub';
import { Login } from '../pages/login/login';
import { Perfil } from '../pages/perfil/perfil';
import { PasswordPerdida } from '../pages/passwordperdida/passwordperdida';
import { Home } from '../pages/home/home';
import { Ng2Rut } from 'ng2-rut';
import { Push, PushObject, PushOptions } from '@ionic-native/push';

@NgModule({
  declarations: [
    LipigasPersonas,
    NoticiasComponent,
    VerNoticia,
    Cumpleanos,
    Colaboradores,
    VerPersona,
    AprobarPuntos,
    SolicitarPuntos,
    CursosListar,
    CursosDetalle,
    Login,
    Enrolar,
    Sub,
    Home,
    Perfil,
    PasswordPerdida
  ],
  imports: [
    Ng2Rut, 
    IonicModule.forRoot(LipigasPersonas, {
      backButtonText: ''
     }),
     IonicStorageModule.forRoot()
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    LipigasPersonas,
    NoticiasComponent,
    SolicitarPuntos,
    AprobarPuntos,
    Colaboradores,
    CursosListar,
    CursosDetalle,
    VerNoticia,
    Cumpleanos,
    VerPersona,
    Login,
    Enrolar,
    Sub,
    Home,
    Perfil,
    PasswordPerdida
  ],
  providers: [{provide: ErrorHandler, useClass: IonicErrorHandler}, Network, BarcodeScanner, Lipigas, Push]
})
export class AppModule {}
