Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000002469","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":"Nettie Lough"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/MIRA/EEE/26/00002"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as **(Client Specific Testing)(PTW)[Portal][Medium][Sprint 50]: PTW Status Does Not Update Automatically After Approval or Verification**"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Rio"},{"type":"text","text":"EHS-Accident/Incident"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"MIRA Pharmaceuticals Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/232/77156?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":77156},{"Key":"IncidentHistoryId","Value":107459},{"Key":"IsTicketAssigned","Value":false}]}


### 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:77156


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Ticket T/MIRA/EEE/26/00002 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


Sending Assigned To Whatsapp for IncidentId:77156


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","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":"Sincere Kidwell"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/MIRA/EEE/26/00002"},{"type":"text","text":"Ticket status updated to Closed., Comments are added as **(Client Specific Testing)(PTW)[Portal][Medium][Sprint 50]: PTW Status Does Not Update Automatically After Approval or Verification**"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Rio"},{"type":"text","text":"EHS-Accident/Incident"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"MIRA Pharmaceuticals Inc."},{"type":"text","text":"Closed"},{"type":"text","text":"https://oqsha.com/#/incidents/view/232/77156?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


Sending email for incident closure


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"919999999999","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":"Neppie Traynor"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/MIRA/EEE/26/00002"},{"type":"text","text":"Ticket status updated to Closed., Comments are added as **(Client Specific Testing)(PTW)[Portal][Medium][Sprint 50]: PTW Status Does Not Update Automatically After Approval or Verification**"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Rio"},{"type":"text","text":"EHS-Accident/Incident"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"MIRA Pharmaceuticals Inc."},{"type":"text","text":"Closed"},{"type":"text","text":"https://oqsha.com/#/incidents/view/232/77156?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000002469","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":"Nettie Lough"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/MIRA/EEE/26/00002"},{"type":"text","text":"Ticket status updated to Closed., Comments are added as **(Client Specific Testing)(PTW)[Portal][Medium][Sprint 50]: PTW Status Does Not Update Automatically After Approval or Verification**"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Rio"},{"type":"text","text":"EHS-Accident/Incident"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"MIRA Pharmaceuticals Inc."},{"type":"text","text":"Closed"},{"type":"text","text":"https://oqsha.com/#/incidents/view/232/77156?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendNotificationToApproversForWorkPermitStatusChange function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers


Sending WorkPermit status change email to: TTK_Admin@oqsha.com


Initializing Email Service Client


Generating Email Request


Work Permit Status Updated


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


--- Email response from Osmo-x is 201


Sending WorkPermit status change WhatsApp message to: 912000001875


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001875","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_status_update_template","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"WP/FBYDW/ROO/CSE/26/00003"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Closed"},{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/3204?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Sending WorkPermit status change email to: osm06983@osmosys.co


Sending WorkPermit status change WhatsApp message to: 912000008275


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000008275","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_status_update_template","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Lesia Hardman"},{"type":"text","text":"WP/FBYDW/ROO/CSE/26/00003"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Closed"},{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/3204?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Sending WorkPermit status change email to: TTK_EHS@oqsha.com


Sending WorkPermit status change WhatsApp message to: 912000002528


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000002528","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_status_update_template","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Mozell Heaton"},{"type":"text","text":"WP/FBYDW/ROO/CSE/26/00003"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Closed"},{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/3204?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Sending WorkPermit status change email to: osm07104@osmosys.co


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Work Permit Status Updated


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


--- Email response from Osmo-x is 201


Sending WorkPermit status change WhatsApp message to: 912000003104


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003104","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_status_update_template","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Cato Kwon"},{"type":"text","text":"WP/FBYDW/ROO/CSE/26/00003"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Closed"},{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/3204?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### End Event Execution ###


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


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


### Start Event Execution ###


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


### Started processing for Incident Investigation Required notification ###


Executing email notifications for Incident Investigation Required


Using org-specific template for Org 211: Templates\OrgTemplates\211\Templates\IncidentInvestigationRequiredNotification.html


Initializing Email Service Client


Generating Email Request


Investigation Required - (FAC) FIR Released | Incident UID: IMF/GLTO/GRR/FAC/26/00005 | Site: Alanreed


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


--- Email response from Osmo-x is 201


### Ended processing Incident Validated Event ###


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


### Started processing for Incident Investigation In Progress Event ###


Executing email notifications to Incident Approvers about the Pending approval


Incident IMF/GLTO/GRR/FAC/26/00005 has been validated, form a team to investigate


Executing whatsapp notifications to Incident Approvers about the Pending approval


Sending WhatsApp for Incident Approval to User: 1955


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Incident Investigation In Progress Event ###


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendNotificationToApproversForWorkPermitStatusChange function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers


Sending WorkPermit status change email to: osm04548@osmosys.co


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Work Permit Status Updated


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


--- Email response from Osmo-x is 201


Sending WorkPermit status change WhatsApp message to: 912000005418


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000005418","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_status_update_template","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Adrianna Pollak"},{"type":"text","text":"WP/FBYDW/ROO/EWP/26/00001"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Cancelled"},{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/3205?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Sending WorkPermit status change email to: osm06483@osmosys.co


Sending WorkPermit status change WhatsApp message to: 912000002901


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000002901","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_status_update_template","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Ammie Colucci"},{"type":"text","text":"WP/FBYDW/ROO/EWP/26/00001"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Cancelled"},{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/3205?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Sending WorkPermit status change email to:


Error occurred while sending email using Osmo-x.


System.NullReferenceException: Object reference not set to an instance of an object.
   at IncidentReporter.NotificationSender.EmailHelper.SendEmail(String template, String subject, Object args, String toAddress, String ccAddress, List`1 reportAttachments, List`1 additionalAttachmentsFilePath, String rootEmailTemplatePath, OrganisationFromConfig organisationFromAddress) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\Helpers\EmailHelper.cs:line 39


Sending WorkPermit status change WhatsApp message to: 912000003962


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003962","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_status_update_template","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Adelbert Miley"},{"type":"text","text":"WP/FBYDW/ROO/EWP/26/00001"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Cancelled"},{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/3205?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


# Preparing notification body #


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"NOTIFICATION_FOR_WORK_PERMIT_CREATION","EventArgs":[{"Key":"WorkPermitId","Value":"3207"},{"Key":"ApproverIds","Value":"[6717]"},{"Key":"SiteName","Value":"Colver"},{"Key":"CreatedBy","Value":"Hebert Eaton"},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/CSE/26/00004"},{"Key":"OrgId","Value":248},{"Key":"OrganisationName","Value":"Falcon's Beyond Global Inc. Warrants"}]}


### 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:


Sending WorkPermit creation WhatsApp message to: 912000003962


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003962","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_creation_alert_v3","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Adelbert Miley"},{"type":"text","text":"WP/FBYDW/ROO/CSE/26/00004"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/3207?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Message : {"EventName":"DEPARTMENT_INCHARGE_NOTIFICATION_FOR_WORK_PERMIT_CREATION","EventArgs":[{"Key":"WorkPermitId","Value":"3207"},{"Key":"UserIds","Value":"[]"},{"Key":"SiteName","Value":"Colver"},{"Key":"CreatedBy","Value":"Hebert Eaton"},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/CSE/26/00004"},{"Key":"OrgId","Value":248},{"Key":"OrganisationName","Value":"Falcon's Beyond Global Inc. Warrants"}]}


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


# Calling SendDepartmentInchargeNotificationForWorkPermitCreation function for email/WhatsApp #


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":77153},{"Key":"IncidentHistoryId","Value":107460},{"Key":"IsTicketAssigned","Value":false}]}


### 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:77153


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Ticket LO2MUT has been updated


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


--- Email response from Osmo-x is 201


Sending Assigned To Whatsapp for IncidentId:77153


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":77153},{"Key":"IncidentHistoryId","Value":107461},{"Key":"IsTicketAssigned","Value":false}]}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007994","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":"Phillip Gaffney"},{"type":"text","text":"Ticket"},{"type":"text","text":"LO2MUT"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as grgr"},{"type":"text","text":"Ticket"},{"type":"text","text":"test"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Near miss"},{"type":"text","text":"Phillip Gaffney"},{"type":"text","text":"Galecto Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/211/77153?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"915555557635","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":"Abi Cope"},{"type":"text","text":"Ticket"},{"type":"text","text":"LO2MUT"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as grgr"},{"type":"text","text":"Ticket"},{"type":"text","text":"test"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Near miss"},{"type":"text","text":"Phillip Gaffney"},{"type":"text","text":"Galecto Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/211/77153?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


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


# Calling SendNotificationToIssuerForCreatingPermitToWork function for whatsapp and push notification #


Executing sending notification to issuers through whatsapp


Sending notification to issuers of the comapny regarding permit to work 407933


Executing sending push notification to the issuers


# Push Subject for Issuer P/MIRA/FCP/YI/CS/26/00003


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


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":77157},{"Key":"AssignedToID","Value":881}]}


### 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 ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":77157},{"Key":"IncidentHistoryId","Value":107463},{"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:77157


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Ticket T/HUBG/BDM/26/00002 has been updated


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


--- Email response from Osmo-x is 201


Sending Assigned To Whatsapp for IncidentId:77157


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","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":"Sincere Kidwell"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/HUBG/BDM/26/00002"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as resolved"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":"Break Down Maintenance"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"Hub Group Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/207/77157?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending Assigned To Notification for IncidentId:77157


Inside SendAppNotification Device Type: APNS


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/APNS/Oqsha-IOS-Production/70361169-5454-3c35-9bbe-886ba4dac779


Unauthorized


--- AWS SNS Push Notification created using Osmo-x ---


--- Push notification response from Osmo-x is Unauthorized


Push notification failed to send to a device 23348.


# Push notification did not send #


Sending email for incident closure


Error occurred while sending email using Osmo-x.


Object reference not set to an instance of an object.


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003712","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":"Maxim Noyes"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/HUBG/BDM/26/00002"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as resolved"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":"Break Down Maintenance"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"Hub Group Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/207/77157?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":77157},{"Key":"IncidentHistoryId","Value":107464},{"Key":"IsTicketAssigned","Value":false}]}


### 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:77157


*--- 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


Sending Assigned To Whatsapp for IncidentId:77157


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","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":"Sincere Kidwell"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/HUBG/BDM/26/00002"},{"type":"text","text":"Ticket status updated to Closed., Comments are added as closed"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":"Break Down Maintenance"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"Hub Group Inc."},{"type":"text","text":"Closed"},{"type":"text","text":"https://oqsha.com/#/incidents/view/207/77157?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


Sending email for incident closure


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003712","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":"Maxim Noyes"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/HUBG/BDM/26/00002"},{"type":"text","text":"Ticket status updated to Closed., Comments are added as closed"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":"Break Down Maintenance"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"Hub Group Inc."},{"type":"text","text":"Closed"},{"type":"text","text":"https://oqsha.com/#/incidents/view/207/77157?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


### End Event Execution ###


### Start Event Execution ###


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


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":77158},{"Key":"AssignedToID","Value":881}]}


### 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.


Converted to byte file


PDF generation successfull


## Sending email to Sincere Kidwell, UserId : 881 for assigned to notification ##


Sending Assigned To Email for IncidentId:77158


Initializing Email Service Client


Generating Email Request


A Ticket T/HUBG/BDM/26/00003 is assigned to you related to 'Break Down Maintenance'


--- 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:77158


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


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


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":77158},{"Key":"IncidentHistoryId","Value":107466},{"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:77158


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Ticket T/HUBG/BDM/26/00003 has been updated


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


--- Email response from Osmo-x is 201


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","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":"Sincere Kidwell"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/HUBG/BDM/26/00003"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as resolved"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":"Break Down Maintenance"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"Hub Group Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/207/77158?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


Sending email for incident closure


Error occurred while sending email using Osmo-x.


Object reference not set to an instance of an object.


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003712","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":"Maxim Noyes"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/HUBG/BDM/26/00003"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as resolved"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":"Break Down Maintenance"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"Hub Group Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/207/77158?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":77158},{"Key":"IncidentHistoryId","Value":107467},{"Key":"IsTicketAssigned","Value":false}]}


Sending Email for IncidentId:77158


Initializing Email Service Client


Generating Email Request


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","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":"Sincere Kidwell"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/HUBG/BDM/26/00003"},{"type":"text","text":"Ticket status updated to Closed., Comments are added as close"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":"Break Down Maintenance"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"Hub Group Inc."},{"type":"text","text":"Closed"},{"type":"text","text":"https://oqsha.com/#/incidents/view/207/77158?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003712","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":"Maxim Noyes"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/HUBG/BDM/26/00003"},{"type":"text","text":"Ticket status updated to Closed., Comments are added as close"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":"Break Down Maintenance"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"Hub Group Inc."},{"type":"text","text":"Closed"},{"type":"text","text":"https://oqsha.com/#/incidents/view/207/77158?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


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


# Calling SendNotificationToEitherReviewerOrApprover function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


Sending notification to approver of the comapny regarding permit to work 407933


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/CS/26/00003"},{"type":"text","text":"16-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Accepted by Sincere Kidwell at 15-Jul-2026 07:02:47 PM"},{"type":"text","text":"Quality Verify"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407933?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Push Subject P/MIRA/FCP/YI/CS/26/00003


# string body 16-Jul-2026, Sincere Kidwell,


System.NullReferenceException: Object reference not set to an instance of an object.
   at IncidentReporter.NotificationSender.DAL.Events.Notifier.SendNotificationToEitherReviewerOrApprover(Int64 ptwId, Int64 orgId, String stringUserIds, String stringPrevStateUserIds, String stringReceieveAllPtwUserIds, String workPermitStatus, String jobType, String statusChangeUserDisplayName, String permitToWorkUId, String startDate, String statusChangedTime, String workLocation, String assignToUserDisplayName, String nextStatus, String siteName, String modeOfNotifications, String customStatusJson, String companyUsersEmails) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\Notifier.cs:line 4115
   at IncidentReporter.NotificationSender.DAL.Events.EventHandler.HandleMessage(IMessage message) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\EventHandler.cs:line 581


### End Event Execution ###


### Start Event Execution ###


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


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


Using org-specific template for Org 211: Templates\OrgTemplates\211\Templates\IncidentSubmittedNotificationEmailTemplate.html


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


Near Miss FIR Raised – Incident UID: IMF/GLTO/GRR/NMC/26/00001 | Site: Alanreed


--- 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: 2034


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending Incident Submitted Notification for Incident Id:1296


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/27eeb551-cb8a-370b-b0a5-7238a427aa9d


Unauthorized


--- AWS SNS Push Notification created using Osmo-x ---


--- Push notification response from Osmo-x is Unauthorized


Push notification failed to send to a device 18327.


# Push notification did not send #


### Ended processing Incident Submitted Event ###


### End Event Execution ###


### Start Event Execution ###


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


### Started processing for Incident Validated Event ###


Initializing Email Service Client


Generating Email Request


Incident Validated – Incident UID: IMF/GLTO/GRR/NMC/26/00001 | Site: Alanreed


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


--- Email response from Osmo-x is 201


Sending WhatsApp for Incident Validation to User: 2034


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Incident Validated Event ###


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


### Started processing for Incident Investigation Required notification ###


Executing email notifications for Incident Investigation Required


Using org-specific template for Org 211: Templates\OrgTemplates\211\Templates\IncidentInvestigationRequiredNotification.html


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


Reading and binding data to Email Template


Investigation Required - (Near Miss) FIR Released | Incident UID: IMF/GLTO/GRR/NMC/26/00001 | Site: Alanreed


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendNotificationToIssuerForCreatingPermitToWork function for whatsapp and push notification #


Executing sending notification to issuers through whatsapp


Sending notification to issuers of the comapny regarding permit to work 407934


Executing sending push notification to the issuers


# Push Subject for Issuer P/MIRA/FCP/DIBS/CS/26/00001


# Preparing notification body #


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


# Calling SendNotificationToEitherReviewerOrApprover function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


Sending notification to approver of the comapny regarding permit to work 407934


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/DIBS/CS/26/00001"},{"type":"text","text":"16-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Accepted by Sincere Kidwell at 15-Jul-2026 07:27:05 PM"},{"type":"text","text":"Quality Verify"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407934?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Push Subject P/MIRA/FCP/DIBS/CS/26/00001


# string body 16-Jul-2026, Sincere Kidwell,


Object reference not set to an instance of an object.


### End Event Execution ###


### Start Event Execution ###


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/DIBS/CS/26/00001"},{"type":"text","text":"16-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Quality Verified by Sincere Kidwell at 15-Jul-2026 07:29:04 PM"},{"type":"text","text":"Approve"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407934?orgID=232&dlType=viewWorkPermit"}]}]}}}


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


# Calling SendNotificationToAllExceptReviewer function for whatsapp and push notification #


User Ids for notification: [3978,4048,4055,4586,881]


Starting Execution for whatsapp notification for all


Sending notification to requester regarding permit to work 407934


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/DIBS/CS/26/00001"},{"type":"text","text":"16-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Approved by Sincere Kidwell at 15-Jul-2026 07:30:11 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407934?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"919999999999","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/DIBS/CS/26/00001"},{"type":"text","text":"16-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Approved by Sincere Kidwell at 15-Jul-2026 07:30:11 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407934?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000010468","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/DIBS/CS/26/00001"},{"type":"text","text":"16-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Approved by Sincere Kidwell at 15-Jul-2026 07:30:11 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407934?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001909","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/DIBS/CS/26/00001"},{"type":"text","text":"16-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Approved by Sincere Kidwell at 15-Jul-2026 07:30:11 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407934?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"917777777771","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/DIBS/CS/26/00001"},{"type":"text","text":"16-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Approved by Sincere Kidwell at 15-Jul-2026 07:30:11 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407934?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Starting Execution for push notification for all


# Preparing notification body #


# Push Subject for Issuer P/MIRA/FCP/DIBS/CS/26/00001


# string body 16-Jul-2026, Sincere Kidwell, P/MIRA/FCP/DIBS/CS/26/00001, 16-Jul-2026


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendNotificationToIssuerForCreatingPermitToWork function for whatsapp and push notification #


Executing sending notification to issuers through whatsapp


Sending notification to issuers of the comapny regarding permit to work 407935


Executing sending push notification to the issuers


# Push Subject for Issuer P/MIRA/FCP/YI/GW/26/00002


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


### Started processing for Incident Validated 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


Incident 2QP9KE has been validated


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


--- Email response from Osmo-x is 201


Executing whatsapp notifications to Incident Approvers about the Pending approval


Sending WhatsApp for Incident Validation to User: 5889


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003104","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_incident_validate_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Cato Kwon"},{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"2QP9KE"},{"type":"text","text":"Ashby Gallion"},{"type":"text","text":"29-Jun-2026 08:49:00 PM"},{"type":"text","text":"Colver"},{"type":"text","text":"The IP was working on de-burring machine, while the operation body found burr & emery stuck on burr as resulting in the IP was injured in Right Hand Middle Finger"},{"type":"text","text":"1"},{"type":"text","text":"https://oqsha.com/#/incident-management/report-incident/view/248/1277?dlType=viewIncidentReport"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Incident Validated Event ###


### End Event Execution ###


### Start Event Execution ###


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


### Started processing for Incident FIR Released Event ###


Using default template for Org 248: Templates\IncidentFIRReleasedNotificationEmailTemplate.html


Incident 2QP9KE FIR has been released, form a team to investigate


Sending WhatsApp for Incident Approval to User: 5532


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000008275","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_incident_fir_release_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Lesia Hardman"},{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"2QP9KE"},{"type":"text","text":"Ashby Gallion"},{"type":"text","text":"29-Jun-2026 08:49:00 PM"},{"type":"text","text":"Colver"},{"type":"text","text":"The IP was working on de-burring machine, while the operation body found burr & emery stuck on burr as resulting in the IP was injured in Right Hand Middle Finger"},{"type":"text","text":"1"},{"type":"text","text":"https://oqsha.com/#/incident-management/report-incident/view/248/1277?dlType=viewIncidentReport"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


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


### Started processing for Incident FIR Released Event - External User ###


Incident PDF generation successfull


Initializing Email Service Client


Generating Email Request


osm06983@osmosys.co, TTK_COB_SITE_EHS@oqsha.com, osm04512@osmosys.co, osm05614@osmosys.co, osm01301@osmosys.co, TTK_EHS@oqsha.com, osm06965@osmosys.co, osm06409@osmosys.co, osm07104@osmosys.co, TTK_KHA_PlantH@oqsha.com, TTK_COB_PlantH@oqsha.com, osm02653@osmosys.co, osm03800@osmosys.co, osm05708@osmosys.co, osm05322@osmosys.co, osm02542@osmosys.co, osm00209@osmosys.co, osm07176@osmosys.co, osm03119@osmosys.co, osm05716@osmosys.co, osm03934@osmosys.co, osm02541@osmosys.co, osm02612@osmosys.co, osm00660@osmosys.co, osm03569@osmosys.co, osm02764@osmosys.co, osm06639@osmosys.co, osm07250@osmosys.co, osm03966@osmosys.co, osm02567@osmosys.co, osm00439@osmosys.co, osm02169@osmosys.co, osm01584@osmosys.co, osm02857@osmosys.co, osm02234@osmosys.co, osm03536@osmosys.co, osm02916@osmosys.co, osm04404@osmosys.co, TTK_HOD@oqsha.com, osm03964@osmosys.co, osm00733@osmosys.co, osm02082@osmosys.co, osm01538@osmosys.co, TTK_KAR_HOD@oqsha.com, osm03664@osmosys.co, osm03368@osmosys.co, osm11365@osmosys.co, osm07294@osmosys.co, osm01369@osmosys.co, osm09145@osmosys.co, osm01026@osmosys.co, TTK_KHA_MEO@oqsha.com, osm00021@osmosys.co, osm01200@osmosys.co, osm02035@osmosys.co, osm00644@osmosys.co, osm00821@osmosys.co, TTK_CMO@oqsha.com, osm00254@osmosys.co, osm06710@osmosys.co, osm07055@osmosys.co, osm07261@osmosys.co

Incident 2QP9KE FIR has been released


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


--- Email response from Osmo-x is 201


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


### Started processing for Incident Investigation In Progress Event ###


Incident 2QP9KE has been validated, form a team to investigate


Sending WhatsApp for Incident Approval to User: 267


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001875","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_incident_investigation_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"2QP9KE"},{"type":"text","text":"Ashby Gallion"},{"type":"text","text":"29-Jun-2026 08:49:00 PM"},{"type":"text","text":"Colver"},{"type":"text","text":"The IP was working on de-burring machine, while the operation body found burr & emery stuck on burr as resulting in the IP was injured in Right Hand Middle Finger"},{"type":"text","text":"1"},{"type":"text","text":"https://oqsha.com/#/incident-management/report-investigation/view/248/619?dlType=viewInvestigation"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Incident Investigation In Progress Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":77159},{"Key":"AssignedToID","Value":2550}]}


### 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.


Converted to byte file


PDF generation successfull


## Sending email to Adelina Chesnut, UserId : 2550 for assigned to notification ##


Sending Assigned To Email for IncidentId:77159


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


A Ticket IY3L9G is assigned to you related to 'Unsafe Act'


--- 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:77159


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending Assigned To Notification for IncidentId:77159


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/92651084-ac5a-3602-bbb0-8be1b54cf874


Unauthorized


--- AWS SNS Push Notification created using Osmo-x ---


--- Push notification response from Osmo-x is Unauthorized


Push notification failed to send to a device 20520.


# Push notification did not send #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/263a559d-b5b2-332e-8d7f-14575618c489


Push notification failed to send to a device 21392.


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


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendNotificationToIssuerForCreatingPermitToWork function for whatsapp and push notification #


Executing sending notification to issuers through whatsapp


Sending notification to issuers of the comapny regarding permit to work 407936


Osmo-x WhatsApp Message has been Sent


Executing sending push notification to the issuers


# Push Subject for Issuer P/GLTO/APA/TXG/BL/26/00001


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending notification for permit to work: 407936


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/702ce669-1ae0-3d01-8513-ffedcccfb18c


Unauthorized


Push notification failed to send to a device 3835.


# Push notification did not send #


Inside SendAppNotification Device Type: GCM


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/19b9be4f-ac6e-3e85-a967-f2b839dadb6b


--- AWS SNS Push Notification created using Osmo-x ---


--- Push notification response from Osmo-x is Unauthorized


Push notification failed to send to a device 9375.


Endpoint: arn:aws:sns:us-west-2:505884080245:endpoint/GCM/OQSHA-Android/35a3a8ad-f727-3976-b3d3-95da0f048cc9


Push notification failed to send to a device 10879.


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendNotificationToEitherReviewerOrApprover function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


Sending notification to approver of the comapny regarding permit to work 407936


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Push Subject P/GLTO/APA/TXG/BL/26/00001


# string body 16-Jul-2026, ,


# Checking for device existence #


# User device exists #


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/629c80f8-ac4d-3a6c-a1fc-4cc16db232c2


Unauthorized


Push notification failed to send to a device 20734.


# Push notification did not send #


Sending notification for permit to work: 407936


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/6d74bcbe-4ef4-371f-920c-883c073c9d5a


Push notification failed to send to a device 20736.


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendNotificationForPTWHistory function for whatsapp and push notification #


Executing sending notification to reviewer through whatsapp


Sending notification to reviewer of the comapny regarding permit to work 407936


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000002202","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_history_comments_latest_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/APA/TXG/BL/26/00001"},{"type":"text","text":"16-Jul-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Bowers"},{"type":"text","text":"hyd"},{"type":"text","text":"authorised . The status has changed to Authorized."},{"type":"text","text":"Annemie Braxton at 15-Jul-2026 07:48:24 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407936?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007961","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_history_comments_latest_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/APA/TXG/BL/26/00001"},{"type":"text","text":"16-Jul-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Bowers"},{"type":"text","text":"hyd"},{"type":"text","text":"authorised . The status has changed to Authorized."},{"type":"text","text":"Annemie Braxton at 15-Jul-2026 07:48:24 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407936?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000005135","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_history_comments_latest_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/APA/TXG/BL/26/00001"},{"type":"text","text":"16-Jul-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Bowers"},{"type":"text","text":"hyd"},{"type":"text","text":"authorised . The status has changed to Authorized."},{"type":"text","text":"Annemie Braxton at 15-Jul-2026 07:48:24 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407936?orgID=211&dlType=viewWorkPermit"}]}]}}}


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


# Calling SendNotificationToAllExceptReviewer function for whatsapp and push notification #


User Ids for notification: [5347,20660]


Starting Execution for whatsapp notification for all


Sending notification to requester regarding permit to work 407936


Starting Execution for push notification for all


# Preparing notification body #


# Push Subject for Issuer P/GLTO/APA/TXG/BL/26/00001


# string body 16-Jul-2026, Annemie Braxton, P/GLTO/APA/TXG/BL/26/00001, 16-Jul-2026


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendNotificationToIssuersForExtensionPTW function for whatsapp and push notification #


Executing sending notification to issuers for extended PTW through whatsapp


Sending notification to issuers of the comapny regarding permit to work 407936


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000006966","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/APA/TXG/BL/26/00001"},{"type":"text","text":"16-Jul-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Bowers"},{"type":"text","text":"hyd"},{"type":"text","text":"Extension Requested by Nislavonty Toribio for 3 hour(s) at 15-Jul-2026 07:50:04 PM"},{"type":"text","text":"Extension Approve"},{"type":"text","text":"Adonis Toribio"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407936?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Executing sending push notification to the issuers for extended PTW


# string body Nislavonty Toribio, 3 hour(s), P/GLTO/APA/TXG/BL/26/00001


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


# Calling SendNotificationForPTWHistory function for whatsapp and push notification #


Executing sending notification to reviewer through whatsapp


Sending notification to reviewer of the comapny regarding permit to work 407936


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":77160},{"Key":"AssignedToID","Value":1955}]}


### 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.


Converted to byte file


PDF generation successfull


## Sending email to Renard Whatley, UserId : 1955 for assigned to notification ##


Sending Assigned To Email for IncidentId:77160


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


A Ticket M0S15Z is assigned to you related to 'Unsafe Act'


--- 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:77160


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 : NOTIFICATION_TO_REVIEWER_APPROVER_FOR_EXTENDED_PTW ###


# Calling SendNotificationToEitherReviewerOrApproverForExtendedPTW function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


Sending notification to approver of the comapny regarding permit to work 407936


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000010760","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/APA/TXG/BL/26/00001"},{"type":"text","text":"16-Jul-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Bowers"},{"type":"text","text":"hyd"},{"type":"text","text":"Extension Approved by Adonis Toribio for 3 hour(s) at 15-Jul-2026 07:57:28 PM"},{"type":"text","text":"Extension Authorize"},{"type":"text","text":"Annemie Braxton"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407936?orgID=211&dlType=viewWorkPermit"}]}]}}}


# Push Subject for Issuer P/GLTO/APA/TXG/BL/26/00001


# string body Nislavonty Toribio, 3 hour(s), P/GLTO/APA/TXG/BL/26/00001,,


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":77160},{"Key":"IncidentHistoryId","Value":107470},{"Key":"IsTicketAssigned","Value":false}]}


### 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:77160


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Ticket M0S15Z has been updated


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


--- Email response from Osmo-x is 201


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000713","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":"Renard Whatley"},{"type":"text","text":"Ticket"},{"type":"text","text":"M0S15Z"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as closing"},{"type":"text","text":"Ticket"},{"type":"text","text":"Testing"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Renard Whatley"},{"type":"text","text":"Galecto Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/211/77160?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendNotificationToAllExceptReviewerForExtendedPTW function for  whatsapp and push notification #


Starting Execution for whatsapp notification for all


Sending notification to requester regarding permit to work 407936


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007961","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/APA/TXG/BL/26/00001"},{"type":"text","text":"16-Jul-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Bowers"},{"type":"text","text":"hyd"},{"type":"text","text":"Extension Authorized by Annemie Braxton for 3 hour(s) at 15-Jul-2026 07:59:43 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407936?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000005135","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/APA/TXG/BL/26/00001"},{"type":"text","text":"16-Jul-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Bowers"},{"type":"text","text":"hyd"},{"type":"text","text":"Extension Authorized by Annemie Braxton for 3 hour(s) at 15-Jul-2026 07:59:43 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407936?orgID=211&dlType=viewWorkPermit"}]}]}}}


# string body Annemie Braxton, 3 hour(s), P/GLTO/APA/TXG/BL/26/00001


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":77160},{"Key":"IncidentHistoryId","Value":107471},{"Key":"IsTicketAssigned","Value":false}]}


Sending Email for IncidentId:77160


Initializing Email Service Client


Generating Email Request


Ticket M0S15Z has been updated


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


--- Email response from Osmo-x is 201


Sending Assigned To Whatsapp for IncidentId:77160


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000713","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":"Renard Whatley"},{"type":"text","text":"Ticket"},{"type":"text","text":"M0S15Z"},{"type":"text","text":"Ticket status updated to Closed., Comments are added as Closing"},{"type":"text","text":"Ticket"},{"type":"text","text":"Testing"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Renard Whatley"},{"type":"text","text":"Galecto Inc."},{"type":"text","text":"Closed"},{"type":"text","text":"https://oqsha.com/#/incidents/view/211/77160?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### End Event Execution ###


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


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


### Start Event Execution ###


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


# Calling SendNotificationToEitherReviewerOrApprover function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


Sending notification to approver of the comapny regarding permit to work 407933


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/CS/26/00003"},{"type":"text","text":"16-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Quality Verified by Sincere Kidwell at 15-Jul-2026 08:42:52 PM"},{"type":"text","text":"Approve"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407933?orgID=232&dlType=viewWorkPermit"}]}]}}}


# Push Subject P/MIRA/FCP/YI/CS/26/00003


# string body 16-Jul-2026, Sincere Kidwell,


Message : {"EventName":"WHATSAPP_TO_BATCH_PARTICIPANTS","EventArgs":[{"Key":"BatchParticipantIds","Value":"[11562]"},{"Key":"BatchId","Value":2245}]}


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


# Calling SendNotificationToBatchParticipants function for  whatsapp notification #


Executing completed course notification function to batch participants


Executing planned/Inprogress notification function to batch participants


Sending notification to batch participant for planned and in progress status678


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912222222223","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_planned_batch_latest_v1","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Giselle Angle"},{"type":"text","text":"test1"},{"type":"text","text":"test"},{"type":"text","text":"Neveu"},{"type":"text","text":"0 Week(s) 0 Day(s) 4 Hour(s)"},{"type":"text","text":"No faculty"},{"type":"text","text":"July 15, 2026  09:21:00 PM"},{"type":"text","text":"PLANNED"},{"type":"text","text":"https://oqsha.com/#/batches/view/264/311/2245?dlType=viewBatch"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"WHATSAPP_TO_BATCH_PARTICIPANTS","EventArgs":[{"Key":"BatchParticipantIds","Value":"[11563]"},{"Key":"BatchId","Value":2246}]}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912222222223","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_planned_batch_latest_v1","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Giselle Angle"},{"type":"text","text":"test2"},{"type":"text","text":"test2"},{"type":"text","text":"Neveu"},{"type":"text","text":"0 Week(s) 0 Day(s) 1 Hour(s)"},{"type":"text","text":"No faculty"},{"type":"text","text":"July 15, 2026  09:34:00 PM"},{"type":"text","text":"PLANNED"},{"type":"text","text":"https://oqsha.com/#/batches/view/264/312/2246?dlType=viewBatch"}]}]}}}


Message : {"EventName":"NOTIFICATION_FOR_BATCH_SCHEDULING_COMPLETED","EventArgs":[{"Key":"OrganisationId","Value":264},{"Key":"OrganisationName","Value":"Neveu"},{"Key":"TniId","Value":96},{"Key":"TniName","Value":"TNI - Safety Performance & KPI Management - Executive"},{"Key":"CourseId","Value":286},{"Key":"SiteId","Value":846},{"Key":"UserIds","Value":"[20231]"}]}


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


# Calling SendBatchSchedulingCompletedNotification for tniId=96 organisationId=264 #


Using org-specific template for Org 264: Templates\OrgTemplates\264\Templates\TniBatchScheduledTemplate.html


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Batch Scheduling Completed for TNI - Safety Performance & KPI Management - Executive


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


--- Email response from Osmo-x is 201


## Bulk Batch Scheduling Email Sent to 1 Safety Heads ##


Message : {"EventName":"NOTIFICATION_FOR_BATCH_SCHEDULING_COMPLETED","EventArgs":[{"Key":"OrganisationId","Value":264},{"Key":"OrganisationName","Value":"Neveu"},{"Key":"TniId","Value":98},{"Key":"TniName","Value":"TNI - HIRA & Risk-Based Decision Making - Executive"},{"Key":"CourseId","Value":288},{"Key":"SiteId","Value":900},{"Key":"UserIds","Value":"[20231]"}]}


# Calling SendBatchSchedulingCompletedNotification for tniId=98 organisationId=264 #


Batch Scheduling Completed for TNI - HIRA & Risk-Based Decision Making - Executive


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"NOTIFICATION_FOR_ATTENDEE_ALLOCATION_COMPLETED","EventArgs":[{"Key":"OrganisationId","Value":264},{"Key":"OrganisationName","Value":"Neveu"},{"Key":"TniId","Value":96},{"Key":"TniName","Value":"TNI - Safety Performance & KPI Management - Executive"},{"Key":"TniStartDate","Value":639184608000000000},{"Key":"TniEndDate","Value":639420480000000000},{"Key":"CourseId","Value":286},{"Key":"SiteId","Value":846},{"Key":"UserIds","Value":"[1539,20232,4626]"}]}


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


# Calling SendAttendeeAllocationCompletedNotification for tniId=96 organisationId=264 #


Using org-specific template for Org 264: Templates\OrgTemplates\264\Templates\TniAttendeeAllocationTemplate.html


Action Required: Review Team Allocations for TNI - Safety Performance & KPI Management - Executive


## Allocation Emails Sent to 3 Role Users ##


Starting Execution for grouped participant notifications.


Using org-specific template for Org 264: Templates\OrgTemplates\264\Templates\TniParticipantAllocationTemplate.html


Inside SendAppNotification Device Type: APNS


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/APNS/Oqsha-IOS-Production/a02309db-380a-3754-afe8-ceb1d2af1cb0


Unauthorized


--- AWS SNS Push Notification created using Osmo-x ---


--- Push notification response from Osmo-x is Unauthorized


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


# Calling SendNotificationToEitherReviewerOrApprover function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


Sending notification to approver of the comapny regarding permit to work 407935


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/GW/26/00002"},{"type":"text","text":"16-Jul-2026"},{"type":"text","text":"General Work"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Accepted by Sincere Kidwell at 15-Jul-2026 10:00:45 PM"},{"type":"text","text":"Quality Verify"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407935?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Push Subject P/MIRA/FCP/YI/GW/26/00002


# string body 16-Jul-2026, Sincere Kidwell,


Object reference not set to an instance of an object.


### End Event Execution ###


### Start Event Execution ###


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/GW/26/00002"},{"type":"text","text":"16-Jul-2026"},{"type":"text","text":"General Work"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Quality Verified by Sincere Kidwell at 15-Jul-2026 10:00:54 PM"},{"type":"text","text":"Approve"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407935?orgID=232&dlType=viewWorkPermit"}]}]}}}


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


# Calling SendBatchScheduleUpdatedNotification for batchId=1763 orgId=264 #


Using org-specific template for Org 264: Templates\OrgTemplates\264\Templates\BatchScheduleUpdatedTemplate.html


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Schedule Updated: Confined Space Safety - Batch-2


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


--- Email response from Osmo-x is 201


## Batch Update Emails sent to 3 Managers ##


Message : {"EventName":"NOTIFICATION_FOR_BATCH_SCHEDULING_COMPLETED","EventArgs":[{"Key":"OrganisationId","Value":264},{"Key":"OrganisationName","Value":"Neveu"},{"Key":"TniId","Value":99},{"Key":"TniName","Value":"TNI - Industrial Vehicle & Road Safety - Executive"},{"Key":"CourseId","Value":289},{"Key":"SiteId","Value":846},{"Key":"UserIds","Value":"[20231]"}]}


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


# Calling SendBatchSchedulingCompletedNotification for tniId=99 organisationId=264 #


Using org-specific template for Org 264: Templates\OrgTemplates\264\Templates\TniBatchScheduledTemplate.html


Batch Scheduling Completed for TNI - Industrial Vehicle & Road Safety - Executive


## Bulk Batch Scheduling Email Sent to 1 Safety Heads ##


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"NOTIFICATION_FOR_BATCH_SCHEDULING_COMPLETED","EventArgs":[{"Key":"OrganisationId","Value":264},{"Key":"OrganisationName","Value":"Neveu"},{"Key":"TniId","Value":100},{"Key":"TniName","Value":"TNI - Incident Investigation & Learning - Executive"},{"Key":"CourseId","Value":290},{"Key":"SiteId","Value":846},{"Key":"UserIds","Value":"[20231]"}]}


# Calling SendBatchSchedulingCompletedNotification for tniId=100 organisationId=264 #


Batch Scheduling Completed for TNI - Incident Investigation & Learning - Executive


# Calling SendBatchSchedulingCompletedNotification for tniId=134 organisationId=264 #


Initializing Email Service Client


Generating Email Request


Batch Scheduling Completed for testing2


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


--- Email response from Osmo-x is 201


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


# Calling SendAttendeeAllocationCompletedNotification for tniId=134 organisationId=264 #


Using org-specific template for Org 264: Templates\OrgTemplates\264\Templates\TniAttendeeAllocationTemplate.html


Action Required: Review Team Allocations for testing2


## Allocation Emails Sent to 3 Role Users ##


Starting Execution for grouped participant notifications.


Using org-specific template for Org 264: Templates\OrgTemplates\264\Templates\TniParticipantAllocationTemplate.html


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


Reading and binding data to Email Template


Training Assigned: testing2


## Grouped Notifications processed for 1 Unique Participants ##


### End Event Execution ###


### Start Event Execution ###


# Calling SendBatchSchedulingCompletedNotification for tniId=135 organisationId=264 #


Initializing Email Service Client


Generating Email Request


Batch Scheduling Completed for testing3


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


--- Email response from Osmo-x is 201


# Calling SendAttendeeAllocationCompletedNotification for tniId=135 organisationId=264 #


Action Required: Review Team Allocations for testing3


Training Assigned: testing3


Message : {"EventName":"WHATSAPP_TO_BATCH_PARTICIPANTS","EventArgs":[{"Key":"BatchParticipantIds","Value":"[12249]"},{"Key":"BatchId","Value":2290}]}


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


# Calling SendNotificationToBatchParticipants function for  whatsapp notification #


Executing completed course notification function to batch participants


Executing planned/Inprogress notification function to batch participants


Sending notification to batch participant for planned and in progress status678


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912222222223","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_planned_batch_latest_v1","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Giselle Angle"},{"type":"text","text":"TNI Management Batch"},{"type":"text","text":"TNI Management Course"},{"type":"text","text":"Neveu"},{"type":"text","text":"0 Week(s) 0 Day(s) 2 Hour(s)"},{"type":"text","text":"No faculty"},{"type":"text","text":"July 15, 2026  10:36:00 PM"},{"type":"text","text":"PLANNED"},{"type":"text","text":"https://oqsha.com/#/batches/view/264/313/2290?dlType=viewBatch"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"NOTIFICATION_FOR_BATCH_SCHEDULING_COMPLETED","EventArgs":[{"Key":"OrganisationId","Value":264},{"Key":"OrganisationName","Value":"Neveu"},{"Key":"TniId","Value":103},{"Key":"TniName","Value":"TNI - Basic Safety & PPE - Non-Executives"},{"Key":"CourseId","Value":293},{"Key":"SiteId","Value":846},{"Key":"UserIds","Value":"[20231]"}]}


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


# Calling SendBatchSchedulingCompletedNotification for tniId=103 organisationId=264 #


Using org-specific template for Org 264: Templates\OrgTemplates\264\Templates\TniBatchScheduledTemplate.html


Initializing Email Service Client


Generating Email Request


Batch Scheduling Completed for TNI - Basic Safety & PPE - Non-Executives


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


--- Email response from Osmo-x is 201


## Bulk Batch Scheduling Email Sent to 1 Safety Heads ##


Message : {"EventName":"NOTIFICATION_FOR_BATCH_SCHEDULING_COMPLETED","EventArgs":[{"Key":"OrganisationId","Value":264},{"Key":"OrganisationName","Value":"Neveu"},{"Key":"TniId","Value":104},{"Key":"TniName","Value":"TNI - Material Handling - Non-Executives"},{"Key":"CourseId","Value":294},{"Key":"SiteId","Value":846},{"Key":"UserIds","Value":"[20231]"}]}


# Calling SendBatchSchedulingCompletedNotification for tniId=104 organisationId=264 #


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


Reading and binding data to Email Template


Batch Scheduling Completed for TNI - Material Handling - Non-Executives


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"NOTIFICATION_FOR_BATCH_SCHEDULING_COMPLETED","EventArgs":[{"Key":"OrganisationId","Value":264},{"Key":"OrganisationName","Value":"Neveu"},{"Key":"TniId","Value":106},{"Key":"TniName","Value":"TNI - Permit to Work (PTW) - Non-Executives"},{"Key":"CourseId","Value":296},{"Key":"SiteId","Value":846},{"Key":"UserIds","Value":"[20231]"}]}


# Calling SendBatchSchedulingCompletedNotification for tniId=106 organisationId=264 #


Batch Scheduling Completed for TNI - Permit to Work (PTW) - Non-Executives


Message : {"EventName":"Update_USER","EventArgs":[{"Key":"DisplayName","Value":"Reynaldo Noyes"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"Neveu"},{"Key":"UserDivisions","Value":""},{"Key":"UserIncidentSites","Value":"Beaverdam, Champion Heights, Healdton"},{"Key":"OldEmail","Value":""},{"Key":"Email","Value":"osm08216@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


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


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