Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/1c36f791-b894-3fbd-a0e5-fdf10cdbdc2f


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


# Push notification did not send #


# 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/2ff594ec-a8fd-332b-96c4-52c3dd909b4a


Push notification failed to send to a device 7207.


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


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/00002"},{"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 12:12:08 PM"},{"type":"text","text":"Issue"},{"type":"text","text":"Ana Osborn"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Executing sending push notification to the issuers


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


# Preparing notification body #


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


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000090","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/00002"},{"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 12:13:56 PM"},{"type":"text","text":"Approve"},{"type":"text","text":"Butler Christy"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


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


# 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


### End Event Execution ###


### Start Event Execution ###


Osmo-x WhatsApp Message has been Sent


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


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


# Preparing notification body #


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


# string body 31-Jul-2026, Neppie Traynor,


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001459","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/00002"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Approved by Butler Christy at 15-Jul-2026 12:15:27 PM"},{"type":"text","text":"Review"},{"type":"text","text":"Demetri Noyes"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


# Checking for device existence #


# User device exists #


Sending notification for permit to work: 407926


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/d3f5384a-fd93-3c7c-bee5-92d5296b4775


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


# Push notification did not send #


Inside SendAppNotification Device Type: APNS


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


Push notification failed to send to a device 23291.


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


Osmo-x WhatsApp Message has been Sent


Message : {"EventName":"TASK_CLOSURE_NOTIFICATION_VALIDATION_2","EventArgs":[{"Key":"TaskId","Value":15258},{"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_ALL_EXCEPT_REVIEWER ###


# Calling SendNotificationToAllExceptReviewer function for whatsapp and push notification #


User Ids for notification: [1855,1861,4243,4244,4459,4504,4516,4518,4583,4594,4690,4691,4806,5106,5111,20370]


Starting Execution for whatsapp notification for all


Sending notification to requester regarding permit to work 407926


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001644","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/HUBG/TFX/AIP/CW/26/00002"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Reviewed by Demetri Noyes at 15-Jul-2026 12:19:45 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000005063","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/HUBG/TFX/AIP/CW/26/00002"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Reviewed by Demetri Noyes at 15-Jul-2026 12:19:45 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000006623","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/HUBG/TFX/AIP/CW/26/00002"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Reviewed by Demetri Noyes at 15-Jul-2026 12:19:45 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001717","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/HUBG/TFX/AIP/CW/26/00002"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Reviewed by Demetri Noyes at 15-Jul-2026 12:19:45 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"915555559247","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/HUBG/TFX/AIP/CW/26/00002"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Reviewed by Demetri Noyes at 15-Jul-2026 12:19:45 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000010247","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/HUBG/TFX/AIP/CW/26/00002"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Reviewed by Demetri Noyes at 15-Jul-2026 12:19:45 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000959","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/HUBG/TFX/AIP/CW/26/00002"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Reviewed by Demetri Noyes at 15-Jul-2026 12:19:45 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007577","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/HUBG/TFX/AIP/CW/26/00002"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Reviewed by Demetri Noyes at 15-Jul-2026 12:19:45 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003340","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/HUBG/TFX/AIP/CW/26/00002"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Reviewed by Demetri Noyes at 15-Jul-2026 12:19:45 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000337","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/HUBG/TFX/AIP/CW/26/00002"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Reviewed by Demetri Noyes at 15-Jul-2026 12:19:45 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000734","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/HUBG/TFX/AIP/CW/26/00002"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Reviewed by Demetri Noyes at 15-Jul-2026 12:19:45 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003805","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/HUBG/TFX/AIP/CW/26/00002"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Reviewed by Demetri Noyes at 15-Jul-2026 12:19:45 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003712","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/HUBG/TFX/AIP/CW/26/00002"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Reviewed by Demetri Noyes at 15-Jul-2026 12:19:45 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000884","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/HUBG/TFX/AIP/CW/26/00002"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Reviewed by Demetri Noyes at 15-Jul-2026 12:19:45 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000090","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/HUBG/TFX/AIP/CW/26/00002"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Reviewed by Demetri Noyes at 15-Jul-2026 12:19:45 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"915555556364","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/HUBG/TFX/AIP/CW/26/00002"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"Cold work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Reviewed by Demetri Noyes at 15-Jul-2026 12:19:45 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407926?orgID=207&dlType=viewWorkPermit"}]}]}}}


Starting Execution for push notification for all


# Preparing notification body #


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


# string body 15-Jul-2026, Demetri Noyes, P/HUBG/TFX/AIP/CW/26/00002, 15-Jul-2026


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


Osmo-x WhatsApp Message has been Sent


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


Sending whatsapp message:


RequestBody: {  "providerId": 48,  "data": {    "to": "919999999999",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_ptw_history_image_v2",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"header","parameters":[{"type":"image","text":null,"image":{"link":"https://api.oqsha.in/attachments\\232\\permit-to-work-history\\IMG20260715WA0004_3d530936-3db0-4398-8552-5e70e28425a6.jpg"},"document":null,"video":null}]},{"type":"body","parameters":[{"type":"text","text":"P/MIRA/FCP/YI/CS/26/00001","image":null,"document":null,"video":null},{"type":"text","text":"31-Jul-2026","image":null,"document":null,"video":null},{"type":"text","text":"Confined Space","image":null,"document":null,"video":null},{"type":"text","text":"Rio","image":null,"document":null,"video":null},{"type":"text","text":" ","image":null,"document":null,"video":null},{"type":"text","text":"gallery testing .","image":null,"document":null,"video":null},{"type":"text","text":"Sincere Kidwell at 15-Jul-2026 12:23:17 PM","image":null,"document":null,"video":null},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407925?orgID=232&dlType=viewWorkPermit","image":null,"document":null,"video":null}]}]    }   }}


RequestBody: {  "providerId": 48,  "data": {    "to": "912000010468",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_ptw_history_image_v2",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"header","parameters":[{"type":"image","text":null,"image":{"link":"https://api.oqsha.in/attachments\\232\\permit-to-work-history\\IMG20260715WA0004_3d530936-3db0-4398-8552-5e70e28425a6.jpg"},"document":null,"video":null}]},{"type":"body","parameters":[{"type":"text","text":"P/MIRA/FCP/YI/CS/26/00001","image":null,"document":null,"video":null},{"type":"text","text":"31-Jul-2026","image":null,"document":null,"video":null},{"type":"text","text":"Confined Space","image":null,"document":null,"video":null},{"type":"text","text":"Rio","image":null,"document":null,"video":null},{"type":"text","text":" ","image":null,"document":null,"video":null},{"type":"text","text":"gallery testing .","image":null,"document":null,"video":null},{"type":"text","text":"Sincere Kidwell at 15-Jul-2026 12:23:17 PM","image":null,"document":null,"video":null},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407925?orgID=232&dlType=viewWorkPermit","image":null,"document":null,"video":null}]}]    }   }}


RequestBody: {  "providerId": 48,  "data": {    "to": "912000001909",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_ptw_history_image_v2",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"header","parameters":[{"type":"image","text":null,"image":{"link":"https://api.oqsha.in/attachments\\232\\permit-to-work-history\\IMG20260715WA0004_3d530936-3db0-4398-8552-5e70e28425a6.jpg"},"document":null,"video":null}]},{"type":"body","parameters":[{"type":"text","text":"P/MIRA/FCP/YI/CS/26/00001","image":null,"document":null,"video":null},{"type":"text","text":"31-Jul-2026","image":null,"document":null,"video":null},{"type":"text","text":"Confined Space","image":null,"document":null,"video":null},{"type":"text","text":"Rio","image":null,"document":null,"video":null},{"type":"text","text":" ","image":null,"document":null,"video":null},{"type":"text","text":"gallery testing .","image":null,"document":null,"video":null},{"type":"text","text":"Sincere Kidwell at 15-Jul-2026 12:23:17 PM","image":null,"document":null,"video":null},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407925?orgID=232&dlType=viewWorkPermit","image":null,"document":null,"video":null}]}]    }   }}


RequestBody: {  "providerId": 48,  "data": {    "to": "917777777771",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_ptw_history_image_v2",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"header","parameters":[{"type":"image","text":null,"image":{"link":"https://api.oqsha.in/attachments\\232\\permit-to-work-history\\IMG20260715WA0004_3d530936-3db0-4398-8552-5e70e28425a6.jpg"},"document":null,"video":null}]},{"type":"body","parameters":[{"type":"text","text":"P/MIRA/FCP/YI/CS/26/00001","image":null,"document":null,"video":null},{"type":"text","text":"31-Jul-2026","image":null,"document":null,"video":null},{"type":"text","text":"Confined Space","image":null,"document":null,"video":null},{"type":"text","text":"Rio","image":null,"document":null,"video":null},{"type":"text","text":" ","image":null,"document":null,"video":null},{"type":"text","text":"gallery testing .","image":null,"document":null,"video":null},{"type":"text","text":"Sincere Kidwell at 15-Jul-2026 12:23:17 PM","image":null,"document":null,"video":null},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407925?orgID=232&dlType=viewWorkPermit","image":null,"document":null,"video":null}]}]    }   }}


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


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


# Preparing notification body #


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


# string body 31-Jul-2026, Neppie Traynor,


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


# Push notification did not send #


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendNotificationToAllExceptReviewer function for whatsapp and push notification #


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


Starting Execution for whatsapp notification for all


Sending notification to requester regarding permit to work 407925


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


Osmo-x WhatsApp Message has been Sent


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


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


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


Starting Execution for push notification for all


# Preparing notification body #


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


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


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","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/MIRA/FCP/YI/CS/26/00001"},{"type":"text","text":"31-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"testing . The status has changed to Cancelled."},{"type":"text","text":"Sincere Kidwell at 15-Jul-2026 12:24:19 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407925?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"919999999999","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_history_comments_latest_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/CS/26/00001"},{"type":"text","text":"31-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"testing . The status has changed to Cancelled."},{"type":"text","text":"Sincere Kidwell at 15-Jul-2026 12:24:19 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407925?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000010468","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_history_comments_latest_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/CS/26/00001"},{"type":"text","text":"31-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"testing . The status has changed to Cancelled."},{"type":"text","text":"Sincere Kidwell at 15-Jul-2026 12:24:19 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407925?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001909","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_history_comments_latest_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/CS/26/00001"},{"type":"text","text":"31-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"testing . The status has changed to Cancelled."},{"type":"text","text":"Sincere Kidwell at 15-Jul-2026 12:24:19 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407925?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"917777777771","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_history_comments_latest_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/CS/26/00001"},{"type":"text","text":"31-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"testing . The status has changed to Cancelled."},{"type":"text","text":"Sincere Kidwell at 15-Jul-2026 12:24:19 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407925?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_history_comments_latest_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/CS/26/00001"},{"type":"text","text":"31-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"reappraisal testing . The status has changed to Re-Approved."},{"type":"text","text":"Sincere Kidwell at 15-Jul-2026 12:24:33 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407925?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"919999999999","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_history_comments_latest_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/CS/26/00001"},{"type":"text","text":"31-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"reappraisal testing . The status has changed to Re-Approved."},{"type":"text","text":"Sincere Kidwell at 15-Jul-2026 12:24:33 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407925?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000010468","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_history_comments_latest_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/CS/26/00001"},{"type":"text","text":"31-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"reappraisal testing . The status has changed to Re-Approved."},{"type":"text","text":"Sincere Kidwell at 15-Jul-2026 12:24:33 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407925?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001909","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_history_comments_latest_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/CS/26/00001"},{"type":"text","text":"31-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"reappraisal testing . The status has changed to Re-Approved."},{"type":"text","text":"Sincere Kidwell at 15-Jul-2026 12:24:33 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407925?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"917777777771","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_history_comments_latest_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/CS/26/00001"},{"type":"text","text":"31-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"reappraisal testing . The status has changed to Re-Approved."},{"type":"text","text":"Sincere Kidwell at 15-Jul-2026 12:24:33 PM"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407925?orgID=232&dlType=viewWorkPermit"}]}]}}}


Message : {"EventName":"NOTIFICATION_FOR_WORK_PERMIT_CREATION","EventArgs":[{"Key":"WorkPermitId","Value":"3202"},{"Key":"ApproverIds","Value":"[5532]"},{"Key":"SiteName","Value":"Colver"},{"Key":"CreatedBy","Value":"Lesia Hardman"},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/CSE/26/00001"},{"Key":"OrgId","Value":248},{"Key":"OrganisationName","Value":"Falcon's Beyond Global Inc. Warrants"}]}


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


# Calling SendNotificationForWorkPermitCreation function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers


Sending WorkPermit creation email to: osm06983@osmosys.co


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


New Work Permit Assigned

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


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


--- Email response from Osmo-x is 201


Sending WorkPermit creation WhatsApp message to: 912000008275


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


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending Assigned To Notification for Work Permit Id:3202


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


# Push notification did not send #


### End Event Execution ###


### Start Event Execution ###


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


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


# Calling SendDepartmentInchargeNotificationForWorkPermitCreation function for email/WhatsApp #


Sending WorkPermit creation email to:


Error occurred while sending email using Osmo-x.


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


Sending WorkPermit creation WhatsApp message to: 912000002899


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


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


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


# Calling SendNotificationToRequestorForWorkPermitRejectionfunction for email/WhatsApp #


Executing email and WhatsApp notifications for WorkPermit rejection to requestor


Sending WorkPermit rejection email to: osm06983@osmosys.co


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Work Permit Rejected


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


--- Email response from Osmo-x is 201


Sending WorkPermit rejection WhatsApp message to: 912000008275


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


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"NOTIFICATION_FOR_WORK_PERMIT_CREATION","EventArgs":[{"Key":"WorkPermitId","Value":"3202"},{"Key":"ApproverIds","Value":"[5532]"},{"Key":"SiteName","Value":"Colver"},{"Key":"CreatedBy","Value":"Lesia Hardman"},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/CSE/26/00001"},{"Key":"OrgId","Value":248},{"Key":"OrganisationName","Value":"Falcon's Beyond Global Inc. Warrants"}]}


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


# Calling SendNotificationForWorkPermitCreation function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers


Sending WorkPermit creation email to: osm06983@osmosys.co


New Work Permit Assigned


Sending WorkPermit creation WhatsApp message to: 912000008275


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


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


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


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


# Calling SendDepartmentInchargeNotificationForWorkPermitCreation function for email/WhatsApp #


Sending WorkPermit creation email to:


Error occurred while sending email using Osmo-x.


Object reference not set to an instance of an object.


Sending WorkPermit creation WhatsApp message to: 912000002899


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


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"WORK_PERMIT_APPROVED_INFORM_TO_CREATOR_NOTIFICATION","EventArgs":[{"Key":"CreatorId","Value":"5532"},{"Key":"ApproverName","Value":"Lesia Hardman"},{"Key":"WorkPermitId","Value":"3202"},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/CSE/26/00001"},{"Key":"SiteName","Value":"Colver"},{"Key":"OrganisationName","Value":"Falcon's Beyond Global Inc. Warrants"},{"Key":"StatusPastTenseName","Value":"Approved"},{"Key":"ApprovedOn","Value":"15-Jul-2026 12:27:42 PM"},{"Key":"OrgId","Value":248}]}


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


# Calling SendWorkPermitApprovedInformToCreatorNotification function for email #


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


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


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Lesia Hardman has Approved your Work Permit


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


--- Email response from Osmo-x is 201


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


Sending WhatsApp for WorkPermit to user: 5532


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


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendWorkPermitApprovalInvitationNotification function for email/WhatsApp #


Executing email notifications to WorkPermit Approvers about the Pending approval


A Work Permit is awaiting your Approval


Executing whatsapp notifications to WorkPermit Approvers about the Pending approval


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


Message : {"EventName":"WORK_PERMIT_APPROVED_INFORM_TO_CREATOR_NOTIFICATION","EventArgs":[{"Key":"CreatorId","Value":"5532"},{"Key":"ApproverName","Value":"Lesia Hardman"},{"Key":"WorkPermitId","Value":"3202"},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/CSE/26/00001"},{"Key":"SiteName","Value":"Colver"},{"Key":"OrganisationName","Value":"Falcon's Beyond Global Inc. Warrants"},{"Key":"StatusPastTenseName","Value":"Approved"},{"Key":"ApprovedOn","Value":"15-Jul-2026 12:27:53 PM"},{"Key":"OrgId","Value":248}]}


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":"912000008275","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_approved_inform_to_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Lesia Hardman"},{"type":"text","text":"Lesia Hardman"},{"type":"text","text":"Approved"},{"type":"text","text":"WP/FBYDW/ROO/CSE/26/00001"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"15-Jul-2026 12:27:53 PM"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/3202?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Sending WhatsApp for WorkPermit to user: 5889


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


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


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


Executing sending push notification to the issuers


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


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


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


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


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


Object reference not set to an instance of an object.


### End Event Execution ###


### Start Event Execution ###


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


Osmo-x WhatsApp Message has been Sent


# 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: [3978,4048,4055,4586,881]


Starting Execution for whatsapp notification for all


Sending notification to requester regarding permit to work 407927


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


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


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


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


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


Starting Execution for push notification for all


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


# string body 15-Jul-2026, Sincere Kidwell, P/MIRA/FCP/YI/GW/26/00001, 15-Jul-2026


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendNotificationToIssuersForExtensionPTW function for whatsapp and push notification #


Executing sending notification to issuers for extended PTW through whatsapp


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/GW/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"General Work"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Extension Requested by Sincere Kidwell for 2 hour(s) at 15-Jul-2026 12:29:22 PM"},{"type":"text","text":"Extension Accept"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407927?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Executing sending push notification to the issuers for extended PTW


# Preparing notification body #


# string body Sincere Kidwell, 2 hour(s), P/MIRA/FCP/YI/GW/26/00001


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


# Calling SendNotificationToEitherReviewerOrApproverForExtendedPTW function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


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


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


# string body Sincere Kidwell, 2 hour(s), P/MIRA/FCP/YI/GW/26/00001,,


### End Event Execution ###


### Start Event Execution ###


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


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


# string body Sincere Kidwell, 2 hour(s), P/MIRA/FCP/YI/GW/26/00001,Sincere Kidwell,


Message : {"EventName":"WORK_PERMIT_APPROVED_INFORM_TO_CREATOR_NOTIFICATION","EventArgs":[{"Key":"CreatorId","Value":"5532"},{"Key":"ApproverName","Value":"Cato Kwon"},{"Key":"WorkPermitId","Value":"3202"},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/CSE/26/00001"},{"Key":"SiteName","Value":"Colver"},{"Key":"OrganisationName","Value":"Falcon's Beyond Global Inc. Warrants"},{"Key":"StatusPastTenseName","Value":"Approved"},{"Key":"ApprovedOn","Value":"15-Jul-2026 12:30:01 PM"},{"Key":"OrgId","Value":248}]}


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


# Calling SendWorkPermitApprovedInformToCreatorNotification function for email #


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


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


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Cato Kwon has Approved your Work Permit


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


--- Email response from Osmo-x is 201


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


Sending WhatsApp for WorkPermit to user: 5532


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000008275","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_approved_inform_to_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":"Approved"},{"type":"text","text":"WP/FBYDW/ROO/CSE/26/00001"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"15-Jul-2026 12:30:01 PM"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/3202?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"WORK_PERMIT_APPROVED_INFORM_TO_ROLES_NOTIFICATION","EventArgs":[{"Key":"UserId","Value":"6713"},{"Key":"WorkPermitId","Value":"3202"},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/CSE/26/00001"},{"Key":"SiteName","Value":"Colver"},{"Key":"OrganisationName","Value":"Falcon's Beyond Global Inc. Warrants"},{"Key":"ApprovedOn","Value":"15-Jul-2026 12:30:01 PM"},{"Key":"OrgId","Value":248}]}


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


Executing email notifications to Role Based User about the approval of Work Permit by an Approver


Sending WorkPermit Approver Clarification email to Role Based user:


Error occurred while sending email using Osmo-x.


Object reference not set to an instance of an object.


Executing whatsapp notifications to Role based User about the approval of Work Permit by an Approver


Sending WhatsApp for WorkPermit to user: 6713


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000002899","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_approved_inform_to_user","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Baldwin Miley"},{"type":"text","text":"WP/FBYDW/ROO/CSE/26/00001"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"15-Jul-2026 12:30:01 PM"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/3202?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


MySql.Data.MySqlClient.MySqlException (0x80004005): Column 'notification_body' cannot be null
   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
   at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)
   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   at Dapper.SqlMapper.ExecuteImpl(IDbConnection cnn, CommandDefinition& command)
   at IncidentReporter.DAL.Repositories.NotificationsRepo.BulkInsertUserModuleNotification(IEnumerable`1 userNotifications) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\NotificationsRepo.cs:line 1041
   at IncidentReporter.NotificationSender.Helpers.AddUserModuleNotificationHelper.AddUserModuleNotification(Int32 orgId, Int32 entityId, List`1 userIds, Dictionary`2 userTemplateContent, Int32 acmModuleId, UserModuleNotificationType notificationType, Int32 createdById, String conn, String viewLink) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\Helpers\AddUserModuleNotificationHelper.cs:line 125
   at IncidentReporter.NotificationSender.DAL.Events.Notifier.SendWorkPermitApprovedInformToRolesNotification(String userId, String workPermitId, String workPermitUid, String siteName, String organisationName, String approvedOn, Int64 orgId) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\Notifier.cs:line 15079
   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 1771


Message : {"EventName":"WORK_PERMIT_APPROVED_CONTRACTOR_SUPERVISOR_NOTIFICATION","EventArgs":[{"Key":"WorkPermitId","Value":"3202"},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/CSE/26/00001"},{"Key":"SiteName","Value":"Colver"},{"Key":"OrganisationName","Value":"Falcon's Beyond Global Inc. Warrants"},{"Key":"ApprovedOn","Value":"15-Jul-2026 12:30:01 PM"},{"Key":"OrgId","Value":248}]}


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


# Calling SendWorkPermitApprovedInformToCreatorNotification function for email #


Executing email notifications to Contractor Supervisor about the approval of Work Permit by all Approver


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/GW/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"General Work"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Extension Approved by Sincere Kidwell for 2 hour(s) at 15-Jul-2026 12:30:02 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407927?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"919999999999","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/GW/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"General Work"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Extension Approved by Sincere Kidwell for 2 hour(s) at 15-Jul-2026 12:30:02 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407927?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000010468","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/GW/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"General Work"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Extension Approved by Sincere Kidwell for 2 hour(s) at 15-Jul-2026 12:30:02 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407927?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001909","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/GW/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"General Work"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Extension Approved by Sincere Kidwell for 2 hour(s) at 15-Jul-2026 12:30:02 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407927?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"917777777771","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/GW/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"General Work"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Extension Approved by Sincere Kidwell for 2 hour(s) at 15-Jul-2026 12:30:02 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407927?orgID=232&dlType=viewWorkPermit"}]}]}}}


# Preparing notification body #


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


# string body Sincere Kidwell, 2 hour(s), P/MIRA/FCP/YI/GW/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 407927


Message : {"EventName":"WORK_PERMIT_EXTENSION_INFORMATION_NOTIFICATION","EventArgs":[{"Key":"UserIds","Value":"[5532,5889,6713]"},{"Key":"InitiatorName","Value":"Lesia Hardman"},{"Key":"ExtensionHours","Value":2},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/CSE/26/00001"},{"Key":"SiteName","Value":"Colver"},{"Key":"OrganisationName","Value":"Falcon's Beyond Global Inc. Warrants"},{"Key":"ExtensionTakenOn","Value":"15-Jul-2026 12:30:54 PM"},{"Key":"WorkPermitId","Value":"3202"},{"Key":"OrgId","Value":248}]}


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


# Calling SendWorkPermitApprovalInvitationNotification function for email/WhatsApp #


Executing email notifications to WorkPermit Approvers about the Extension Information


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Work Permit has been Extended


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


--- Email response from Osmo-x is 201


Executing whatsapp notifications to WorkPermit Approvers about the Extension Information


Sending WhatsApp for WorkPermit to user: 5532


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


Osmo-x WhatsApp Message has been Sent


Sending WhatsApp for WorkPermit to user: 5889


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003104","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_workpermit_approver_notification","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Cato Kwon"},{"type":"text","text":"Lesia Hardman"},{"type":"text","text":"2"},{"type":"text","text":"WP/FBYDW/ROO/CSE/26/00001"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"15-Jul-2026 12:30:54 PM"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/3202?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Error occurred while sending email using Osmo-x.


Object reference not set to an instance of an object.


Sending WhatsApp for WorkPermit to user: 6713


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000002899","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_workpermit_approver_notification","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Baldwin Miley"},{"type":"text","text":"Lesia Hardman"},{"type":"text","text":"2"},{"type":"text","text":"WP/FBYDW/ROO/CSE/26/00001"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"15-Jul-2026 12:30:54 PM"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/3202?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending Extension Information Notification for Work Permit Id:3202


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


# Push notification did not send #


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"WORK_PERMIT_EXTENSION_HANDOVER_NOTIFICATION","EventArgs":[{"Key":"UserId","Value":6694},{"Key":"WorkPermitId","Value":"3202"},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/CSE/26/00001"},{"Key":"SiteName","Value":"Colver"},{"Key":"OrganisationName","Value":"Falcon's Beyond Global Inc. Warrants"},{"Key":"ExtensionTakenOn","Value":"15-Jul-2026 12:30:54 PM"},{"Key":"OrgId","Value":248}]}


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


# Calling SendWorkPermitApprovedInformToCreatorNotification function for email #


Executing email notifications to WorkPermit Extension Handover


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


Sending WhatsApp for WorkPermit Extension to user: 6694


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000010646","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_handover_template","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Anais Miley"},{"type":"text","text":"WP/FBYDW/ROO/CSE/26/00001"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"15-Jul-2026 12:30:54 PM"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/3202?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


MySql.Data.MySqlClient.MySqlException (0x80004005): Column 'notification_body' cannot be null
   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
   at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)
   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   at Dapper.SqlMapper.ExecuteImpl(IDbConnection cnn, CommandDefinition& command)
   at IncidentReporter.DAL.Repositories.NotificationsRepo.BulkInsertUserModuleNotification(IEnumerable`1 userNotifications) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\NotificationsRepo.cs:line 1041
   at IncidentReporter.NotificationSender.Helpers.AddUserModuleNotificationHelper.AddUserModuleNotification(Int32 orgId, Int32 entityId, List`1 userIds, Dictionary`2 userTemplateContent, Int32 acmModuleId, UserModuleNotificationType notificationType, Int32 createdById, String conn, String viewLink) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\Helpers\AddUserModuleNotificationHelper.cs:line 125
   at IncidentReporter.NotificationSender.DAL.Events.Notifier.SendWorkPermitExtensionHandoverInformationNotification(Int64 userId, String workPermitId, String workPermitUid, String siteName, String organisationName, String extensionTakenOn, Int64 orgId) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\Notifier.cs:line 16255
   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 1928


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/GW/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"General Work"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Extension Requested by Sincere Kidwell for 3 hour(s) at 15-Jul-2026 12:30:59 PM"},{"type":"text","text":"Extension Accept"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407927?orgID=232&dlType=viewWorkPermit"}]}]}}}


Executing sending push notification to the issuers for extended PTW


# Preparing notification body #


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


# string body Sincere Kidwell, 3 hour(s), P/MIRA/FCP/YI/GW/26/00001


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendNotificationToEitherReviewerOrApproverForExtendedPTW function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


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


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


Osmo-x WhatsApp Message has been Sent


# string body Sincere Kidwell, 3 hour(s), P/MIRA/FCP/YI/GW/26/00001,,


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


# Calling SendNotificationToApproversForWorkPermitStatusChange function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers


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


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Work Permit Status Updated


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


--- Email response from Osmo-x is 201


Sending WorkPermit status change WhatsApp message to: 912000008275


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


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


Sending WorkPermit status change WhatsApp message to: 912000003104


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


Osmo-x WhatsApp Message has been Sent


Sending WorkPermit status change email to:


Error occurred while sending email using Osmo-x.


Object reference not set to an instance of an object.


Sending WorkPermit status change WhatsApp message to: 912000002899


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


# Preparing notification body #


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendNotificationToEitherReviewerOrApproverForExtendedPTW function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


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


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


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


# string body Sincere Kidwell, 3 hour(s), P/MIRA/FCP/YI/GW/26/00001,Sincere Kidwell,


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/GW/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"General Work"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Extension Approved by Sincere Kidwell for 3 hour(s) at 15-Jul-2026 12:31:21 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407927?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"919999999999","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/GW/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"General Work"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Extension Approved by Sincere Kidwell for 3 hour(s) at 15-Jul-2026 12:31:21 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407927?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000010468","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/GW/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"General Work"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Extension Approved by Sincere Kidwell for 3 hour(s) at 15-Jul-2026 12:31:21 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407927?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001909","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/GW/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"General Work"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Extension Approved by Sincere Kidwell for 3 hour(s) at 15-Jul-2026 12:31:21 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407927?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"917777777771","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/MIRA/FCP/YI/GW/26/00001"},{"type":"text","text":"15-Jul-2026"},{"type":"text","text":"General Work"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Extension Approved by Sincere Kidwell for 3 hour(s) at 15-Jul-2026 12:31:21 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/407927?orgID=232&dlType=viewWorkPermit"}]}]}}}


# Preparing notification body #


# string body Sincere Kidwell, 3 hour(s), P/MIRA/FCP/YI/GW/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 407927