| 
														
															@@ -40,7 +40,7 @@ let source: LogSetting = { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         logLocName: 'To be generated in source', 
														 | 
														
														 | 
														
															         logLocName: 'To be generated in source', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     customSetting: { 
														 | 
														
														 | 
														
															     customSetting: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        url: 'mongodb+srv://testDB:h1nt1OyXw6QeUnzS@cluster0.29sklte.mongodb.net/test' 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        url: 'mongodb+srv://testDB:h1nt1OyXw6QeUnzS@cluster0.29sklte.mongodb.net/test1' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 let target: LogSetting = { 
														 | 
														
														 | 
														
															 let target: LogSetting = { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -67,6 +67,11 @@ let settings: MessageSynchronisationServiceSetting = { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         ...target, 
														 | 
														
														 | 
														
															         ...target, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         tags: ['default'], 
														 | 
														
														 | 
														
															         tags: ['default'], 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    //  Set Filters here, since it's part of the settings 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    filters: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        'data.data.appData.msgTag[0]': 'likable', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        'header.messageProducerInformation.origin.userApplication.userAppName': 'Client' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 /* -------  Calling the functions to be tested ----------- */ 
														 | 
														
														 | 
														
															 /* -------  Calling the functions to be tested ----------- */ 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -79,12 +84,7 @@ setTimeout(() => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 // Basically start up all the functions and relevant subscription service in Audit Service. 
														 | 
														
														 | 
														
															 // Basically start up all the functions and relevant subscription service in Audit Service. 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 async function initializeAuditService(configuration: MessageSynchronisationServiceSetting) { 
														 | 
														
														 | 
														
															 async function initializeAuditService(configuration: MessageSynchronisationServiceSetting) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    let filter: any = { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        'data.data.appData.msgTag[0]': 'likable', 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        'header.messageProducerInformation.origin.userApplication.userAppName': 'Client' 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    auditService.init(configuration, filter) // Configure two points of audit and also adding filter 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    // auditService.setFilter({ 'data.data.appData.msgTag[0]': 'oval' }) // set fitler if there's any. Please not that  
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    auditService.init(configuration) // Configure two points of audit and also adding filter 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     auditService.subscribe(triggerSyncSubject).subscribe((missingElements: MessageLog) => { 
														 | 
														
														 | 
														
															     auditService.subscribe(triggerSyncSubject).subscribe((missingElements: MessageLog) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         let message = JSON.parse(missingElements.appData.msgPayload as any) 
														 | 
														
														 | 
														
															         let message = JSON.parse(missingElements.appData.msgPayload as any) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         subscriber.next(message) 
														 | 
														
														 | 
														
															         subscriber.next(message) 
														 |