import { DataService } from 'src/app/services/data.service' ; import { Injector , Directive } from '@angular/core' ; import { IResponseMessageHandler } from 'src/app/Common/ResponseMessageHandlers' ; import { Observable } from 'rxjs' ; import { map , mergeMap } from 'rxjs/operators' ; import { BaseControllerDirective } from 'src/app/ViewModels/BaseController' ; import { SystemApplication } from 'src/app/Models/DataModels/Application' ; import { ListSettings } from 'src/app/Models/ListSettings' ; @ Directive ( ) export class ServiceApplicationsBaseControllerDirective extends BaseControllerDirective { systemApp : SystemApplication ; listSettings : ListSettings ; unhealthyEvaluationsListSettings : ListSettings ; constructor ( protected data , injector ) { super ( injector ) ; } common ( messageHandler ? ) { return this . data . getSystemApp ( true , messageHandler ) . pipe ( map ( systemApp => { this . systemApp = systemApp ; } ) ) ; } }