import {EventEmitter, Injectable} from '@angular/core'; import {Observable, Subject} from 'rxjs'; @Injectable({ providedIn: 'root' }) export class AllService { public hasMedical = false; private _signatureSubject = new Subject(); private _showModalDocumentFromSummarySubject = new Subject(); private _stepsSubject = new Subject(); public saveDataStep: EventEmitter; public currentStepCustomError = false; private _fileSepaRequiredSubject = new Subject(); private _submitedStepSubject = new Subject(); public product: any = {}; public stepIcons: Array = []; private _configurationPreview: any = {}; productCollectionService: any = null; customerVariableService: any = null; productTemplateService: any = null; contractDocumentService: any = null; documentReaderService: any = null; organismeService: any = null; referenceManagerService: any = null; contractService: any = null; Sentry: any = null; fileStorageManagerService: any = null; contractManagerService: any = null; deactivateButtonPrevious = false; faIcons: any = []; activeStep = null; contract = null; productIdOriginal = null; saveAnythingFromStepBuiltIn: any = null; setOriginalVariableValue: any = null; showButtonNext = true; showButtonPrevious = true; get signatureSubject(): Subject { return this._signatureSubject; } getSignatureAsObserVable(): Observable { return this._signatureSubject.asObservable(); } get stepsSubject(): Subject { return this._stepsSubject; } getStepsSubjectAsObserVable(): Observable { return this._stepsSubject.asObservable(); } get showModalDocumentFromSummarySubject(): Subject { return this._showModalDocumentFromSummarySubject; } getShowModalDocumentFromSummaryObserVable(): Observable { return this._showModalDocumentFromSummarySubject.asObservable(); } get fileSepaRequiredSubject(): Subject { return this._fileSepaRequiredSubject; } getFileSepaRequiredAsObserVable(): Observable { return this._fileSepaRequiredSubject.asObservable(); } get configurationPreview(): any { return this._configurationPreview; } set configurationPreview(value: any) { this._configurationPreview = value; } get submitedStepSubject(): Subject { return this._submitedStepSubject; } set submitedStepSubject(value: Subject) { this._submitedStepSubject = value; } getSubmitedStepAsObserVable(): Observable { return this._submitedStepSubject.asObservable(); } constructor() { } }