/** Angular Imports */ import { Injectable } from '@angular/core' ; import { Resolve , ActivatedRouteSnapshot } from '@angular/router' ; /** rxjs Imports */ import { Observable , forkJoin } from 'rxjs' ; /** Custom Services */ import { SystemService } from '../../system.service' ; /**
 * View History Scheduler Jobs data resolver.
 */ @ Injectable ( ) export class ViewHistorySchedulerJobsResolver implements Resolve < Object > { param { SystemService } systemService constructor ( private systemService ) { } returns { Observable < any > } resolve ( route ) { const jobId = route . paramMap . get ( 'id' ) ; return this . systemService . getHistoryScheduler ( jobId ) ; } }