import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { JobmasterComponent } from './jobmaster/jobmaster.component';
import { JobdefinitionComponent } from './jobdefinition/jobdefinition.component';
import {AutoarchivejobComponent} from './autoarchivejob/autoarchivejob.component'
import { AuthGuard } from '../auth.guard';
import { ManualarchivejobComponent } from './manualarchivejob/manualarchivejob.component';

const routes: Routes = [
  { path: '', component: JobmasterComponent , canActivate: [AuthGuard]},
  { path: 'jobmaster', component: JobmasterComponent, canActivate: [AuthGuard] },
  { path: 'jobdefinition', component: JobdefinitionComponent, canActivate: [AuthGuard] },
  { path: 'autojobarchieve', component: AutoarchivejobComponent, canActivate: [AuthGuard] },
  { path: 'manualjobarchieve', component: ManualarchivejobComponent, canActivate: [AuthGuard] },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class JobconfigurationRoutingModule { }
