import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {SharedModule} from '../../../../shared/shared.module';
import {ConfAgentPageComponent} from './agent-page/conf-agent-page/conf-agent-page.component';
import { ConfAgentDetailComponent } from './agent-page/conf-agent-detail/conf-agent-detail.component';
import { ConfAgentAspectComponent } from './agent-page/conf-agent-aspect/conf-agent-aspect.component';
import { AgentArrangeComponent } from './agent-arrange/agent-arrange.component';
import { AgentInfoComponent } from './agent-info/agent-info.component';
import { AgentPayComponent } from './agent-pay/agent-pay.component';
import {BsModalRef} from 'ngx-bootstrap';
import {StdUploadComponent} from './agent-std/std-upload/std-upload.component';
import { AgentStdAspectComponent } from './agent-std-aspect/agent-std-aspect.component';
import { AgentStdComponent } from './agent-std/agent-std.component';
import { AgentStdInfoComponent } from './agent-std-info/agent-std-info.component';

const routes: Routes = [
  {path: 'page', component: ConfAgentPageComponent},
  {path: 'arrange', component: AgentArrangeComponent},
  {path: 'info', component: AgentInfoComponent},
  {path: 'pay', component: AgentPayComponent},
  {path: 'std', component: AgentStdComponent},
];

@NgModule({
  imports: [
    SharedModule,
    RouterModule.forChild(routes)
  ],
  entryComponents: [ConfAgentDetailComponent, ConfAgentAspectComponent, AgentArrangeComponent, 
    AgentInfoComponent, AgentPayComponent,StdUploadComponent,AgentStdAspectComponent,AgentStdComponent,AgentStdInfoComponent],
  declarations: [ConfAgentPageComponent, ConfAgentDetailComponent, ConfAgentAspectComponent, AgentArrangeComponent, 
    AgentInfoComponent, AgentPayComponent,StdUploadComponent,AgentStdAspectComponent,AgentStdComponent,AgentStdInfoComponent],
  exports: [
    RouterModule
  ]
})
export class AgentConfModule {
}
