|
@@ -1,9 +1,9 @@
|
|
|
import { AnyObject } from "mongoose";
|
|
|
import { map, Observable, of, tap } from "rxjs";
|
|
|
-import { Command, ResponseMessage } from "../dependencies/fisappmessagejsutilty/interface/export"
|
|
|
+import { Command, ResponseMessage, Uuid } from "../dependencies/fisappmessagejsutilty/interface/export"
|
|
|
import { FisCreateMessageUtility } from "../dependencies/fisappmessagejsutilty/interface/export";
|
|
|
import { LoggingService } from "../dependencies/fisloggingservice/services/logging-service";
|
|
|
-import { LogSetting } from "../dependencies/fisloggingservice/type/datatype";
|
|
|
+import { LogSetting, MessageLog } from "../dependencies/fisloggingservice/type/datatype";
|
|
|
import { Acknowledgemeent, AcknowledgementLogSetting } from "../type/acknowledgement.interface";
|
|
|
|
|
|
|
|
@@ -79,7 +79,24 @@ export class AcknowledgementService implements Acknowledgemeent {
|
|
|
}
|
|
|
|
|
|
))
|
|
|
- this.logService2.subscribe(acknowledgementToken)
|
|
|
+ let acknowledgementTokenLogging: Observable<MessageLog> = obs.pipe(
|
|
|
+ map(
|
|
|
+ incoming_msg => {
|
|
|
+ let finalResponse:MessageLog = {
|
|
|
+ appLogLocId: this.settings2.setting.appLogId || "",
|
|
|
+ appData: {
|
|
|
+ msgId: new Uuid().generateId(),
|
|
|
+ msgLogDateTime: new Date(),
|
|
|
+ msgDateTime: new Date(),
|
|
|
+ msgTag: ['Acknowledgement'],
|
|
|
+ msgPayload: JSON.stringify(incoming_msg)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return finalResponse
|
|
|
+ }
|
|
|
+ )
|
|
|
+ )
|
|
|
+ this.logService2.subscribe(acknowledgementTokenLogging)
|
|
|
return acknowledgementToken
|
|
|
}
|
|
|
}
|