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


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


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


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


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


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


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


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


# Calling SendNotificationToAllExceptReviewer function for whatsapp and push notification #


User Ids for notification: [1955,4014,5092]


Starting Execution for whatsapp notification for all


Sending notification to requester regarding permit to work 376795


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000713","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Authorized by Adelina Chesnut at 06-Jun-2026 11:59:55 AM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000004800","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Authorized by Adelina Chesnut at 06-Jun-2026 11:59:55 AM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000006753","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Authorized by Adelina Chesnut at 06-Jun-2026 11:59:55 AM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000004800","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Extension Requested by Renard Whatley for 2 hour(s) at 06-Jun-2026 12:01:37 PM"},{"type":"text","text":"Extension Approve"},{"type":"text","text":"Adalberto Kaufmann"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000006753","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Extension Requested by Renard Whatley for 2 hour(s) at 06-Jun-2026 12:01:37 PM"},{"type":"text","text":"Extension Approve"},{"type":"text","text":"Adalberto Kaufmann"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000713","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Extension Approved by Adalberto Kaufmann for 2 hour(s) at 06-Jun-2026 12:02:46 PM"},{"type":"text","text":"Extension Authorize"},{"type":"text","text":"Adelina Chesnut"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000008412","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Extension Approved by Adalberto Kaufmann for 2 hour(s) at 06-Jun-2026 12:02:46 PM"},{"type":"text","text":"Extension Authorize"},{"type":"text","text":"Adelina Chesnut"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000006753","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Extension Approved by Adalberto Kaufmann for 2 hour(s) at 06-Jun-2026 12:02:46 PM"},{"type":"text","text":"Extension Authorize"},{"type":"text","text":"Adelina Chesnut"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendNotificationToAllExceptReviewerForExtendedPTW function for  whatsapp and push notification #


Starting Execution for whatsapp notification for all


Sending notification to requester regarding permit to work 376795


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000713","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Extension Authorized by Adelina Chesnut for 2 hour(s) at 06-Jun-2026 12:03:27 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000004800","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Extension Authorized by Adelina Chesnut for 2 hour(s) at 06-Jun-2026 12:03:27 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000006753","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Extension Authorized by Adelina Chesnut for 2 hour(s) at 06-Jun-2026 12:03:27 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


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


# Calling SendNotificationToEitherReviewerOrApprover function for  whatsapp and push notification #


Sending notification to approver of the comapny regarding permit to work


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


# Calling SendNotificationForPTWRejectedStatus function for whatsapp and push notification #


Executing sending notification for rejection status through whatsapp


Sending notification for rejection status regarding permit to work with Id: 376732


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000004855","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":"OU2M0Z"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Night Work"},{"type":"text","text":"Cowgill"},{"type":"text","text":"Tower-8"},{"type":"text","text":"Rejected by Adelina Chesnut at 06-Jun-2026 12:07:14 PM. Reason- my wish"},{"type":"text","text":"Request Again"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376732?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000004206","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":"OU2M0Z"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Night Work"},{"type":"text","text":"Cowgill"},{"type":"text","text":"Tower-8"},{"type":"text","text":"Rejected by Adelina Chesnut at 06-Jun-2026 12:07:14 PM. Reason- my wish"},{"type":"text","text":"Request Again"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376732?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"915555557891","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":"OU2M0Z"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Night Work"},{"type":"text","text":"Cowgill"},{"type":"text","text":"Tower-8"},{"type":"text","text":"Rejected by Adelina Chesnut at 06-Jun-2026 12:07:14 PM. Reason- my wish"},{"type":"text","text":"Request Again"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376732?orgID=211&dlType=viewWorkPermit"}]}]}}}


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


System.NullReferenceException: Object reference not set to an instance of an object.
   at IncidentReporter.NotificationSender.DAL.Events.Notifier.SendNotificationForPTWHistory(Int64 ptwId, Int64 orgId, String stringUserIds, String historyCreatedUserDisplayName, String permitToWorkUID, String siteName, String jobType, String startDate, String commentedOnTime, Int64 ptwHistoryId, String workLocation, String modeOfNotifications) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\Notifier.cs:line 4274
   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 599


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


# Calling SendNotificationOfValidationRequestedToAllExceptRequester function for whatsapp and push notification #


Executing sending notification to issuers through whatsapp


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000713","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Validation Requested by Renard Whatley at 06-Jun-2026 12:52:08 PM"},{"type":"text","text":"Validation Approve"},{"type":"text","text":"Adalberto Kaufmann"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000008412","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Validation Requested by Renard Whatley at 06-Jun-2026 12:52:08 PM"},{"type":"text","text":"Validation Approve"},{"type":"text","text":"Adalberto Kaufmann"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000004800","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Validation Requested by Renard Whatley at 06-Jun-2026 12:52:08 PM"},{"type":"text","text":"Validation Approve"},{"type":"text","text":"Adalberto Kaufmann"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000006753","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Validation Requested by Renard Whatley at 06-Jun-2026 12:52:08 PM"},{"type":"text","text":"Validation Approve"},{"type":"text","text":"Adalberto Kaufmann"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


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


# Calling SendNotificationForApprovingValidationRequestToAllExceptApproved function for  whatsapp and push notification #


Starting Execution for whatsapp notification for all


Sending notification for approving validation request of permit to work 376795


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000713","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Validation Approved by Adalberto Kaufmann at 06-Jun-2026 12:55:01 PM"},{"type":"text","text":"Start work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000008412","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Validation Approved by Adalberto Kaufmann at 06-Jun-2026 12:55:01 PM"},{"type":"text","text":"Start work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000004800","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Validation Approved by Adalberto Kaufmann at 06-Jun-2026 12:55:01 PM"},{"type":"text","text":"Start work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000006753","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00001"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Hyderabad "},{"type":"text","text":"Validation Approved by Adalberto Kaufmann at 06-Jun-2026 12:55:01 PM"},{"type":"text","text":"Start work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376795?orgID=211&dlType=viewWorkPermit"}]}]}}}


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendNotificationToIssuerForCreatingPermitToWork function for whatsapp and push notification #


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


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


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


# Calling SendNotificationToAllExceptReviewer function for whatsapp and push notification #


User Ids for notification: [1955,4014,5092]


Starting Execution for whatsapp notification for all


Sending notification to requester regarding permit to work 376796


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000713","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00002"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Tower 10"},{"type":"text","text":"Authorized by Caroline Su at 06-Jun-2026 01:29:36 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376796?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000004800","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00002"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Tower 10"},{"type":"text","text":"Authorized by Caroline Su at 06-Jun-2026 01:29:36 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376796?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000006753","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/GLTO/GRR/GLTO/BL/26/00002"},{"type":"text","text":"06-Jun-2026"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Alanreed"},{"type":"text","text":"Tower 10"},{"type":"text","text":"Authorized by Caroline Su at 06-Jun-2026 01:29:36 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/376796?orgID=211&dlType=viewWorkPermit"}]}]}}}


### End Event Execution ###