RequestBody: {  "providerId": 11,  "data": {    "to": "917488126002",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_creation_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"header","parameters":[{"type":"document","text":null,"image":null,"document":{"filename":"doc.pdf","link":"https://api-qa-staging-2.oqsha.com/attachments/temp/Audit_A_TTK_COI_ANN_25_00007_ab20957f-8271-4579-81ff-3bb5670c4d0e.pdf"},"video":null}]},{"type":"body","parameters":[{"type":"text","text":"audit 26th septemeber","image":null,"document":null,"video":null},{"type":"text","text":"30-Sep-2025 03:27:11 PM","image":null,"document":null,"video":null},{"type":"text","text":"EHS Department - TTK Private Limited","image":null,"document":null,"video":null}]}]    }   }}


Osmo-x WhatsApp Message has been Sent


### Ended processing Investigation Creator Status Update Event ###


### End Event Execution ###


### Start Notification Sender Program.cs Execution ###


### Calling ConfigureService.Configure() function ###


### Start Event Execution ###


Message : {"EventName":"AUDIT_CREATION_NOTIFICATION","EventArgs":[{"Key":"AuditorsUserIds","Value":"[1]"},{"Key":"AuditId","Value":"305"},{"Key":"OrgId","Value":"387"}]}


### Started process for Execution of Event : AUDIT_CREATION_NOTIFICATION ###


### Started processing for Audit Creation Event ###


PDF generation successfull


Executing email notifications to Auditors about Audit


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


An Audit has been created


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp notifications to Auditors about Audit creation


Sending whatsapp message:


RequestBody: {  "providerId": 11,  "data": {    "to": "919160948627",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_creation_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"header","parameters":[{"type":"document","text":null,"image":null,"document":{"filename":"doc.pdf","link":"https://api-qa-staging-2.oqsha.com/attachments/temp/Audit_A_TTK_COI_TAC_25_00002_7bec43ef-a7dc-4497-8f35-a10d783b5575.pdf"},"video":null}]},{"type":"body","parameters":[{"type":"text","text":"test 002","image":null,"document":null,"video":null},{"type":"text","text":"30-Sep-2025 09:32:57 PM","image":null,"document":null,"video":null},{"type":"text","text":"EHS Department - TTK Private Limited","image":null,"document":null,"video":null}]}]    }   }}


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":21346},{"Key":"AssignedToID","Value":2570}]}


### Started process for Execution of Event : ASSIGNED_TO_NOTIFICATION ###


### Started processing Assigned to Notification Event ###


# Calling SendNotificationToAssignedId function for all types of assigned to notification #


Generating report.


PDF generation successfull


## Sending email to Hitesh Osmosys, UserId : 2570 for assigned to notification ##


Sending Assigned To Email for IncidentId:21346


Initializing Email Service Client


Generating Email Request


A Safety Alert T/TTK/NMM/25/00113 is assigned to you related to 'Near Miss'


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Stopped Assigned To SMS as Org Level setting is set to false


# Preparing notification body #


### Ended processing Assigned to Notification Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":21346},{"Key":"IncidentHistoryId","Value":8849},{"Key":"IsTicketAssigned","Value":true}]}


### Started process for Execution of Event : UPDATE_INCIDENT_NOTIFICATION ###


### Started processing for Update incident Event ###


# Calling  SendNotification function for  all types of notification #


Sending Email for IncidentId:21346


Ticket Safety Alert has been updated


Sending Assigned To Whatsapp for IncidentId:21346


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917717731269","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Shreya V"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/NMM/25/00113"},{"type":"text","text":"Safety Alert status updated to Assigned"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"reopen by site ehs"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Near Miss"},{"type":"text","text":"Shreya V"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21346?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Sending email for incident closure


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Ticket Safety Alert has been updated

This is a test mode notification. Notification was not delivered to recipient.


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"91434342231232","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Test Consent"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/NMM/25/00113"},{"type":"text","text":"Safety Alert status updated to Assigned"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"reopen by site ehs"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Near Miss"},{"type":"text","text":"Shreya V"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21346?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"Update_USER","EventArgs":[{"Key":"DisplayName","Value":"Sayan Mondal"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"My Home Private LTD"},{"Key":"UserDivisions","Value":"Running copy, Anirban Testing 01, Blasts, Incident, Jogging, Near Miss, Observation, Power Outage, Power Outage-clone1, Running"},{"Key":"UserIncidentSites","Value":"Apas, Avali, Grava"},{"Key":"OldEmail","Value":""},{"Key":"Email","Value":"sayanm2807@gmail.com"}]}


### Started process for Execution of Event : Update_USER ###


### Started Event for Update User Email ###


Calling Send Email Function for Update User Email


Your OQSHA Access Has Been Updated


Message : {"EventName":"Update_APP_USER","EventArgs":[{"Key":"DisplayName","Value":"Sayan Mondal"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"My Home Private LTD"},{"Key":"UserUid","Value":"8967697371"},{"Key":"UserDivisions","Value":"Running copy, Anirban Testing 01, Blasts, Incident, Jogging, Near Miss, Observation, Power Outage, Power Outage-clone1, Running"},{"Key":"UserIncidentSites","Value":"Apas, Avali, Grava"},{"Key":"Email","Value":"sayanm2807@gmail.com"},{"Key":"MobileNumber","Value":"+918967697371"}]}


### Started process for Execution of Event : Update_APP_USER ###


### Started Event for Update App User Email ###


Initializing Email Service Client


Generating Email Request


### Started process for Execution of Event : NOTIFICATION_TO_TASK_ASSIGNEES ###


# Calling SendNotificationToTaskAssignees function for WhatsApp notification #


Sending WhatsApp notification for task assignment to user ID: 2570


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":21345},{"Key":"AssignedToID","Value":2570}]}


### Started process for Execution of Event : ASSIGNED_TO_NOTIFICATION ###


### Started processing Assigned to Notification Event ###


# Calling SendNotificationToAssignedId function for all types of assigned to notification #


Generating report.


PDF generation successfull


## Sending email to Hitesh Osmosys, UserId : 2570 for assigned to notification ##


Sending Assigned To Email for IncidentId:21345


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Osmo-x WhatsApp Message has been Sent


Sending Task Assignment Email for TaskId: 3978, UserId: 2570


Initializing Email Service Client


Generating Email Request


New Action Tracker Assigned - TA/TTK/COI/SAT/25/00237


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


### End Event Execution ###


A Safety Alert T/TTK/TCL/25/00021 is assigned to you related to 'Observation'


Stopped Assigned To SMS as Org Level setting is set to false


# Preparing notification body #


### Ended processing Assigned to Notification Event ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":21345},{"Key":"IncidentHistoryId","Value":8852},{"Key":"IsTicketAssigned","Value":true}]}


### Started process for Execution of Event : UPDATE_INCIDENT_NOTIFICATION ###


### Started processing for Update incident Event ###


# Calling  SendNotification function for  all types of notification #


Sending Email for IncidentId:21345


Ticket Safety Alert has been updated


Sending Assigned To Whatsapp for IncidentId:21345


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917717731269","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Shreya V"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/TCL/25/00021"},{"type":"text","text":"Safety Alert status updated to Assigned"},{"type":"text","text":"Safety Alert"},{"type":"text","text":" "},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Observation"},{"type":"text","text":"Shreya V"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21345?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Sending email for incident closure


Initializing Email Service Client


Generating Email Request


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"91434342231232","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Test Consent"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/TCL/25/00021"},{"type":"text","text":"Safety Alert status updated to Assigned"},{"type":"text","text":"Safety Alert"},{"type":"text","text":" "},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Observation"},{"type":"text","text":"Shreya V"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21345?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_TO_TASK_ASSIGNEES ###


# Calling SendNotificationToTaskAssignees function for WhatsApp notification #


Sending WhatsApp notification for task assignment to user ID: 2570


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":21337},{"Key":"AssignedToID","Value":2570}]}


### Started process for Execution of Event : ASSIGNED_TO_NOTIFICATION ###


### Started processing Assigned to Notification Event ###


# Calling SendNotificationToAssignedId function for all types of assigned to notification #


Generating report.


PDF generation successfull


## Sending email to Hitesh Osmosys, UserId : 2570 for assigned to notification ##


Sending Assigned To Email for IncidentId:21337


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Osmo-x WhatsApp Message has been Sent


Sending Task Assignment Email for TaskId: 3979, UserId: 2570


New Action Tracker Assigned - TA/TTK/COI/SAT/25/00238


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


### End Event Execution ###


A Safety Alert T/TTK/NMM/25/00110 is assigned to you related to 'Near Miss'


Stopped Assigned To SMS as Org Level setting is set to false


# Preparing notification body #


### Ended processing Assigned to Notification Event ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":21337},{"Key":"IncidentHistoryId","Value":8855},{"Key":"IsTicketAssigned","Value":true}]}


### Started process for Execution of Event : UPDATE_INCIDENT_NOTIFICATION ###


### Started processing for Update incident Event ###


# Calling  SendNotification function for  all types of notification #


Sending Email for IncidentId:21337


Initializing Email Service Client


Generating Email Request


Ticket Safety Alert has been updated


Sending Assigned To Whatsapp for IncidentId:21337


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919160948627","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/NMM/25/00110"},{"type":"text","text":"Safety Alert status updated to Assigned"},{"type":"text","text":"Safety Alert"},{"type":"text","text":" "},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Near Miss"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21337?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Sending email for incident closure


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"91434342231232","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Test Consent"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/NMM/25/00110"},{"type":"text","text":"Safety Alert status updated to Assigned"},{"type":"text","text":"Safety Alert"},{"type":"text","text":" "},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Near Miss"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21337?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_TO_TASK_ASSIGNEES ###


# Calling SendNotificationToTaskAssignees function for WhatsApp notification #


Sending WhatsApp notification for task assignment to user ID: 2570


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":21331},{"Key":"AssignedToID","Value":2570}]}


### Started process for Execution of Event : ASSIGNED_TO_NOTIFICATION ###


### Started processing Assigned to Notification Event ###


# Calling SendNotificationToAssignedId function for all types of assigned to notification #


Generating report.


Sending Task Assignment Email for TaskId: 3980, UserId: 2570


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


PDF generation successfull


## Sending email to Hitesh Osmosys, UserId : 2570 for assigned to notification ##


Sending Assigned To Email for IncidentId:21331


New Action Tracker Assigned - TA/TTK/COI/SAT/25/00239


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


### End Event Execution ###


A Safety Alert T/TTK/NMM/25/00105 is assigned to you related to 'Near Miss'


Stopped Assigned To SMS as Org Level setting is set to false


# Preparing notification body #


### Ended processing Assigned to Notification Event ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":21331},{"Key":"IncidentHistoryId","Value":8858},{"Key":"IsTicketAssigned","Value":true}]}


### Started process for Execution of Event : UPDATE_INCIDENT_NOTIFICATION ###


### Started processing for Update incident Event ###


# Calling  SendNotification function for  all types of notification #


Sending Email for IncidentId:21331


Initializing Email Service Client


Generating Email Request


Ticket Safety Alert has been updated


Sending Assigned To Whatsapp for IncidentId:21331


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919160948627","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/NMM/25/00105"},{"type":"text","text":"Safety Alert status updated to Assigned"},{"type":"text","text":"Safety Alert"},{"type":"text","text":" "},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Near Miss"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21331?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Sending email for incident closure


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"91434342231232","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Test Consent"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/NMM/25/00105"},{"type":"text","text":"Safety Alert status updated to Assigned"},{"type":"text","text":"Safety Alert"},{"type":"text","text":" "},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Near Miss"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21331?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_TO_TASK_ASSIGNEES ###


# Calling SendNotificationToTaskAssignees function for WhatsApp notification #


Sending WhatsApp notification for task assignment to user ID: 2570


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":21318},{"Key":"AssignedToID","Value":2570}]}


### Started process for Execution of Event : ASSIGNED_TO_NOTIFICATION ###


### Started processing Assigned to Notification Event ###


# Calling SendNotificationToAssignedId function for all types of assigned to notification #


Generating report.


Sending Task Assignment Email for TaskId: 3981, UserId: 2570


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


PDF generation successfull


## Sending email to Hitesh Osmosys, UserId : 2570 for assigned to notification ##


Sending Assigned To Email for IncidentId:21318


New Action Tracker Assigned - TA/TTK/COI/SAT/25/00240


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


### End Event Execution ###


A Safety Alert T/TTK/NMM/25/00096 is assigned to you related to 'Near Miss'


Stopped Assigned To SMS as Org Level setting is set to false


# Preparing notification body #


### Ended processing Assigned to Notification Event ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":21318},{"Key":"IncidentHistoryId","Value":8861},{"Key":"IsTicketAssigned","Value":true}]}


### Started process for Execution of Event : UPDATE_INCIDENT_NOTIFICATION ###


### Started processing for Update incident Event ###


# Calling  SendNotification function for  all types of notification #


Sending Email for IncidentId:21318


Initializing Email Service Client


Generating Email Request


Ticket Safety Alert has been updated


Sending Assigned To Whatsapp for IncidentId:21318


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919989248964","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/NMM/25/00096"},{"type":"text","text":"Safety Alert status updated to Assigned"},{"type":"text","text":"Safety Alert"},{"type":"text","text":" "},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Near Miss"},{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21318?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Sending email for incident closure


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"91434342231232","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Test Consent"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/NMM/25/00096"},{"type":"text","text":"Safety Alert status updated to Assigned"},{"type":"text","text":"Safety Alert"},{"type":"text","text":" "},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Near Miss"},{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21318?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_CREATION ###


# Calling SendNotificationForWorkPermitCreation function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers


Sending WorkPermit creation email to: hitesh.k@osmosys.co


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


New Work Permit Assigned


Sending WorkPermit creation WhatsApp message to: 91687967567


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"91687967567","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_creation_alert","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Hitesh Osmosys"},{"type":"text","text":"WP/TTK/COI/LTP/25/00007"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Hitesh Osmosys"},{"type":"text","text":"https://qa-staging-2.oqsha.com//#/work-permit/view/387/318&dlType=viewWorkPermit"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### Started process for Execution of Event : NOTIFICATION_TO_TASK_ASSIGNEES ###


# Calling SendNotificationToTaskAssignees function for WhatsApp notification #


Sending WhatsApp notification for task assignment to user ID: 2570


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":21328},{"Key":"AssignedToID","Value":2570}]}


### Started process for Execution of Event : ASSIGNED_TO_NOTIFICATION ###


### Started processing Assigned to Notification Event ###


# Calling SendNotificationToAssignedId function for all types of assigned to notification #


Generating report.


Sending Task Assignment Email for TaskId: 3982, UserId: 2570


PDF generation successfull


## Sending email to Hitesh Osmosys, UserId : 2570 for assigned to notification ##


Sending Assigned To Email for IncidentId:21328


Initializing Email Service Client


Generating Email Request


New Action Tracker Assigned - TA/TTK/COI/SAT/25/00241


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


### End Event Execution ###


A Safety Alert T/TTK/NMM/25/00103 is assigned to you related to 'Near Miss'


Stopped Assigned To SMS as Org Level setting is set to false


# Preparing notification body #


### Ended processing Assigned to Notification Event ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":21328},{"Key":"IncidentHistoryId","Value":8864},{"Key":"IsTicketAssigned","Value":true}]}


### Started process for Execution of Event : UPDATE_INCIDENT_NOTIFICATION ###


### Started processing for Update incident Event ###


# Calling  SendNotification function for  all types of notification #


Sending Email for IncidentId:21328


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Ticket Safety Alert has been updated


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Sending Assigned To Whatsapp for IncidentId:21328


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"918967697371","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sayan Mondal"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/NMM/25/00103"},{"type":"text","text":"Safety Alert status updated to Assigned"},{"type":"text","text":"Safety Alert"},{"type":"text","text":" "},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Near Miss"},{"type":"text","text":"Sayan Mondal"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21328?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


Sending email for incident closure


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"91434342231232","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Test Consent"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/NMM/25/00103"},{"type":"text","text":"Safety Alert status updated to Assigned"},{"type":"text","text":"Safety Alert"},{"type":"text","text":" "},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Near Miss"},{"type":"text","text":"Sayan Mondal"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21328?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Notification Sender Program.cs Execution ###


### Calling ConfigureService.Configure() function ###


### Start Event Execution ###


Message : {"EventName":"COMPLETED_BATCH","EventArgs":[{"Key":"BatchId","Value":6614}]}


### Started process for Execution of Event : COMPLETED_BATCH ###


# Calling SendNotificationToBatchParticipantsForCompletedStatus function for  whatsapp notification #


Executing completed notification function to batch participants


Sending completed batch notification to batch participant1


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919160948627","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_completed_batch_v5","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"TR test"},{"type":"text","text":"INRB-3579 - Online"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"0 Week(s) 0 Day(s) 2 Hour(s)"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"September 26, 2025  05:42:10 PM"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/batches/view/387/416/6614?dlType=viewBatch"}]}]}}}


Generating certificate.


Message : {"EventName":"COMPLETED_BATCH","EventArgs":[{"Key":"BatchId","Value":6615}]}


### Started process for Execution of Event : INCIDENT_SUBMITTED_NOTIFICATION ###


### Started processing for Incident Submitted Event ###


Executing email notifications to Incident Approvers about the Pending approval


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


A new incident has been reported


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp notifications to Incident Approvers about the Pending approval


Sending WhatsApp Notification for Incident Approval to User: 2570


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"91687967567","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_incident_submitted_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Hitesh Osmosys"},{"type":"text","text":"IMF/TTK/COI/III/25/00142"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"22-Sep-2025 12:00:00 AM"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"NA"},{"type":"text","text":"9"},{"type":"text","text":"https://oqsha.com/#/incident-management/report-incident/view/474"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### Ended processing Incident Submitted Event ###


### End Event Execution ###


### Start Event Execution ###


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"91687967567","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_incident_submitted_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Hitesh Osmosys"},{"type":"text","text":"IMF/TTK/COI/III/25/00144"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"15-Sep-2025 12:00:00 AM"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"NA"},{"type":"text","text":"10"},{"type":"text","text":"https://oqsha.com/#/incident-management/report-incident/view/476"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to Yes#


### Started processing  PUSH Notification Execution ###


#  Added  PUSH Notification of IncidentUID: T//AII/25/00001#


# Calling  SendCronNotifcationsToUsers function for  push notification #


# Started  SendCronNotifcationsToUsers Execution #


# Fetching details from escalate_cron table for escalate_cron id 22557 #


# Preparing notification body #


# Fetching user of id:704devices #


# User devices count #0


Updating escalte_cron to failed for id 22557


### End  Push notification Event Execution ###


### Ended processing  for Notification Execution ###


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: T//AII/25/00001#


# Incident Attachments Count: 0#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 22558 #


Generating report.


Logging user id - 704


Logging user  - IncidentReporter.DAL.Models.UserDBO


## Sending email to Yogesh Kumar Tiwari##


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


A new Ticket T//AII/25/00001 is Reported related to 'Account Issue'


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


## Email Sent to Yogesh Kumar Tiwari##


# Updating escalate_cron : 22558 Status to Passed #


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: T//AII/25/00001#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 22559 #


Osmo-x WhatsApp Message has been Sent


# Updating escalate cron : 22559 Status to Passed #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":21357},{"Key":"AssignedToID","Value":1}]}


### Started process for Execution of Event : ASSIGNED_TO_NOTIFICATION ###


### Started processing Assigned to Notification Event ###


# Calling SendNotificationToAssignedId function for all types of assigned to notification #


Generating report.


### Ended processing Assigned to Notification Event ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":21357},{"Key":"IncidentHistoryId","Value":8866},{"Key":"IsTicketAssigned","Value":true}]}


### Started process for Execution of Event : UPDATE_INCIDENT_NOTIFICATION ###


### Started processing for Update incident Event ###


# Calling  SendNotification function for  all types of notification #


Sending Email for IncidentId:21357


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Ticket Ticket has been updated


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Sending Assigned To Whatsapp for IncidentId:21357


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


Sending email for incident closure


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Notification Sender Program.cs Execution ###


### Calling ConfigureService.Configure() function ###


### Start Event Execution ###


Message : {"EventName":"INFORM_TO_INCIDENT_CREATION_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":21358},{"Key":"InformToUserId","Value":2547}]}


### Started process for Execution of Event : INFORM_TO_INCIDENT_CREATION_NOTIFICATION ###


### Started processing Inform-To Incident Creation Notification ###


Calling SendInformToNotification function for ticket creation


Sending Inform-To WhatsApp for IncidentId: 21358


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917223964170","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_inform_to_template_v3","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sagar Aswar"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/NMM/25/00119"},{"type":"text","text":" "},{"type":"text","text":"Hosur"},{"type":"text","text":"Near Miss"},{"type":"text","text":"Kumar Samarjeet"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Open"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21358?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Generating Safety Alert report.


### Ended processing Inform-To Incident Creation Notification ###


Message : {"EventName":"INFORM_TO_INCIDENT_CREATION_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":21358},{"Key":"InformToUserId","Value":1954}]}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919989248964","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_inform_to_template_v3","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/NMM/25/00119"},{"type":"text","text":" "},{"type":"text","text":"Hosur"},{"type":"text","text":"Near Miss"},{"type":"text","text":"Kumar Samarjeet"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Open"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21358?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Message : {"EventName":"INFORM_TO_INCIDENT_CREATION_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":21358},{"Key":"InformToUserId","Value":1326}]}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917003236045","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_inform_to_template_v3","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Bishal Mondal"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/NMM/25/00119"},{"type":"text","text":" "},{"type":"text","text":"Hosur"},{"type":"text","text":"Near Miss"},{"type":"text","text":"Kumar Samarjeet"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Open"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21358?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


### End Event Execution ###


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to Yes#


### Started processing  PUSH Notification Execution ###


#  Added  PUSH Notification of IncidentUID: T/TTK/NMM/25/00119#


# Calling  SendCronNotifcationsToUsers function for  push notification #


# Started  SendCronNotifcationsToUsers Execution #


# Fetching details from escalate_cron table for escalate_cron id 22560 #


# Preparing notification body #


# Fetching user of id:2562devices #


# User devices count #0


Updating escalte_cron to failed for id 22560


### End  Push notification Event Execution ###


### Ended processing  for Notification Execution ###


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: T/TTK/NMM/25/00119#


# Incident Attachments Count: 0#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 22561 #


Generating report.


Logging user id - 2562


Logging user  - IncidentReporter.DAL.Models.UserDBO


## Sending email to Test Consent##


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


A new Ticket T/TTK/NMM/25/00119 is Reported related to 'Near Miss'


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


## Email Sent to Test Consent##


# Updating escalate_cron : 22561 Status to Passed #


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: T/TTK/NMM/25/00119#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 22562 #


Osmo-x WhatsApp Message has been Sent


# Updating escalate cron : 22562 Status to Passed #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"AUDIT_CREATION_NOTIFICATION","EventArgs":[{"Key":"AuditorsUserIds","Value":"[2547,898]"},{"Key":"AuditId","Value":"306"},{"Key":"OrgId","Value":"387"}]}


### Started process for Execution of Event : AUDIT_CREATION_NOTIFICATION ###


### Started processing for Audit Creation Event ###


PDF generation successfull


Executing email notifications to Auditors about Audit


Initializing Email Service Client


Generating Email Request


An Audit has been created


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp notifications to Auditors about Audit creation


Sending whatsapp message:


RequestBody: {  "providerId": 11,  "data": {    "to": "917488126002",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_creation_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"header","parameters":[{"type":"document","text":null,"image":null,"document":{"filename":"doc.pdf","link":"https://api-qa-staging-2.oqsha.com/attachments/temp/Audit_A_TTK_COI_ANN_25_00008_bb8a3555-a581-4edc-ac54-728650f404b0.pdf"},"video":null}]},{"type":"body","parameters":[{"type":"text","text":"Abcbeiube","image":null,"document":null,"video":null},{"type":"text","text":"26-Sep-2025 11:29:19 PM","image":null,"document":null,"video":null},{"type":"text","text":"EHS Department - TTK Private Limited","image":null,"document":null,"video":null}]}]    }   }}


Osmo-x WhatsApp Message has been Sent


RequestBody: {  "providerId": 11,  "data": {    "to": "917223964170",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_creation_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"header","parameters":[{"type":"document","text":null,"image":null,"document":{"filename":"doc.pdf","link":"https://api-qa-staging-2.oqsha.com/attachments/temp/Audit_A_TTK_COI_ANN_25_00008_c0b1244b-89c2-482f-8f25-f172b19d0bbf.pdf"},"video":null}]},{"type":"body","parameters":[{"type":"text","text":"Abcbeiube","image":null,"document":null,"video":null},{"type":"text","text":"26-Sep-2025 11:29:19 PM","image":null,"document":null,"video":null},{"type":"text","text":"EHS Department - TTK Private Limited","image":null,"document":null,"video":null}]}]    }   }}


### Ended processing Investigation Creator Status Update Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"AUDIT_CREATION_NOTIFICATION","EventArgs":[{"Key":"AuditorsUserIds","Value":"[2300,898]"},{"Key":"AuditId","Value":"308"},{"Key":"OrgId","Value":"310"}]}


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


RequestBody: {  "providerId": 11,  "data": {    "to": "917488126002",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_creation_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"header","parameters":[{"type":"document","text":null,"image":null,"document":{"filename":"doc.pdf","link":"https://api-qa-staging-2.oqsha.com/attachments/temp/Audit_A_APR_abd_AT7_25_00003_50680844-3bb8-4aee-b883-5b937c4206a0.pdf"},"video":null}]},{"type":"body","parameters":[{"type":"text","text":"audit 26th septemeber","image":null,"document":null,"video":null},{"type":"text","text":"27-Sep-2025 10:47:00 PM","image":null,"document":null,"video":null},{"type":"text","text":"EHS Department - Aparna Constructions","image":null,"document":null,"video":null}]}]    }   }}


Initializing Email Service Client


Generating Email Request


An Audit has been created


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


RequestBody: {  "providerId": 11,  "data": {    "to": "919998887775",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_creation_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"header","parameters":[{"type":"document","text":null,"image":null,"document":{"filename":"doc.pdf","link":"https://api-qa-staging-2.oqsha.com/attachments/temp/Audit_A_APR_abd_AT7_25_00003_68544db6-9bfc-4cf2-9879-dee608507da5.pdf"},"video":null}]},{"type":"body","parameters":[{"type":"text","text":"audit 26th septemeber","image":null,"document":null,"video":null},{"type":"text","text":"27-Sep-2025 10:47:00 PM","image":null,"document":null,"video":null},{"type":"text","text":"EHS Department - Aparna Constructions","image":null,"document":null,"video":null}]}]    }   }}


Message : {"EventName":"AUDIT_CREATION_NOTIFICATION","EventArgs":[{"Key":"AuditorsUserIds","Value":"[2300,898]"},{"Key":"AuditId","Value":"307"},{"Key":"OrgId","Value":"310"}]}


PDF generation successfull


Sending whatsapp message:


RequestBody: {  "providerId": 11,  "data": {    "to": "917488126002",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_creation_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"header","parameters":[{"type":"document","text":null,"image":null,"document":{"filename":"doc.pdf","link":"https://api-qa-staging-2.oqsha.com/attachments/temp/Audit_A_APR_abd_AT7_25_00003_64f92d8e-7840-4a7d-8b15-fc3c3c023a31.pdf"},"video":null}]},{"type":"body","parameters":[{"type":"text","text":"audit 26th septemeber","image":null,"document":null,"video":null},{"type":"text","text":"27-Sep-2025 10:47:00 PM","image":null,"document":null,"video":null},{"type":"text","text":"EHS Department - Aparna Constructions","image":null,"document":null,"video":null}]}]    }   }}


Osmo-x WhatsApp Message has been Sent


RequestBody: {  "providerId": 11,  "data": {    "to": "919998887775",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_creation_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"header","parameters":[{"type":"document","text":null,"image":null,"document":{"filename":"doc.pdf","link":"https://api-qa-staging-2.oqsha.com/attachments/temp/Audit_A_APR_abd_AT7_25_00003_4ee70d29-01ad-4caf-92c5-af502a3cda36.pdf"},"video":null}]},{"type":"body","parameters":[{"type":"text","text":"audit 26th septemeber","image":null,"document":null,"video":null},{"type":"text","text":"27-Sep-2025 10:47:00 PM","image":null,"document":null,"video":null},{"type":"text","text":"EHS Department - Aparna Constructions","image":null,"document":null,"video":null}]}]    }   }}


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"Update_USER","EventArgs":[{"Key":"DisplayName","Value":"Lalit Aditya Kola"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"TTK Beta - QA"},{"Key":"UserDivisions","Value":"Near Miss, Unsafe Act, Unsafe Condition"},{"Key":"UserIncidentSites","Value":"Coimbatore, Hosur, Khadri, PWA check andorid, Regression, Roorkee, SamarSite, site - 2, Sshristi, Testing site, TTK Beta, Ttk Pwa Site"},{"Key":"OldEmail","Value":""},{"Key":"Email","Value":"lalit.a@osmosys.co"}]}


### Started process for Execution of Event : Update_USER ###


### Started Event for Update User Email ###


Calling Send Email Function for Update User Email


Initializing Email Service Client


Generating Email Request


Your OQSHA Access Has Been Updated


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Message : {"EventName":"Update_APP_USER","EventArgs":[{"Key":"DisplayName","Value":"Lalit Aditya Kola"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"TTK Beta - QA"},{"Key":"UserUid","Value":""},{"Key":"UserDivisions","Value":"Near Miss, Unsafe Act, Unsafe Condition"},{"Key":"UserIncidentSites","Value":"Coimbatore, Hosur, Khadri, PWA check andorid, Regression, Roorkee, SamarSite, site - 2, Sshristi, Testing site, TTK Beta, Ttk Pwa Site"},{"Key":"Email","Value":"lalit.a@osmosys.co"},{"Key":"MobileNumber","Value":"+919989248964"}]}


### Started process for Execution of Event : Update_APP_USER ###


### Started Event for Update App User Email ###


### Start Notification Sender Program.cs Execution ###


### Calling ConfigureService.Configure() function ###


Message : {"EventName":"Update_USER","EventArgs":[{"Key":"DisplayName","Value":"Lalit Aditya Kola"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"TTK Beta - QA"},{"Key":"UserDivisions","Value":"Near Miss, Observation, Unsafe Act, Unsafe Condition"},{"Key":"UserIncidentSites","Value":"Coimbatore"},{"Key":"OldEmail","Value":""},{"Key":"Email","Value":"lalit.a@osmosys.co"}]}


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"Update_APP_USER","EventArgs":[{"Key":"DisplayName","Value":"Lalit Aditya Kola"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"TTK Beta - QA"},{"Key":"UserUid","Value":""},{"Key":"UserDivisions","Value":"Near Miss, Observation, Unsafe Act, Unsafe Condition"},{"Key":"UserIncidentSites","Value":"Coimbatore"},{"Key":"Email","Value":"lalit.a@osmosys.co"},{"Key":"MobileNumber","Value":"+919989248964"}]}


Message : {"EventName":"AUDIT_CREATION_NOTIFICATION","EventArgs":[{"Key":"AuditorsUserIds","Value":"[2547]"},{"Key":"AuditId","Value":"309"},{"Key":"OrgId","Value":"387"}]}


### Started process for Execution of Event : AUDIT_CREATION_NOTIFICATION ###


### Started processing for Audit Creation Event ###


PDF generation successfull


Executing email notifications to Auditors about Audit


Initializing Email Service Client


Generating Email Request


An Audit has been created


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp notifications to Auditors about Audit creation


Sending whatsapp message:


RequestBody: {  "providerId": 11,  "data": {    "to": "917223964170",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_creation_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"header","parameters":[{"type":"document","text":null,"image":null,"document":{"filename":"doc.pdf","link":"https://api-qa-staging-2.oqsha.com/attachments/temp/Audit_A/TTK/COI/ASS/25/00004.pdf"},"video":null}]},{"type":"body","parameters":[{"type":"text","text":"ABCDEHUHE","image":null,"document":null,"video":null},{"type":"text","text":"30-Sep-2025 11:29:19 PM","image":null,"document":null,"video":null},{"type":"text","text":"EHS Department - TTK Private Limited","image":null,"document":null,"video":null}]}]    }   }}


Osmo-x WhatsApp Message has been Sent


### Ended processing Investigation Creator Status Update Event ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : INCIDENT_SUBMITTED_NOTIFICATION ###


### Started processing for Incident Submitted Event ###


Executing email notifications to Incident Approvers about the Pending approval


A new incident has been reported


Executing whatsapp notifications to Incident Approvers about the Pending approval


Sending WhatsApp Notification for Incident Approval to User: 2407


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917273883504","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_incident_submitted_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Mounika Laisetti"},{"type":"text","text":"IMF/APR/abd/ISS/25/00006"},{"type":"text","text":"Sayan Mondal"},{"type":"text","text":"01-Sep-2025 06:00:00 AM"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":"NA"},{"type":"text","text":"0"},{"type":"text","text":"https://oqsha.com/#/incident-management/report-incident/view/479"},{"type":"text","text":"EHS Department - Aparna Constructions"}]}]}}}


### Ended processing Incident Submitted Event ###


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":21359},{"Key":"AssignedToID","Value":2420}]}


### Started process for Execution of Event : ASSIGNED_TO_NOTIFICATION ###


### Started processing Assigned to Notification Event ###


# Calling SendNotificationToAssignedId function for all types of assigned to notification #


Generating report.


PDF generation successfull


## Sending email to sephali, UserId : 2420 for assigned to notification ##


Sending Assigned To Email for IncidentId:21359


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


A Ticket T/APR/EHH/25/00006 is assigned to you related to 'Electrical Hazard'


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Stopped Assigned To SMS as Org Level setting is set to false


Sending Assigned To Whatsapp for IncidentId:21359


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Assigned to Notification Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":21359},{"Key":"AssignedToID","Value":2421}]}


Generating report.


PDF generation successfull


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"915566778899","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_assigned_to_whatsapp_template_v3","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"a b"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/APR/EHH/25/00006"},{"type":"text","text":" "},{"type":"text","text":"16 july 2025"},{"type":"text","text":"Electrical Hazard"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"Aparna Constructions"},{"type":"text","text":"Open"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/310/21359?dlType=viewTicket"},{"type":"text","text":"EHS Department - Aparna Constructions"}]}]}}}


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":21359},{"Key":"AssignedToID","Value":1761}]}


## Sending email to Abhinav Srivatsava, UserId : 1761 for assigned to notification ##


Initializing Email Service Client


Generating Email Request


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917273883504","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_assigned_to_whatsapp_template_v3","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Abhinav Srivatsava"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/APR/EHH/25/00006"},{"type":"text","text":" "},{"type":"text","text":"16 july 2025"},{"type":"text","text":"Electrical Hazard"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"Aparna Constructions"},{"type":"text","text":"Open"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/310/21359?dlType=viewTicket"},{"type":"text","text":"EHS Department - Aparna Constructions"}]}]}}}


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":21360},{"Key":"AssignedToID","Value":2420}]}


Sending Assigned To Email for IncidentId:21360


A Ticket T/APR/DCC/25/00020 is assigned to you related to 'Dancing Category'


Sending Assigned To Whatsapp for IncidentId:21360


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":21360},{"Key":"AssignedToID","Value":2421}]}


### Started process for Execution of Event : ASSIGNED_TO_NOTIFICATION ###


### Started processing Assigned to Notification Event ###


# Calling SendNotificationToAssignedId function for all types of assigned to notification #


Generating report.


PDF generation successfull


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"915566778899","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_assigned_to_whatsapp_template_v3","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"a b"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/APR/DCC/25/00020"},{"type":"text","text":" "},{"type":"text","text":"16 july 2025"},{"type":"text","text":"Dancing Category"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"Aparna Constructions"},{"type":"text","text":"Open"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/310/21360?dlType=viewTicket"},{"type":"text","text":"EHS Department - Aparna Constructions"}]}]}}}


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":21360},{"Key":"AssignedToID","Value":1761}]}


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Stopped Assigned To SMS as Org Level setting is set to false


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917273883504","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_assigned_to_whatsapp_template_v3","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Abhinav Srivatsava"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/APR/DCC/25/00020"},{"type":"text","text":" "},{"type":"text","text":"16 july 2025"},{"type":"text","text":"Dancing Category"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"Aparna Constructions"},{"type":"text","text":"Open"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/310/21360?dlType=viewTicket"},{"type":"text","text":"EHS Department - Aparna Constructions"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Assigned to Notification Event ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : INCIDENT_SUBMITTED_NOTIFICATION ###


### Started processing for Incident Submitted Event ###


Executing email notifications to Incident Approvers about the Pending approval


A new incident has been reported


Executing whatsapp notifications to Incident Approvers about the Pending approval


Sending WhatsApp Notification for Incident Approval to User: 2448


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"9172239641788","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_incident_submitted_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Abhi Consent"},{"type":"text","text":"IMF/APR/abd/SII/25/00002"},{"type":"text","text":"Sayan Mondal"},{"type":"text","text":"10-Sep-2025 05:00:00 AM"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":"NA"},{"type":"text","text":"0"},{"type":"text","text":"https://oqsha.com/#/incident-management/report-incident/view/480"},{"type":"text","text":"EHS Department - Aparna Constructions"}]}]}}}


### Ended processing Incident Submitted Event ###


Message : {"EventName":"NOTIFICATION_FOR_WORK_PERMIT_CREATION","EventArgs":[{"Key":"WorkPermitId","Value":"320"},{"Key":"ApproverIds","Value":"[1326,1482]"},{"Key":"SiteName","Value":"Coimbatore"},{"Key":"CreatedBy","Value":"Raj Kumar Pativada"},{"Key":"WorkPermitUid","Value":"WP/TTK/COI/CSE/25/00005"},{"Key":"OrgId","Value":387},{"Key":"OrganisationName","Value":"TTK Beta - QA"}]}


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_CREATION ###


# Calling SendNotificationForWorkPermitCreation function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers


Sending WorkPermit creation email to: bishal.m@osmosys.co


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


New Work Permit Assigned


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Sending WorkPermit creation WhatsApp message to: 917003236045


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917003236045","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_creation_alert","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Bishal Mondal"},{"type":"text","text":"WP/TTK/COI/CSE/25/00005"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"https://qa-staging-2.oqsha.com//#/work-permit/view/387/320&dlType=viewWorkPermit"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Sending WorkPermit creation email to: kumarsamarjeet.19@gmail.com


Sending WorkPermit creation WhatsApp message to: 918249683426


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"918249683426","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_creation_alert","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Kumar Samarjeet"},{"type":"text","text":"WP/TTK/COI/CSE/25/00005"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"https://qa-staging-2.oqsha.com//#/work-permit/view/387/320&dlType=viewWorkPermit"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"NOTIFICATION_FOR_WORK_PERMIT_CREATION","EventArgs":[{"Key":"WorkPermitId","Value":"321"},{"Key":"ApproverIds","Value":"[1326,1954]"},{"Key":"SiteName","Value":"Hosur"},{"Key":"CreatedBy","Value":"Raj Kumar Pativada"},{"Key":"WorkPermitUid","Value":"WP/TTK/HOS/CWW/25/00001"},{"Key":"OrgId","Value":387},{"Key":"OrganisationName","Value":"TTK Beta - QA"}]}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917003236045","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_creation_alert","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Bishal Mondal"},{"type":"text","text":"WP/TTK/HOS/CWW/25/00001"},{"type":"text","text":"Hosur"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"https://qa-staging-2.oqsha.com//#/work-permit/view/387/321&dlType=viewWorkPermit"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Sending WorkPermit creation email to: lalit.a@osmosys.co


Sending WorkPermit creation WhatsApp message to: 919989248964


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919989248964","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_creation_alert","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"WP/TTK/HOS/CWW/25/00001"},{"type":"text","text":"Hosur"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"https://qa-staging-2.oqsha.com//#/work-permit/view/387/321&dlType=viewWorkPermit"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Message : {"EventName":"WORK_PERMIT_APPROVED_INFORM_TO_CREATOR_NOTIFICATION","EventArgs":[{"Key":"CreatorId","Value":"1"},{"Key":"ApproverName","Value":"Bishal Mondal"},{"Key":"WorkPermitId","Value":"321"},{"Key":"WorkPermitUid","Value":"WP/TTK/HOS/CWW/25/00001"},{"Key":"SiteName","Value":"Hosur"},{"Key":"OrganisationName","Value":"TTK Beta - QA"},{"Key":"ApprovedOn","Value":"26-Sep-2025 08:04:54 PM"},{"Key":"OrgId","Value":387}]}


### Started process for Execution of Event : WORK_PERMIT_APPROVED_INFORM_TO_CREATOR_NOTIFICATION ###


# Calling SendWorkPermitApprovedInformToCreatorNotification function for email #


Executing email notifications to WorkPermit Creator about the approval by an Approver


Sending WorkPermit Approver Clarification email to WorkPermit Creator: rajkumar.p@osmosys.co


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Bishal Mondal has Approved your Work Permit


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp notifications to WorkPermit Creator about the approval by an Approver


Sending WhatsApp for WorkPermit to user: 1


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919160948627","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_approved_inform_to","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"Bishal Mondal"},{"type":"text","text":"WP/TTK/HOS/CWW/25/00001"},{"type":"text","text":"Hosur"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"26-Sep-2025 08:04:54 PM"},{"type":"text","text":"https://qa-staging-2.oqsha.com//#/work-permit/view/387/321&dlType=viewWorkPermit"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"WORK_PERMIT_EXTENSION_INFORMATION_NOTIFICATION","EventArgs":[{"Key":"UserIds","Value":"[1326,1954]"},{"Key":"InitiatorName","Value":"Raj Kumar Pativada"},{"Key":"ExtensionHours","Value":5},{"Key":"WorkPermitUid","Value":"WP/TTK/HOS/CWW/25/00001"},{"Key":"SiteName","Value":"Hosur"},{"Key":"OrganisationName","Value":"TTK Beta - QA"},{"Key":"ExtensionTakenOn","Value":"26-Sep-2025 08:07:16 PM"},{"Key":"WorkPermitId","Value":"321"},{"Key":"OrgId","Value":387}]}


### Started process for Execution of Event : WORK_PERMIT_EXTENSION_INFORMATION_NOTIFICATION ###


# Calling SendWorkPermitApprovalInvitationNotification function for email/WhatsApp #


Executing email notifications to WorkPermit Approvers about the Extension Information


Error occurred while sending email using Osmo-x.


Executing whatsapp notifications to WorkPermit Approvers about the Extension Information


Sending WhatsApp for WorkPermit to user: 1326


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917003236045","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_workpermit_approver_notification","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Bishal Mondal"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"5"},{"type":"text","text":"WP/TTK/HOS/CWW/25/00001"},{"type":"text","text":"Hosur"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"26-Sep-2025 08:07:16 PM"},{"type":"text","text":"https://qa-staging-2.oqsha.com//#/work-permit/view/387/321&dlType=viewWorkPermit"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Sending WhatsApp for WorkPermit to user: 1954


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919989248964","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_workpermit_approver_notification","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"5"},{"type":"text","text":"WP/TTK/HOS/CWW/25/00001"},{"type":"text","text":"Hosur"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"26-Sep-2025 08:07:16 PM"},{"type":"text","text":"https://qa-staging-2.oqsha.com//#/work-permit/view/387/321&dlType=viewWorkPermit"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


### Started process for Execution of Event : HEALTH_INCIDENT_CREATION_NOTIFICATION ###


### Started processing for Health Incident Creation Event ###


Executing email notifications to Supervisor/Site EHS for incident creation for OHC


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


A Incident - IMF/TTK/COI/III/25/00146 created for a OHC - HT/TTK/COI/WII/25/00023


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp notifications to Supervisor/Site EHS for incident creation for OHC


Sending WhatsApp for Heath incident creation to User: 1761


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917273883504","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_health_incident_creation_notification","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Abhinav Srivatsava"},{"type":"text","text":"Abhinav Srivatsava"},{"type":"text","text":"IMF/TTK/COI/III/25/00146"},{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"26-Sep-2025 08:13:03 PM"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Create Incident from Health module. Location: T3F10"},{"type":"text","text":"https://oqsha.com/#/incident-management/report-incident/view/482"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### Ended processing Health Incident Creation Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"NOTIFICATION_FOR_WORK_PERMIT_CREATION","EventArgs":[{"Key":"WorkPermitId","Value":"322"},{"Key":"ApproverIds","Value":"[1326,1954]"},{"Key":"SiteName","Value":"Coimbatore"},{"Key":"CreatedBy","Value":"Raj Kumar Pativada"},{"Key":"WorkPermitUid","Value":"WP/TTK/COI/CWW/25/00055"},{"Key":"OrgId","Value":387},{"Key":"OrganisationName","Value":"TTK Beta - QA"}]}


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_CREATION ###


# Calling SendNotificationForWorkPermitCreation function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers


Sending WorkPermit creation email to: bishal.m@osmosys.co


Initializing Email Service Client


Generating Email Request


New Work Permit Assigned


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Sending WorkPermit creation WhatsApp message to: 917003236045


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917003236045","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_creation_alert","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Bishal Mondal"},{"type":"text","text":"WP/TTK/COI/CWW/25/00055"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"https://qa-staging-2.oqsha.com//#/work-permit/view/387/322&dlType=viewWorkPermit"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Sending WorkPermit creation email to: lalit.a@osmosys.co


Sending WorkPermit creation WhatsApp message to: 919989248964


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919989248964","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_creation_alert","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"WP/TTK/COI/CWW/25/00055"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"https://qa-staging-2.oqsha.com//#/work-permit/view/387/322&dlType=viewWorkPermit"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"WORK_PERMIT_APPROVED_INFORM_TO_CREATOR_NOTIFICATION","EventArgs":[{"Key":"CreatorId","Value":"1"},{"Key":"ApproverName","Value":"Bishal Mondal"},{"Key":"WorkPermitId","Value":"322"},{"Key":"WorkPermitUid","Value":"WP/TTK/COI/CWW/25/00055"},{"Key":"SiteName","Value":"Coimbatore"},{"Key":"OrganisationName","Value":"TTK Beta - QA"},{"Key":"ApprovedOn","Value":"26-Sep-2025 08:23:12 PM"},{"Key":"OrgId","Value":387}]}


### Started process for Execution of Event : WORK_PERMIT_APPROVED_INFORM_TO_CREATOR_NOTIFICATION ###


# Calling SendWorkPermitApprovedInformToCreatorNotification function for email #


Executing email notifications to WorkPermit Creator about the approval by an Approver


Sending WorkPermit Approver Clarification email to WorkPermit Creator: rajkumar.p@osmosys.co


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp notifications to WorkPermit Creator about the approval by an Approver


Sending WhatsApp for WorkPermit to user: 1


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919160948627","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_approved_inform_to","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"Bishal Mondal"},{"type":"text","text":"WP/TTK/COI/CWW/25/00055"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"26-Sep-2025 08:23:12 PM"},{"type":"text","text":"https://qa-staging-2.oqsha.com//#/work-permit/view/387/322&dlType=viewWorkPermit"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"WORK_PERMIT_EXTENSION_INFORMATION_NOTIFICATION","EventArgs":[{"Key":"UserIds","Value":"[1326,1954]"},{"Key":"InitiatorName","Value":"Raj Kumar Pativada"},{"Key":"ExtensionHours","Value":7},{"Key":"WorkPermitUid","Value":"WP/TTK/COI/CWW/25/00055"},{"Key":"SiteName","Value":"Coimbatore"},{"Key":"OrganisationName","Value":"TTK Beta - QA"},{"Key":"ExtensionTakenOn","Value":"26-Sep-2025 08:23:46 PM"},{"Key":"WorkPermitId","Value":"322"},{"Key":"OrgId","Value":387}]}


### Started process for Execution of Event : WORK_PERMIT_EXTENSION_INFORMATION_NOTIFICATION ###


# Calling SendWorkPermitApprovalInvitationNotification function for email/WhatsApp #


Executing email notifications to WorkPermit Approvers about the Extension Information


Error occurred while sending email using Osmo-x.


Executing whatsapp notifications to WorkPermit Approvers about the Extension Information


Sending WhatsApp for WorkPermit to user: 1326


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917003236045","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_workpermit_approver_notification","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Bishal Mondal"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"7"},{"type":"text","text":"WP/TTK/COI/CWW/25/00055"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"26-Sep-2025 08:23:46 PM"},{"type":"text","text":"https://qa-staging-2.oqsha.com//#/work-permit/view/387/322&dlType=viewWorkPermit"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Sending WhatsApp for WorkPermit to user: 1954


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919989248964","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_workpermit_approver_notification","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"7"},{"type":"text","text":"WP/TTK/COI/CWW/25/00055"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"26-Sep-2025 08:23:46 PM"},{"type":"text","text":"https://qa-staging-2.oqsha.com//#/work-permit/view/387/322&dlType=viewWorkPermit"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Message : {"EventName":"TASK_CREATE_EHS_NOTIFICATION","EventArgs":[{"Key":"TaskId","Value":3984},{"Key":"OrgId","Value":387}]}


### Started process for Execution of Event : TASK_CREATE_EHS_NOTIFICATION ###


### Started processing for Task Creation Notification to site EHS Event ###


Message : {"EventName":"TASK_CREATE_EHS_NOTIFICATION","EventArgs":[{"Key":"TaskId","Value":3986},{"Key":"OrgId","Value":387}]}


Message : {"EventName":"TASK_CREATE_EHS_NOTIFICATION","EventArgs":[{"Key":"TaskId","Value":3987},{"Key":"OrgId","Value":387}]}


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"INFORM_TO_INCIDENT_CREATION_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":21361},{"Key":"InformToUserId","Value":2547}]}


### Started process for Execution of Event : INFORM_TO_INCIDENT_CREATION_NOTIFICATION ###


### Started processing Inform-To Incident Creation Notification ###


Calling SendInformToNotification function for ticket creation


Sending Inform-To WhatsApp for IncidentId: 21361


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917223964170","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_inform_to_template_v3","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sagar Aswar"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/SAB/25/00041"},{"type":"text","text":"polish fell into his ???? "},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Sayan Mondal"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Open"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21361?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Generating Safety Alert report.


### Ended processing Inform-To Incident Creation Notification ###


Message : {"EventName":"INFORM_TO_INCIDENT_CREATION_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":21361},{"Key":"InformToUserId","Value":1326}]}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917003236045","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_inform_to_template_v3","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Bishal Mondal"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/SAB/25/00041"},{"type":"text","text":"polish fell into his ???? "},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Sayan Mondal"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Open"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21361?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to Yes#


### Started processing  PUSH Notification Execution ###


#  Added  PUSH Notification of IncidentUID: T/TTK/SAB/25/00041#


# Calling  SendCronNotifcationsToUsers function for  push notification #


# Started  SendCronNotifcationsToUsers Execution #


# Fetching details from escalate_cron table for escalate_cron id 22564 #


# Preparing notification body #


# Fetching user of id:2562devices #


# User devices count #0


Updating escalte_cron to failed for id 22564


### End  Push notification Event Execution ###


### Ended processing  for Notification Execution ###


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: T/TTK/SAB/25/00041#


# Incident Attachments Count: 0#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 22565 #


Generating report.


Logging user id - 2562


Logging user  - IncidentReporter.DAL.Models.UserDBO


## Sending email to Test Consent##


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


A new Ticket T/TTK/SAB/25/00041 is Reported related to 'Unsafe Act'


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


## Email Sent to Test Consent##


# Updating escalate_cron : 22565 Status to Passed #


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: T/TTK/SAB/25/00041#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 22566 #


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"91434342231232","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_inform_to_template_v3","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Test Consent"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/SAB/25/00041"},{"type":"text","text":"polish fell into his ???? "},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Sayan Mondal"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Open"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21361?dlType=viewTicket"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Updating escalate cron : 22566 Status to Passed #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"Update_USER","EventArgs":[{"Key":"DisplayName","Value":"Lalit Aditya Kola"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"TTK Beta - QA"},{"Key":"UserDivisions","Value":"Near Miss, Observation, Unsafe Act, Unsafe Condition"},{"Key":"UserIncidentSites","Value":"Coimbatore"},{"Key":"OldEmail","Value":""},{"Key":"Email","Value":"lalit.a@osmosys.co"}]}


### Started process for Execution of Event : Update_USER ###


### Started Event for Update User Email ###


Calling Send Email Function for Update User Email


Initializing Email Service Client


Generating Email Request


Your OQSHA Access Has Been Updated


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Message : {"EventName":"Update_APP_USER","EventArgs":[{"Key":"DisplayName","Value":"Lalit Aditya Kola"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"TTK Beta - QA"},{"Key":"UserUid","Value":""},{"Key":"UserDivisions","Value":"Near Miss, Observation, Unsafe Act, Unsafe Condition"},{"Key":"UserIncidentSites","Value":"Coimbatore"},{"Key":"Email","Value":"lalit.a@osmosys.co"},{"Key":"MobileNumber","Value":"+919989248964"}]}


### Started process for Execution of Event : Update_APP_USER ###


### Started Event for Update App User Email ###


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Message : {"EventName":"INFORM_TO_INCIDENT_CREATION_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":21362},{"Key":"InformToUserId","Value":1954}]}


### Started process for Execution of Event : INFORM_TO_INCIDENT_CREATION_NOTIFICATION ###


### Started processing Inform-To Incident Creation Notification ###


Calling SendInformToNotification function for ticket creation


Sending Inform-To WhatsApp for IncidentId: 21362


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919989248964","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_inform_to_template_v3","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/SAB/25/00042"},{"type":"text","text":"liquid fell in store"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Sayan Mondal"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Open"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21362?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Generating Safety Alert report.


### Ended processing Inform-To Incident Creation Notification ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"INFORM_TO_INCIDENT_CREATION_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":21362},{"Key":"InformToUserId","Value":2547}]}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917223964170","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_inform_to_template_v3","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sagar Aswar"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/SAB/25/00042"},{"type":"text","text":"liquid fell in store"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Sayan Mondal"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Open"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21362?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Message : {"EventName":"INFORM_TO_INCIDENT_CREATION_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":21362},{"Key":"InformToUserId","Value":1326}]}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917003236045","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_inform_to_template_v3","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Bishal Mondal"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/TTK/SAB/25/00042"},{"type":"text","text":"liquid fell in store"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Sayan Mondal"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Open"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incidents/view/387/21362?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to Yes#


### Started processing  PUSH Notification Execution ###


#  Added  PUSH Notification of IncidentUID: T/TTK/SAB/25/00042#


# Calling  SendCronNotifcationsToUsers function for  push notification #


# Started  SendCronNotifcationsToUsers Execution #


# Fetching details from escalate_cron table for escalate_cron id 22567 #


# Preparing notification body #


# Fetching user of id:2562devices #


# User devices count #0


Updating escalte_cron to failed for id 22567


### End  Push notification Event Execution ###


### Ended processing  for Notification Execution ###


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: T/TTK/SAB/25/00042#


# Incident Attachments Count: 0#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 22568 #


Generating report.


Logging user id - 2562


Logging user  - IncidentReporter.DAL.Models.UserDBO


## Sending email to Test Consent##


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


A new Ticket T/TTK/SAB/25/00042 is Reported related to 'Unsafe Act'


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


## Email Sent to Test Consent##


# Updating escalate_cron : 22568 Status to Passed #


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: T/TTK/SAB/25/00042#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 22569 #


Osmo-x WhatsApp Message has been Sent


# Updating escalate cron : 22569 Status to Passed #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"AUDIT_CREATION_NOTIFICATION","EventArgs":[{"Key":"AuditorsUserIds","Value":"[2547]"},{"Key":"AuditId","Value":"310"},{"Key":"OrgId","Value":"387"}]}


### Started process for Execution of Event : AUDIT_CREATION_NOTIFICATION ###


### Started processing for Audit Creation Event ###


PDF generation successfull


Executing email notifications to Auditors about Audit


Initializing Email Service Client


Generating Email Request


An Audit has been created


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp notifications to Auditors about Audit creation


Sending whatsapp message:


RequestBody: {  "providerId": 11,  "data": {    "to": "917223964170",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_creation_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"header","parameters":[{"type":"document","text":null,"image":null,"document":{"filename":"doc.pdf","link":"https://api-qa-staging-2.oqsha.com/attachments/temp/Audit_A/TTK/KHA/CHA/25/00001.pdf"},"video":null}]},{"type":"body","parameters":[{"type":"text","text":"New Audit","image":null,"document":null,"video":null},{"type":"text","text":"30-Sep-2025 11:29:19 PM","image":null,"document":null,"video":null},{"type":"text","text":"EHS Department - TTK Private Limited","image":null,"document":null,"video":null}]}]    }   }}


Osmo-x WhatsApp Message has been Sent


### Ended processing Investigation Creator Status Update Event ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_TO_TASK_ASSIGNEES ###


# Calling SendNotificationToTaskAssignees function for WhatsApp notification #


Sending WhatsApp notification for task assignment to user ID: 1597


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"918967697371","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_task_assigned_to_notification_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sayan Mondal"},{"type":"text","text":"TA/TTK/COI/SAT/25/00242"},{"type":"text","text":"Medium"},{"type":"text","text":"liquid fell in store"},{"type":"text","text":"28-Sep-2025"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/tasks/edit/3988?dlType=viewTask"},{"type":"text","text":"Action Tracker"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":21362},{"Key":"AssignedToID","Value":1597}]}


### Started process for Execution of Event : ASSIGNED_TO_NOTIFICATION ###


### Started processing Assigned to Notification Event ###


# Calling SendNotificationToAssignedId function for all types of assigned to notification #


Generating report.


Sending Task Assignment Email for TaskId: 3988, UserId: 1597


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


PDF generation successfull


## Sending email to Sayan Mondal, UserId : 1597 for assigned to notification ##


Sending Assigned To Email for IncidentId:21362


New Action Tracker Assigned - TA/TTK/COI/SAT/25/00242


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


### End Event Execution ###


A Safety Alert T/TTK/SAB/25/00042 is assigned to you related to 'Unsafe Act'


Stopped Assigned To SMS as Org Level setting is set to false


Sending Assigned To Whatsapp for IncidentId:21362