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


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


### Start Event Execution ###


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


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Incident 7NSAXJ has been validated, form a team to investigate

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


--- 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 Approval to User: 1


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000006052","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":"Candis Rugg"},{"type":"text","text":"7NSAXJ"},{"type":"text","text":"Justina Benedict"},{"type":"text","text":"07-Jul-2026 07:20:00 AM"},{"type":"text","text":"Melmore"},{"type":"text","text":"HT Breaker Room Sheet Roof have got fully damaged due to Heavy rain and wind.Also, the Two Wheeler stand roof gutter and the sunshade have got damaged due to rain and wind. "},{"type":"text","text":"0"},{"type":"text","text":"https://oqsha.com/#/incident-management/report-investigation/view/248/611?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 ###


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


### Started processing for Investigation Submitted Event ###


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


Executing email notifications to Investigation Approvers about the Pending approval


Initializing Email Service Client


Generating Email Request


You have been assigned to review the investigation report 7NSAXJ


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


--- Email response from Osmo-x is 201


Executing whatsapp notifications to Investigation Approvers about the Pending approval


Sending WhatsApp for Investigation Approval to User: 5538


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000002528","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_investigation_submission_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Mozell Heaton"},{"type":"text","text":"7NSAXJ"},{"type":"text","text":"Justina Benedict"},{"type":"text","text":"07-Jul-2026 07:20:00 AM"},{"type":"text","text":"Melmore"},{"type":"text","text":"HT Breaker Room Sheet Roof have got fully damaged due to Heavy rain and wind.Also, the Two Wheeler stand roof gutter and the sunshade have got damaged due to rain and wind. "},{"type":"text","text":"0"},{"type":"text","text":"https://oqsha.com/#/incident-management/report-investigation/view/248/611?dlType=viewInvestigation"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Investigation Submitted Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"WHATSAPP_TO_BATCH_PARTICIPANTS","EventArgs":[{"Key":"BatchParticipantIds","Value":"[11553,11554]"},{"Key":"BatchId","Value":2234}]}


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


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


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":77146},{"Key":"AssignedToID","Value":1202}]}


### 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 Giselle Longo, UserId : 1202 for assigned to notification ##


Sending Assigned To Email for IncidentId:77146


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


A Ticket T/BEAT/UAA/26/00001 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:77146


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":77146},{"Key":"AssignedToID","Value":1942}]}


Generating report.


Converted to byte file


PDF generation successfull


# Checking for device existence #


# User device exists #


Sending Assigned To Notification for IncidentId:77146


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/a0dfda5b-28b9-310e-b5dd-a829300426f7


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


# Push notification did not send #


Endpoint: arn:aws:sns:us-west-2:505884080245:endpoint/GCM/OQSHA-Android/65ae9aac-94dd-3c25-9aa9-63b288320db5


Push notification failed to send to a device 6946.


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendBatchScheduleUpdatedNotification for batchId=2212 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: Safety Leadership & Behavioral Safety - Batch-11


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


--- Email response from Osmo-x is 201


## Batch Update Emails sent to 3 Managers ##


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


Ticket T/BEAT/UAA/26/00001 has been updated


Sending Assigned To Whatsapp for IncidentId:77146


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"918888888882","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":"Randal Jessup"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/BEAT/UAA/26/00001"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as resolved"},{"type":"text","text":"Ticket"},{"type":"text","text":"Testing "},{"type":"text","text":"Robertsdale"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Randal Jessup"},{"type":"text","text":"Heartbeam Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/204/77146?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000002239","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":"Addisyn Papp"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/BEAT/UAA/26/00001"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as resolved"},{"type":"text","text":"Ticket"},{"type":"text","text":"Testing "},{"type":"text","text":"Robertsdale"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Randal Jessup"},{"type":"text","text":"Heartbeam Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/204/77146?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


# Checking for device existence #


# User device exists #


Sending Assigned To Notification for IncidentId:77146


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/1ed0574f-f394-38d4-b33c-1065f3e9da1e


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


# Push notification did not send #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Test/fc53f137-ab94-3be6-a157-f985d0a4b1f9


Push notification failed to send to a device 23261.


Sending email for incident closure


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


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000005109","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":"Kathaleen Hoopes"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/BEAT/UAA/26/00001"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as resolved"},{"type":"text","text":"Ticket"},{"type":"text","text":"Testing "},{"type":"text","text":"Robertsdale"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Randal Jessup"},{"type":"text","text":"Heartbeam Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/204/77146?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Checking for device existence #


# User device exists #


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/80f2e057-c1c4-33ff-ab71-96a94157f825


Unauthorized


Push notification failed to send to a device 2596.


Sending Assigned To Whatsapp for IncidentId:77146


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000009155","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":"Giselle Skelton"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/BEAT/UAA/26/00001"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as resolved"},{"type":"text","text":"Ticket"},{"type":"text","text":"Testing "},{"type":"text","text":"Robertsdale"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Randal Jessup"},{"type":"text","text":"Heartbeam Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/204/77146?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/51b263a2-751d-3f27-9fe4-a6d058409422


Push notification failed to send to a device 17143.


# Push notification did not send #


Sending email for incident closure


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001657","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":"Karla Mcclintock"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/BEAT/UAA/26/00001"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as resolved"},{"type":"text","text":"Ticket"},{"type":"text","text":"Testing "},{"type":"text","text":"Robertsdale"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Randal Jessup"},{"type":"text","text":"Heartbeam Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/204/77146?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Sending Assigned To Notification for IncidentId:77146


Inside SendAppNotification Device Type: GCM


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/056dd5a1-1c27-3e4d-9114-c7300dcd4445


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


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


Push notification failed to send to a device 2589.


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


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":"912000009853","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":"Areli Shrum"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/BEAT/UAA/26/00001"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as resolved"},{"type":"text","text":"Ticket"},{"type":"text","text":"Testing "},{"type":"text","text":"Robertsdale"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Randal Jessup"},{"type":"text","text":"Heartbeam Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/204/77146?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Checking for device existence #


# User device exists #


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/b0093205-7b0a-3ffc-a18f-0554136bb760


Unauthorized


Push notification failed to send to a device 2328.


# Push notification did not send #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/9cef82ec-ee40-3b87-8215-1f0ad7165ff7


Push notification failed to send to a device 5927.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/9ae6f153-9f95-3b3a-9f54-55d87741a891


Push notification failed to send to a device 9010.


Sending email for incident closure


Sending Assigned To Whatsapp for IncidentId:77146


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000004003","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":"Marley Lacy"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/BEAT/UAA/26/00001"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as resolved"},{"type":"text","text":"Ticket"},{"type":"text","text":"Testing "},{"type":"text","text":"Robertsdale"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Randal Jessup"},{"type":"text","text":"Heartbeam Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/204/77146?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Sending Assigned To Notification for IncidentId:77146


Inside SendAppNotification Device Type: GCM


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/cd58aaa8-3aca-3d74-9b3e-2b3753cd1a3e


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


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


Push notification failed to send to a device 2561.


# Checking for device existence #


# User device exists #


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/8b395690-f650-3a22-a5b2-98017b62ebb6


Unauthorized


Push notification failed to send to a device 3575.


# Push notification did not send #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/39a2a7b6-5c94-3361-ac38-a2ad98d980a4


Push notification failed to send to a device 4805.


Push notification failed to send to a device 13030.


Sending email for incident closure


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001885","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":"Jasmyne Soukup"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/BEAT/UAA/26/00001"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as resolved"},{"type":"text","text":"Ticket"},{"type":"text","text":"Testing "},{"type":"text","text":"Robertsdale"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Randal Jessup"},{"type":"text","text":"Heartbeam Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/204/77146?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Error occurred while sending email using Osmo-x.


Object reference not set to an instance of an object.


# Preparing notification body #


# Checking for device existence #


# User device exists #


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/cd147add-559f-39a0-aa42-2a122117d365


Unauthorized


Push notification failed to send to a device 2568.


# Push notification did not send #


Sending Assigned To Notification for IncidentId:77146


Inside SendAppNotification Device Type: GCM


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/22f1e197-ee6f-3ada-874b-b733f95c9f23


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


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


Push notification failed to send to a device 6256.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/f3e2e940-ac5f-343e-9c85-fc9a2a9d655f


Push notification failed to send to a device 16977.


Sending Assigned To Whatsapp for IncidentId:77146


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000006478","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":"Jacqui Skelton"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/BEAT/UAA/26/00001"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as resolved"},{"type":"text","text":"Ticket"},{"type":"text","text":"Testing "},{"type":"text","text":"Robertsdale"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Randal Jessup"},{"type":"text","text":"Heartbeam Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/204/77146?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001710","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":"Hellen Maravilla"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/BEAT/UAA/26/00001"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as resolved"},{"type":"text","text":"Ticket"},{"type":"text","text":"Testing "},{"type":"text","text":"Robertsdale"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Randal Jessup"},{"type":"text","text":"Heartbeam Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/204/77146?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


### Ended processing Update incident 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 407922


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000002453","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/HUBG/TFX/AIP/CW/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Requested by Raleigh Swaney at 15-Jul-2026 11:27:51 AM"},{"type":"text","text":"Issue"},{"type":"text","text":"Ana Osborn"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407922?orgID=207&dlType=viewWorkPermit"}]}]}}}


Executing sending push notification to the issuers


# Push Subject for Issuer P/HUBG/TFX/AIP/CW/26/00001


# Checking for device existence #


# User device exists #


Sending notification for permit to work: 407922


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/601c1b17-2af0-3f9d-8ea5-777d1234172e


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


# Push notification did not send #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/cd99c807-79df-3252-abc2-9a65d4caf23b


Push notification failed to send to a device 10376.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/27462b11-d660-3321-8287-d7d314f9e282


Push notification failed to send to a device 10901.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/8d44ad78-8b14-3b2c-885c-92039149a4e4


Push notification failed to send to a device 22923.


# Checking for device existence #


# User device exists #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/7f147d30-3a67-3fe9-9367-0e9c198c234d


Push notification failed to send to a device 7168.


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/882761bd-1d76-3979-a5de-b182b79fd03a


Unauthorized


Push notification failed to send to a device 7194.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/24356160-1bdb-3a27-83fa-b8289a947d2c


Push notification failed to send to a device 10575.


# Push notification did not send #


Sending notification for permit to work: 407922


Inside SendAppNotification Device Type: GCM


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/e080cf4e-d752-32fe-91ca-d3e7df957270


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


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


Push notification failed to send to a device 6822.


# Checking for device existence #


# User device exists #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/a705152c-79d0-3248-9312-52767547c5d7


Push notification failed to send to a device 8864.


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/3d00a271-e797-3253-8bf8-514d7bf39abb


Unauthorized


Push notification failed to send to a device 22203.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/7d901924-169d-331d-9953-d6bb919f9aa1


Push notification failed to send to a device 6974.


# Push notification did not send #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/2ee46e5d-0ca6-311b-9832-b2ba57878e01


Push notification failed to send to a device 8654.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/12d409c9-a80e-3528-a26a-62371c2cb304


Push notification failed to send to a device 11116.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/86befed8-83b8-3477-a8f0-72840ec822b5


Push notification failed to send to a device 11151.


# Checking for device existence #


# User device exists #


Sending notification for permit to work: 407922


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/dbf5a473-0c4b-3fe5-85c0-e5536c74289a


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


# Push notification did not send #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/8670124d-f221-30c6-a589-30083defce83


Push notification failed to send to a device 9491.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/e27f1f5f-cf67-34c8-9db3-e915ec00727c


Push notification failed to send to a device 10490.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/eba11478-c55c-3bd9-9e47-0b4fbd026f40


Push notification failed to send to a device 7795.


# Checking for device existence #


# User device exists #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/92f40b3c-7b70-311c-9096-c22c3b0ab766


Push notification failed to send to a device 7794.


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/cbd76a09-6afb-3b2e-b3ba-2f8af06e72ea


Unauthorized


Push notification failed to send to a device 11265.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/fb1043d4-01e5-3628-8387-c71af3c46cc6


Push notification failed to send to a device 21324.


# Push notification did not send #


Sending notification for permit to work: 407922


Inside SendAppNotification Device Type: GCM


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/72d6e5f9-427a-34a7-9970-ce29c8bf86b8


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


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


Push notification failed to send to a device 9428.


# Checking for device existence #


# User device exists #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/749893de-40e6-393c-b85b-0432f20014e3


Push notification failed to send to a device 15997.


### End Event Execution ###


### Start Event Execution ###


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


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":77147},{"Key":"AssignedToID","Value":1855}]}


### 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 Ana Eaton, UserId : 1855 for assigned to notification ##


Sending Assigned To Email for IncidentId:77147


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


A Ticket T/HUBG/BDM/26/00001 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:77147


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending Assigned To Notification for IncidentId:77147


Inside SendAppNotification Device Type: APNS


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/APNS/Oqsha-IOS-Production/c00a749d-2341-3f2f-beb4-20afa0125719


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


# Push notification did not send #


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


### End Event Execution ###


### Start Event Execution ###


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


Initializing Email Service Client


Generating Email Request


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


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


--- Email response from Osmo-x is 201


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001644","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":"Ana Eaton"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/HUBG/BDM/26/00001"},{"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":"Ana Eaton"},{"type":"text","text":"Hub Group Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/207/77147?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/00001"},{"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":"Ana Eaton"},{"type":"text","text":"Hub Group Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/207/77147?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":77148},{"Key":"AssignedToID","Value":3978}]}


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


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


Converted to byte file


PDF generation successfull


## Sending email to Neppie Traynor, UserId : 3978 for assigned to notification ##


Sending Assigned To Email for IncidentId:77148


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


A Ticket T/MIRA/EEE/26/00001 is assigned to you related to 'EHS-Accident/Incident'


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


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending Assigned To Notification for IncidentId:77148


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Test/2eb46c2d-00d0-355b-96e3-671d213b7379


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


# Push notification did not send #


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


Osmo-x WhatsApp Message has been Sent


Executing sending push notification to the issuers


# Push Subject for Issuer P/BEAT/COM/BEAT/BL/26/00001


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending notification for permit to work: 407923


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/19d6b210-02d3-3a15-a9ac-3359dbb0f5d4


Unauthorized


Push notification failed to send to a device 2587.


# Push notification did not send #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/751ffcf2-22f3-30ba-960d-2fcc9f34952c


Push notification failed to send to a device 2591.


Inside SendAppNotification Device Type: GCM


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/bf451e8d-a668-39d2-a40f-f93f4da4f892


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


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


Push notification failed to send to a device 3651.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/893f4098-040a-3b57-93b7-56e947c969f5


Push notification failed to send to a device 5846.


# Checking for device existence #


# User device exists #


Endpoint: arn:aws:sns:us-west-2:505884080245:endpoint/GCM/OQSHA-Android/229781c2-ba42-37f9-9792-1bd75f6a5322


Push notification failed to send to a device 5857.


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/bfc4a51c-b82e-3dc1-9770-9fc54f3b3807


Unauthorized


Push notification failed to send to a device 5898.


# Push notification did not send #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/421920a0-6beb-362b-809a-3a521a6d99a3


Push notification failed to send to a device 8011.


Sending notification for permit to work: 407923


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/49e7ae51-e339-3c79-9908-b68f20e2b7d7


Push notification failed to send to a device 8805.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/64db7f5e-e46f-37b1-9eec-f7096740fde7


Push notification failed to send to a device 8932.


Inside SendAppNotification Device Type: GCM


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/113d114c-fed0-3b06-a32b-f3c7ab080c74


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


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


Push notification failed to send to a device 8933.


# Checking for device existence #


# User device exists #


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/26fa76c9-e3c7-394d-8dec-f0201c85e760


Unauthorized


Push notification failed to send to a device 9224.


# Push notification did not send #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/a989d108-727e-31cd-89e3-ec7023f72980


Push notification failed to send to a device 9366.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/5fbd6c4d-72ff-3528-be4a-5943acbd96e2


Push notification failed to send to a device 9409.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/059d8326-7174-3335-8162-788f844c112b


Push notification failed to send to a device 9455.


Sending notification for permit to work: 407923


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/29578637-ef12-3183-95a7-f6d828642f89


Push notification failed to send to a device 9498.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/2cf97c9d-1dc6-3ee3-b08e-99e04581869f


Push notification failed to send to a device 9518.


# Checking for device existence #


# User device exists #


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/0de26ffa-8c69-35b4-903d-8926b3db27be


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


# Push notification did not send #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/bbc5d73f-a6c0-3f07-ba71-67c0defb26ee


Push notification failed to send to a device 9824.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/ce167120-de39-3b43-9185-ae15722de4af


Push notification failed to send to a device 9888.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/af3dc8c9-5d41-3e90-98fa-82dcbafab65e


Push notification failed to send to a device 9916.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/2563dd4d-8a90-3bd1-a626-0aa8d3154779


Push notification failed to send to a device 9973.


# Checking for device existence #


# User device exists #


Sending notification for permit to work: 407923


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/5d14e3c7-2b2a-3306-a766-c84a35dbb583


Unauthorized


Push notification failed to send to a device 10074.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/27e2dbce-51d1-3ab6-bd2a-fc701d46bc7e


Push notification failed to send to a device 10199.


# Push notification did not send #


Inside SendAppNotification Device Type: GCM


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/9d1a06a8-b994-3503-bb86-66f92d2e110a


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


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


Push notification failed to send to a device 10219.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/0dd51c58-69d2-3db1-9132-dfba0ddca880


Push notification failed to send to a device 10303.


# Checking for device existence #


# User device exists #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/439ff481-be97-35b4-92ec-b2dc7de1b580


Push notification failed to send to a device 10311.


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/0983d1db-982c-32a4-823a-c6202e53e1d7


Unauthorized


Push notification failed to send to a device 10351.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/eee7d203-47f7-39ae-ae4d-4e54c5f9365b


Push notification failed to send to a device 10459.


# Push notification did not send #


Sending notification for permit to work: 407923


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/20cf8303-fb90-35a6-9724-9b7c1eab7778


Push notification failed to send to a device 10501.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/f0fcfaa8-d8c0-338b-b91e-844988b4f37a


Push notification failed to send to a device 10504.


Inside SendAppNotification Device Type: GCM


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/b9dba75f-f4c2-3170-83a2-a1e47fa6cc9c


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


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


Push notification failed to send to a device 10614.


# Checking for device existence #


# User device exists #


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/3d52ff86-2d03-3654-8770-5b01ca816457


Unauthorized


Push notification failed to send to a device 10655.


# Push notification did not send #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/ab8ac875-eb35-3618-8a12-850126feb324


Push notification failed to send to a device 11209.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/de4d85be-a3fe-3a30-9305-ef877b8494cf


Push notification failed to send to a device 20771.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/35d6d33e-4a08-3f4a-a630-0559c393b66a


Push notification failed to send to a device 23118.


Sending notification for permit to work: 407923


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/d3e590d6-9f76-32e5-9a51-89b0e0446ae1


Push notification failed to send to a device 3458.


Inside SendAppNotification Device Type: APNS


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/APNS/Oqsha-IOS-Production/882aa168-02c0-3171-8674-c2f71e847a7f


Push notification failed to send to a device 6405.


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


Osmo-x WhatsApp Message has been Sent


Executing sending push notification to the issuers


# Push Subject for Issuer P/BEAT/COM/BEAT/EL/26/00001


# Preparing notification body #


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


# Calling SendNotificationToAllExceptReviewer function for whatsapp and push notification #


User Ids for notification: [1778,2552,4258]


Starting Execution for whatsapp notification for all


Sending notification to requester regarding permit to work 407924


Starting Execution for push notification for all


# string body 15-Jul-2026, Elizabet Patty, P/BEAT/COM/BEAT/EL/26/00001, 15-Jul-2026


### End Event Execution ###


### Start Event Execution ###


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


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Ticket T/MIRA/EEE/26/00001 has been updated


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


--- Email response from Osmo-x is 201


Sending Assigned To Whatsapp for IncidentId:77148


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/00001"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as testing resolved"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Rio"},{"type":"text","text":"EHS-Accident/Incident"},{"type":"text","text":"Neppie Traynor"},{"type":"text","text":"MIRA Pharmaceuticals Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/232/77148?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:77148


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/ecfe1d24-c530-32d3-bc47-9c0c81d85ec9


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


# Push notification did not send #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/b3d73e24-f718-3436-9d59-2ceb289a1759


Push notification failed to send to a device 10981.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/59e7598f-38b8-3a18-ac57-a55aee1cb6f2


Push notification failed to send to a device 10985.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/5a71b860-48a1-313e-9317-89128330e7c3


Push notification failed to send to a device 11125.


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/00001"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as testing resolved"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Rio"},{"type":"text","text":"EHS-Accident/Incident"},{"type":"text","text":"Neppie Traynor"},{"type":"text","text":"MIRA Pharmaceuticals Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/232/77148?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":77148},{"Key":"IncidentHistoryId","Value":107431},{"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:77148


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


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/00001"},{"type":"text","text":"Ticket status updated to Closed., Comments are added as testing"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Rio"},{"type":"text","text":"EHS-Accident/Incident"},{"type":"text","text":"Neppie Traynor"},{"type":"text","text":"MIRA Pharmaceuticals Inc."},{"type":"text","text":"Closed"},{"type":"text","text":"https://oqsha.com/#/incidents/view/232/77148?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


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/00001"},{"type":"text","text":"Ticket status updated to Closed., Comments are added as testing"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Rio"},{"type":"text","text":"EHS-Accident/Incident"},{"type":"text","text":"Neppie Traynor"},{"type":"text","text":"MIRA Pharmaceuticals Inc."},{"type":"text","text":"Closed"},{"type":"text","text":"https://oqsha.com/#/incidents/view/232/77148?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001875","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/HUBG/TFX/AIP/CW/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Issued by Ana Osborn at 15-Jul-2026 11:54:58 AM"},{"type":"text","text":"Approve"},{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407922?orgID=207&dlType=viewWorkPermit"}]}]}}}


# Push Subject P/HUBG/TFX/AIP/CW/26/00001


# string body 15-Jul-2026, Ana Osborn,


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


Message : {"EventName":"INFORM_TO_INCIDENT_CREATION_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":77149},{"Key":"InformToUserId","Value":5532}]}


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000008275","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":"Lesia Hardman"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/FBYDW/UAA/26/00001"},{"type":"text","text":"testing sa feom app"},{"type":"text","text":"Colver"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Brielle Duffey"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Open"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/77149?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Generating Safety Alert report.


Converted to byte file


## Safety Alert Email Sent to Lesia Hardman##


Sending Inform-To Email (with Safety Alert PDF) for IncidentId: 77149


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Safety Alert T/FBYDW/UAA/26/00001 has been created


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


--- Email response from Osmo-x is 201


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


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


Osmo-x WhatsApp Message has been Sent


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


# Calling SendNotificationToTaskAssignees function for WhatsApp notification #


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":77149},{"Key":"AssignedToID","Value":5889}]}


### 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 WhatsApp notification for task assignment to user ID: 5889


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003104","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_task_assigned_to_notification_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Cato Kwon"},{"type":"text","text":"Action Tracker"},{"type":"text","text":"AT/FBYDW/ROO/TTT/26/00001"},{"type":"text","text":"testing sa feom app"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"https://oqsha.com/#/tasks/edit/15255?dlType=viewTask&orgID=248"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Sending Task Assignment Email for TaskId: 15255, UserId: 5889


Initializing Email Service Client


Generating Email Request


New Action Tracker Assigned - AT/FBYDW/ROO/TTT/26/00001


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


--- Email response from Osmo-x is 201


# Preparing notification body #


### End Event Execution ###


Converted to byte file


PDF generation successfull


## Sending email to Cato Kwon, UserId : 5889 for assigned to notification ##


Sending Assigned To Email for IncidentId:77149


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


Reading and binding data to Email Template


A Safety Alert T/FBYDW/UAA/26/00001 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:77149


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003104","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":"Cato Kwon"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/FBYDW/UAA/26/00001"},{"type":"text","text":"testing sa feom app"},{"type":"text","text":"Colver"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Brielle Duffey"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/77149?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


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


### Start Event Execution ###


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000009689","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":"Brielle Duffey"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/FBYDW/UAA/26/00001"},{"type":"text","text":"Safety Alert status updated to Assigned"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"testing sa feom app"},{"type":"text","text":"Colver"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Brielle Duffey"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/77149?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


# Preparing notification body #


### Ended processing Update incident Event ###


### End Event Execution ###


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000009689","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":"Brielle Duffey"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/FBYDW/UAA/26/00001"},{"type":"text","text":"Safety Alert status updated to Resolved., Comments are added as resolving"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"testing sa feom app"},{"type":"text","text":"Colver"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Brielle Duffey"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/77149?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Sending Email for IncidentId:77149


Initializing Email Service Client


Generating Email Request


Safety Alert T/FBYDW/UAA/26/00001 has been updated


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


--- Email response from Osmo-x is 201


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003104","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":"Cato Kwon"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/FBYDW/UAA/26/00001"},{"type":"text","text":"Safety Alert status updated to Resolved., Comments are added as resolving"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"testing sa feom app"},{"type":"text","text":"Colver"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Brielle Duffey"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/77149?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Checking for device existence #


# User device exists #


Sending Assigned To Notification for IncidentId:77149


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Test/23447333-0b60-334d-ab01-0aa29db3054f


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


# Push notification did not send #


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"INCIDENT_CLOSURE_NOTIFICATION_VALIDATION_1","EventArgs":[{"Key":"IncidentId","Value":77149},{"Key":"ClosedById","Value":5889}]}


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


### Started processing for Incident Closure Validation Level 1 Event ###


Generating report.


## Sending notification to Site EHS user ##


## Notification to be send for these users: [5532]


## Sending email to Lesia Hardman, UserId : 5532 for Incident Closure Validation notification ##


Converted to byte file


Sending Incident Closure Validation Email with Safety Alert PDF for IncidentId:77149


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Safety Alert Validation Level 1


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


--- Email response from Osmo-x is 201


Sending Inform-To Update WhatsApp for IncidentId:77149


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000008275","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_validation_level_1_whatsapp_template_ttk_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Lesia Hardman"},{"type":"text","text":"Cato Kwon"},{"type":"text","text":"T/FBYDW/UAA/26/00001"},{"type":"text","text":"15-Jul-2026 11:59:38 AM"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Colver"},{"type":"text","text":"Colver"},{"type":"text","text":"testing sa feom app"},{"type":"text","text":"Brielle Duffey"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/77149?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### Ended processing Incident Closure Validation Level 1 Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":77149},{"Key":"IncidentHistoryId","Value":107436},{"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 Assigned To Whatsapp for IncidentId:77149


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000009689","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":"Brielle Duffey"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/FBYDW/UAA/26/00001"},{"type":"text","text":"Safety Alert status updated to Validated., Comments are added as v"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"testing sa feom app"},{"type":"text","text":"Colver"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Brielle Duffey"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Validated"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/77149?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


# Preparing notification body #


Sending Email for IncidentId:77149


Initializing Email Service Client


Generating Email Request


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


--- Email response from Osmo-x is 201


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003104","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":"Cato Kwon"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/FBYDW/UAA/26/00001"},{"type":"text","text":"Safety Alert status updated to Validated., Comments are added as v"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"testing sa feom app"},{"type":"text","text":"Colver"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Brielle Duffey"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Validated"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/77149?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"INCIDENT_CLOSURE_NOTIFICATION_VALIDATION_2","EventArgs":[{"Key":"IncidentId","Value":77149},{"Key":"ClosedById","Value":5538}]}


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


### Started processing for Incident Closure Validation Level 2 Event ###


Generating report.


## Sending notification to EHS head user ##


## Notification to be send for these users: [5538]


## Sending email to Mozell Heaton, UserId : 5538 for Incident Closure Validation notification ##


Sending Incident Closure Validation Email for IncidentId:77149


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Safety Alert Validation For Closure


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


--- Email response from Osmo-x is 201


Sending Inform-To Update WhatsApp for IncidentId:77149


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000002528","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_validation_level_2_whatsapp_template_ttk_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Mozell Heaton"},{"type":"text","text":"Mozell Heaton"},{"type":"text","text":"T/FBYDW/UAA/26/00001"},{"type":"text","text":"15-Jul-2026 11:59:38 AM"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Colver"},{"type":"text","text":"Colver"},{"type":"text","text":"testing sa feom app"},{"type":"text","text":"Brielle Duffey"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/77149?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Sending Validation Push Notification for IncidentId:77149


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Test/23447333-0b60-334d-ab01-0aa29db3054f


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


### Ended processing Incident Closure Validation Level 2 Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":77149},{"Key":"IncidentHistoryId","Value":107437},{"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 Assigned To Whatsapp for IncidentId:77149


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000009689","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":"Brielle Duffey"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/FBYDW/UAA/26/00001"},{"type":"text","text":"Safety Alert status updated to Closed., Comments are added as c"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"testing sa feom app"},{"type":"text","text":"Colver"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Brielle Duffey"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Closed"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/77149?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


Sending Email for IncidentId:77149


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003104","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":"Cato Kwon"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/FBYDW/UAA/26/00001"},{"type":"text","text":"Safety Alert status updated to Closed., Comments are added as c"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"testing sa feom app"},{"type":"text","text":"Colver"},{"type":"text","text":"Unsafe Act"},{"type":"text","text":"Brielle Duffey"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Closed"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/77149?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


### Ended processing Update incident Event ###


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003468","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/BEAT/COM/BEAT/EL/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Electrical Work"},{"type":"text","text":"Robertsdale"},{"type":"text","text":"xyz"},{"type":"text","text":"Extension Requested by Randal Jessup for 5 hour(s) at 15-Jul-2026 12:03:42 PM"},{"type":"text","text":"Extension Review"},{"type":"text","text":"Elizabet Patty"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407924?orgID=204&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Executing sending push notification to the issuers for extended PTW


# Preparing notification body #


# Push Subject for Issuer P/BEAT/COM/BEAT/EL/26/00001


# string body Randal Jessup, 5 hour(s), P/BEAT/COM/BEAT/EL/26/00001


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"918888888882","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/BEAT/COM/BEAT/EL/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Electrical Work"},{"type":"text","text":"Robertsdale"},{"type":"text","text":"xyz"},{"type":"text","text":"Extension Reviewed by Elizabet Patty for 5 hour(s) at 15-Jul-2026 12:04:20 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407924?orgID=204&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007000","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/BEAT/COM/BEAT/EL/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Electrical Work"},{"type":"text","text":"Robertsdale"},{"type":"text","text":"xyz"},{"type":"text","text":"Extension Reviewed by Elizabet Patty for 5 hour(s) at 15-Jul-2026 12:04:20 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407924?orgID=204&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000776","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/BEAT/COM/BEAT/EL/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Electrical Work"},{"type":"text","text":"Robertsdale"},{"type":"text","text":"xyz"},{"type":"text","text":"Extension Reviewed by Elizabet Patty for 5 hour(s) at 15-Jul-2026 12:04:20 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407924?orgID=204&dlType=viewWorkPermit"}]}]}}}


# string body Elizabet Patty, 5 hour(s), P/BEAT/COM/BEAT/EL/26/00001


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"918888888882","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/BEAT/COM/BEAT/EL/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Electrical Work"},{"type":"text","text":"Robertsdale"},{"type":"text","text":"xyz"},{"type":"text","text":"cancelling . The status has changed to Cancelled."},{"type":"text","text":"Elizabet Patty at 15-Jul-2026 12:05:14 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407924?orgID=204&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007000","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/BEAT/COM/BEAT/EL/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Electrical Work"},{"type":"text","text":"Robertsdale"},{"type":"text","text":"xyz"},{"type":"text","text":"cancelling . The status has changed to Cancelled."},{"type":"text","text":"Elizabet Patty at 15-Jul-2026 12:05:14 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407924?orgID=204&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000776","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/BEAT/COM/BEAT/EL/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Electrical Work"},{"type":"text","text":"Robertsdale"},{"type":"text","text":"xyz"},{"type":"text","text":"cancelling . The status has changed to Cancelled."},{"type":"text","text":"Elizabet Patty at 15-Jul-2026 12:05:14 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407924?orgID=204&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003468","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/BEAT/COM/BEAT/EL/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Electrical Work"},{"type":"text","text":"Robertsdale"},{"type":"text","text":"xyz"},{"type":"text","text":"cancelling . The status has changed to Cancelled."},{"type":"text","text":"Elizabet Patty at 15-Jul-2026 12:05:14 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407924?orgID=204&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"918888888882","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/BEAT/COM/BEAT/EL/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Electrical Work"},{"type":"text","text":"Robertsdale"},{"type":"text","text":"xyz"},{"type":"text","text":"re approving . The status has changed to Re-Approved."},{"type":"text","text":"Elizabet Patty at 15-Jul-2026 12:05:34 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407924?orgID=204&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007000","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/BEAT/COM/BEAT/EL/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Electrical Work"},{"type":"text","text":"Robertsdale"},{"type":"text","text":"xyz"},{"type":"text","text":"re approving . The status has changed to Re-Approved."},{"type":"text","text":"Elizabet Patty at 15-Jul-2026 12:05:34 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407924?orgID=204&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000776","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/BEAT/COM/BEAT/EL/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Electrical Work"},{"type":"text","text":"Robertsdale"},{"type":"text","text":"xyz"},{"type":"text","text":"re approving . The status has changed to Re-Approved."},{"type":"text","text":"Elizabet Patty at 15-Jul-2026 12:05:34 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407924?orgID=204&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003468","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/BEAT/COM/BEAT/EL/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Electrical Work"},{"type":"text","text":"Robertsdale"},{"type":"text","text":"xyz"},{"type":"text","text":"re approving . The status has changed to Re-Approved."},{"type":"text","text":"Elizabet Patty at 15-Jul-2026 12:05:34 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407924?orgID=204&dlType=viewWorkPermit"}]}]}}}


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003104","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_task_assigned_to_notification_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Cato Kwon"},{"type":"text","text":"Action Tracker"},{"type":"text","text":"AT/FBYDW/ROO/MRA/26/00002"},{"type":"text","text":"at test 1 normal"},{"type":"text","text":"Machine Risk Assessment"},{"type":"text","text":"https://oqsha.com/#/tasks/edit/15257?dlType=viewTask&orgID=248"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Sending Task Assignment Email for TaskId: 15257, UserId: 5889


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


New Action Tracker Assigned - AT/FBYDW/ROO/MRA/26/00002


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


--- Email response from Osmo-x is 201


# Preparing notification body #


### End Event Execution ###


### Start Event Execution ###


Sending WhatsApp notification for task assignment to user ID: 6174


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000009689","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_task_assigned_to_notification_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Brielle Duffey"},{"type":"text","text":"Action Tracker"},{"type":"text","text":"AT/FBYDW/ROO/MRA/26/00003"},{"type":"text","text":"at for rejection"},{"type":"text","text":"Machine Risk Assessment"},{"type":"text","text":"https://oqsha.com/#/tasks/edit/15258?dlType=viewTask&orgID=248"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Checking for device existence #


# User device exists #


Sending Task Assignment Notification for Task Id:15258


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Test/23447333-0b60-334d-ab01-0aa29db3054f


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


# Push notification did not send #


Message : {"EventName":"TASK_CLOSURE_NOTIFICATION_VALIDATION_1","EventArgs":[{"Key":"TaskId","Value":15258},{"Key":"OrgId","Value":248}]}


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


### Started processing for Task Closure Validation Level 1 Event ###


## Sending notification to Site EHS user ##


## Notification to be send for these users: []


### Ended processing Incident Closure Validation Level 1 Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"TASK_CLOSURE_NOTIFICATION_VALIDATION_1","EventArgs":[{"Key":"TaskId","Value":15257},{"Key":"OrgId","Value":248}]}


Message : {"EventName":"INFORM_TO_INCIDENT_CREATION_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":77150},{"Key":"InformToUserId","Value":5532}]}


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000008275","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":"Lesia Hardman"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/FBYDW/UCC/26/00001"},{"type":"text","text":"bui"},{"type":"text","text":"Colver"},{"type":"text","text":"Unsafe Condition"},{"type":"text","text":"Cato Kwon"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Open"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/77150?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Generating Safety Alert report.


Converted to byte file


## Safety Alert Email Sent to Lesia Hardman##


Sending Inform-To Email (with Safety Alert PDF) for IncidentId: 77150


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Safety Alert T/FBYDW/UCC/26/00001 has been created


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


--- Email response from Osmo-x is 201


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


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


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":77150},{"Key":"AssignedToID","Value":6174}]}


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


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


Converted to byte file


PDF generation successfull


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


Sending Assigned To Whatsapp for IncidentId:77150


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000009689","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":"Brielle Duffey"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/FBYDW/UCC/26/00001"},{"type":"text","text":"bui"},{"type":"text","text":"Colver"},{"type":"text","text":"Unsafe Condition"},{"type":"text","text":"Cato Kwon"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/77150?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


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


### End Event Execution ###


### Start Event Execution ###


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


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Safety Alert T/FBYDW/UCC/26/00001 has been updated


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


--- Email response from Osmo-x is 201


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003104","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":"Cato Kwon"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/FBYDW/UCC/26/00001"},{"type":"text","text":"Safety Alert status updated to Assigned"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"bui"},{"type":"text","text":"Colver"},{"type":"text","text":"Unsafe Condition"},{"type":"text","text":"Cato Kwon"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/77150?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"TASK_CLOSURE_NOTIFICATION_VALIDATION_2","EventArgs":[{"Key":"TaskId","Value":15257},{"Key":"OrgId","Value":248}]}


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


### Started processing for Task Closure Validation Level 2 Event ###


## Sending notification to EHS head user ##


## Notification to be send for these users: []


### Ended processing Incident Closure Validation Level 2 Event ###


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000009689","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_task_assigned_to_notification_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Brielle Duffey"},{"type":"text","text":"Action Tracker"},{"type":"text","text":"AT/FBYDW/ROO/MRA/26/00003"},{"type":"text","text":"at for rejection"},{"type":"text","text":"Machine Risk Assessment"},{"type":"text","text":"https://oqsha.com/#/tasks/edit/15258?dlType=viewTask&orgID=248"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Message : {"EventName":"TASK_CLOSURE_NOTIFICATION_VALIDATION_1","EventArgs":[{"Key":"TaskId","Value":15258},{"Key":"OrgId","Value":248}]}


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


### Started processing for Task Closure Validation Level 1 Event ###


## Sending notification to Site EHS user ##


### Ended processing Incident Closure Validation Level 1 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 407925


Osmo-x WhatsApp Message has been Sent


Executing sending push notification to the issuers


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


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending notification for permit to work: 407925


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/61cc82d0-ddca-3b4b-8212-273e4ef76ca6


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


# Push notification did not send #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/ecb1c121-66ee-3f22-abfe-098416a8e1c6


Push notification failed to send to a device 6555.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/5953bebd-88e7-3670-8b80-f3871c4ebad7


Push notification failed to send to a device 6917.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/7dd44d4e-a135-363b-b274-1d3ea54ec3bc


Push notification failed to send to a device 9992.


# Checking for device existence #


# User device exists #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/7755e722-9df3-3eec-a825-1ed468e48bb0


Push notification failed to send to a device 10028.


Generating AWS SNS Request