import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {SharedModule} from '../../shared/shared.module';
import { InitialReviewRejectComponent } from './initial-review/initial-review-reject/initial-review-reject.component';
import {UploadList} from './uploadList/upload-list';
import {InitialReviewDetailComponent} from './initial-review/initial-review-detail/initial-review-detail.component';


const routes: Routes = [
  { path: 'initial', loadChildren: ()=> import('./initial-review/initial.review.module').then(m => m.InitailReviewModule) },
  { path: 'initial.progress', loadChildren: ()=> import('./initial-progress/initial.progress.review.module').then(m => m.InitialProgressReviewModule) },
  { path: 'final', loadChildren: ()=> import('./final-review/final.review.module').then(m => m.FinalReviewModule) },
  { path: 'final.progress', loadChildren: ()=> import('./final-progress/final.progress.review.module').then(m => m.FinalProgressReviewModule) },
  { path: 'initial.notice', loadChildren: ()=> import('./initial-notice/initial.notice.review.module').then(m => m.InitialNoticeReviewModule) },
  { path: 'final.notice', loadChildren: ()=> import('./final-notice/final.notice.review.module').then(m => m.FinalNoticeReviewModule) },
  { path: 'recheck', loadChildren: ()=> import('./re-check/recheck.review.module').then(m => m.RecheckReviewModule) },
  { path: 'log', loadChildren: ()=> import('./review-log/log.review.module').then(m => m.LogReviewModule) },
  { path: 'auth.tag', loadChildren: ()=> import('./review-tag/tag.review.module').then(m => m.TagReviewModule) },
];

@NgModule({
  imports: [
    SharedModule,
    RouterModule.forChild(routes),

  ],
  entryComponents: [InitialReviewDetailComponent,InitialReviewRejectComponent,UploadList],
  declarations: [InitialReviewDetailComponent,InitialReviewRejectComponent,UploadList],
  exports: [
    RouterModule,
    UploadList
  ]
})

export class ReviewModule {
}
