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


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


### Start Event Execution ###


Message : {"EventName":"Update_USER","EventArgs":[{"Key":"DisplayName","Value":"Reynaldo Noyes"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"Neveu"},{"Key":"UserDivisions","Value":""},{"Key":"UserIncidentSites","Value":"Beaverdam, Champion Heights, Healdton"},{"Key":"OldEmail","Value":""},{"Key":"Email","Value":"osm08216@osmosys.co"}]}


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


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


Calling Send Email Function for Update User Email


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Your OQSHA Access Has Been Updated

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


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


--- Email response from Osmo-x is 201


### End Event Execution ###


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


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


Your OQSHA Access Has Been Updated


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


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


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


Executing email notifications to Incident Approvers about the Pending approval


A new incident IMF/FBYDW/ROO/INJ/26/00001 has been reported


Executing whatsapp notifications to Incident Approvers about the Pending approval


Sending WhatsApp Notification for Incident Approval to User: 5538


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending Incident Submitted Notification for Incident Id:1284


Inside SendAppNotification Device Type: APNS


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/APNS/Oqsha-IOS-Production/7e49ea98-d18e-3715-9483-22f6b86d1400


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


# Push notification did not send #


### Ended processing Incident Submitted Event ###


### End Event Execution ###


### Start Event Execution ###


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


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


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Incident IMF/FBYDW/ROO/INJ/26/00001 has been validated


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


--- Email response from Osmo-x is 201


Sending WhatsApp for Incident Validation to User: 5533


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Incident Validated Event ###


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


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


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


Executing email notifications to Incident Approvers about the Pending approval


Incident IMF/FBYDW/ROO/INJ/26/00001 FIR has been released, form a team to investigate


Executing whatsapp notifications to Incident Approvers about the Pending approval


Sending WhatsApp for Incident Approval to User: 5530


### End Event Execution ###


### Start Event Execution ###


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


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


Incident PDF generation successfull


Initializing Email Service Client


Generating Email Request


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

Incident IMF/FBYDW/ROO/INJ/26/00001 FIR has been released


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


--- Email response from Osmo-x is 201


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


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


Incident IMF/FBYDW/ROO/INJ/26/00001 has been validated, form a team to investigate


Sending WhatsApp for Incident Approval to User: 5827


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending Investigation In Progress Notification for Investigation Id:609


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/6c3ebb67-6f10-39b7-9e0b-310f1219c556


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


# Push notification did not send #


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


### End Event Execution ###


### Start Event Execution ###


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


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


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


Executing email notifications to Incident Approvers about the Pending approval


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


A new incident IMF/FBYDW/KAR/INJ/26/00001 has been reported


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


--- Email response from Osmo-x is 201


Executing whatsapp notifications to Incident Approvers about the Pending approval


Sending WhatsApp Notification for Incident Approval to User: 5538


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Incident Submitted Event ###


### End Event Execution ###


### Start Event Execution ###


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


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


Incident IMF/FBYDW/KAR/INJ/26/00001 has been validated


Sending WhatsApp for Incident Validation to User: 5533


### Ended processing Incident Validated Event ###


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


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


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


Initializing Email Service Client


Generating Email Request


Incident IMF/FBYDW/KAR/INJ/26/00001 FIR has been released, form a team to investigate


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


--- Email response from Osmo-x is 201


Sending WhatsApp for Incident Approval to User: 5530


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### End Event Execution ###


### Start Event Execution ###


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


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


Incident PDF generation successfull


Incident IMF/FBYDW/KAR/INJ/26/00001 FIR has been released


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


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


Executing email notifications to Incident Approvers about the Pending approval


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Incident IMF/FBYDW/KAR/INJ/26/00001 has been validated, form a team to investigate


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


--- Email response from Osmo-x is 201


Executing whatsapp notifications to Incident Approvers about the Pending approval


Sending WhatsApp for Incident Approval to User: 5856


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending Investigation In Progress Notification for Investigation Id:610


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/9ab6e5e2-6469-3f10-9b8d-3ba9846784d6


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


# Push notification did not send #


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


### End Event Execution ###


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


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


### Start Event Execution ###


Message : {"EventName":"Update_USER","EventArgs":[{"Key":"DisplayName","Value":"Renard Whatley"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"Galecto Inc."},{"Key":"UserDivisions","Value":"Near miss, Unsafe Act, Unsafe Condition"},{"Key":"UserIncidentSites","Value":"Alanreed, Bowers, Council Bluffs, Cowgill, Fleischmanns, Fort Myers Beach, Galeville, Leeper, Rosewood, Suffield Depot, Vinings, Weldona, Yorba Linda"},{"Key":"OldEmail","Value":""},{"Key":"Email","Value":"MH_Admin_HO@oqsha.com"}]}


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


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


Calling Send Email Function for Update User Email


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Your OQSHA Access Has Been Updated


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


--- Email response from Osmo-x is 201


Message : {"EventName":"Update_APP_USER","EventArgs":[{"Key":"DisplayName","Value":"Renard Whatley"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"Galecto Inc."},{"Key":"UserUid","Value":"9100999124"},{"Key":"UserDivisions","Value":"Near miss, Unsafe Act, Unsafe Condition"},{"Key":"UserIncidentSites","Value":"Alanreed, Bowers, Council Bluffs, Cowgill, Fleischmanns, Fort Myers Beach, Galeville, Leeper, Rosewood, Suffield Depot, Vinings, Weldona, Yorba Linda"},{"Key":"Email","Value":"MH_Admin_HO@oqsha.com"},{"Key":"MobileNumber","Value":"+912000000713"}]}


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


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


### End Event Execution ###


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


# Calling SendBatchScheduleUpdatedNotification for batchId=1773 orgId=264 #


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


Schedule Updated: Confined Space Safety - Batch-12


## Batch Update Emails sent to 2 Managers ##


### Start Event Execution ###


# Calling SendBatchScheduleUpdatedNotification for batchId=1762 orgId=264 #


Schedule Updated: Confined Space Safety - Batch-1


Initializing Email Service Client


Generating Email Request


# Calling SendBatchScheduleUpdatedNotification for batchId=1764 orgId=264 #


Schedule Updated: Confined Space Safety - Batch-3


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


--- Email response from Osmo-x is 201


Message : {"EventName":"NOTIFICATION_FOR_WORK_PERMIT_CREATION","EventArgs":[{"Key":"WorkPermitId","Value":"3170"},{"Key":"ApproverIds","Value":"[6717]"},{"Key":"SiteName","Value":"Colver"},{"Key":"CreatedBy","Value":"Hebert Eaton"},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/HTW/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:


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003962","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_creation_alert_v3","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Adelbert Miley"},{"type":"text","text":"WP/FBYDW/ROO/HTW/26/00001"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/3170?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":"DEPARTMENT_INCHARGE_NOTIFICATION_FOR_WORK_PERMIT_CREATION","EventArgs":[{"Key":"WorkPermitId","Value":"3170"},{"Key":"UserIds","Value":"[]"},{"Key":"SiteName","Value":"Colver"},{"Key":"CreatedBy","Value":"Hebert Eaton"},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/HTW/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 #


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


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


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


Executing email notifications to Incident Approvers about the Pending approval


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


A new incident IMF/FBYDW/ROO/INJ/26/00002 has been reported


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


--- Email response from Osmo-x is 201


Executing whatsapp notifications to Incident Approvers about the Pending approval


Sending WhatsApp Notification for Incident Approval to User: 5538


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Incident Submitted Event ###


### End Event Execution ###


### Start Event Execution ###


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


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


Incident IMF/FBYDW/ROO/INJ/26/00002 has been validated


Sending WhatsApp for Incident Validation to User: 5533


### Ended processing Incident Validated Event ###


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


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


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


Initializing Email Service Client


Generating Email Request


Incident IMF/FBYDW/ROO/INJ/26/00002 FIR has been released, form a team to investigate


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


--- Email response from Osmo-x is 201


Sending WhatsApp for Incident Approval to User: 5530


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### End Event Execution ###


### Start Event Execution ###


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


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


Incident PDF generation successfull


Incident IMF/FBYDW/ROO/INJ/26/00002 FIR has been released


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


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


Executing email notifications to Incident Approvers about the Pending approval


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Incident IMF/FBYDW/ROO/INJ/26/00002 has been validated, form a team to investigate


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


--- Email response from Osmo-x is 201


Executing whatsapp notifications to Incident Approvers about the Pending approval


Sending WhatsApp for Incident Approval to User: 5532


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


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


### End Event Execution ###


### Start Event Execution ###


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


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


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


Executing email notifications to Investigation Approvers about the Pending approval


You have been assigned to review the investigation report IMF/FBYDW/ROO/INJ/26/00002


Executing whatsapp notifications to Investigation Approvers about the Pending approval


Sending WhatsApp for Investigation Approval to User: 5538


### Ended processing Investigation Submitted Event ###


Initializing Email Service Client


Generating Email Request


You have been assigned to review the investigation report IMF/FBYDW/ROO/INJ/26/00001


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


--- Email response from Osmo-x is 201


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### End Event Execution ###


### Start Event Execution ###


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


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


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


A new incident IMF/FBYDW/ROO/INJ/26/00003 has been reported


Sending WhatsApp Notification for Incident Approval to User: 5538


### Ended processing Incident Submitted Event ###


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


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


Executing email notifications to Incident Approvers about the Pending approval


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Incident IMF/FBYDW/ROO/INJ/26/00003 has been validated


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


--- Email response from Osmo-x is 201


Executing whatsapp notifications to Incident Approvers about the Pending approval


Sending WhatsApp for Incident Validation to User: 5530


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Incident Validated Event ###


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendBatchScheduleUpdatedNotification for batchId=1764 orgId=264 #


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


## Batch Update Emails sent to 2 Managers ##


# Calling SendBatchScheduleUpdatedNotification for batchId=1763 orgId=264 #


Initializing Email Service Client


Generating Email Request


Schedule Updated: Confined Space Safety - Batch-2


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


--- Email response from Osmo-x is 201


# Calling SendBatchScheduleUpdatedNotification for batchId=1762 orgId=264 #


# Calling SendBatchScheduleUpdatedNotification for batchId=1792 orgId=264 #


Schedule Updated: Safety Training


Message : {"EventName":"Update_USER","EventArgs":[{"Key":"DisplayName","Value":"Paveresariq Goodale"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"SailPoint Inc."},{"Key":"UserDivisions","Value":""},{"Key":"UserIncidentSites","Value":"Beards Fork, Brooktrails, Cave Spring, Eleanor, Elizabethville, New Bethlehem, Quartzsite, Richton Park, South Plainfield, Zeb"},{"Key":"OldEmail","Value":""},{"Key":"Email","Value":"osm10870@osmosys.co"}]}


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


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


Calling Send Email Function for Update User Email


Your OQSHA Access Has Been Updated


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"Update_APP_USER","EventArgs":[{"Key":"DisplayName","Value":"Paveresariq Goodale"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"SailPoint Inc."},{"Key":"UserUid","Value":""},{"Key":"UserDivisions","Value":""},{"Key":"UserIncidentSites","Value":"Beards Fork, Brooktrails, Cave Spring, Eleanor, Elizabethville, New Bethlehem, Quartzsite, Richton Park, South Plainfield, Zeb"},{"Key":"Email","Value":"osm10870@osmosys.co"},{"Key":"MobileNumber","Value":"+912000003553"}]}


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


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


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


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


--- Email response from Osmo-x is 201


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


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


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


Executing email notifications to Incident Approvers about the Pending approval


FATAL FIR Raised – Incident UID: IMF/GLTO/APA/FATAL/26/00001 | Site: Bowers


Executing whatsapp notifications to Incident Approvers about the Pending approval


Sending WhatsApp Notification for Incident Approval to User: 2034


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending Incident Submitted Notification for Incident Id:1288


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


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


Unauthorized


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


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


Push notification failed to send to a device 18327.


# Push notification did not send #


### Ended processing Incident Submitted Event ###


### End Event Execution ###


### Start Event Execution ###


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


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


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Incident Validated – Incident UID: IMF/GLTO/APA/FATAL/26/00001 | Site: Bowers


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


--- Email response from Osmo-x is 201


Sending WhatsApp for Incident Validation to User: 2034


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Incident Validated Event ###


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


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


Executing email notifications for Incident Investigation Required


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


Investigation Required - (FATAL) FIR Released | Incident UID: IMF/GLTO/APA/FATAL/26/00001 | Site: Bowers


### End Event Execution ###


### Start Event Execution ###


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


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


Executing email notifications to Incident Approvers about the Pending approval


Initializing Email Service Client


Generating Email Request


Incident IMF/GLTO/APA/FATAL/26/00001 has been validated, form a team to investigate


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


--- Email response from Osmo-x is 201


Executing whatsapp notifications to Incident Approvers about the Pending approval


Sending WhatsApp for Incident Approval to User: 2034


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


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


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


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


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


Executing email notifications to Investigation Approvers about the Pending approval


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


Reading and binding data to Email Template


Incident Investigation Submitted – Incident UID: IMF/GLTO/APA/FATAL/26/00001 | Site: Bowers


Executing whatsapp notifications to Investigation Approvers about the Pending approval


Sending WhatsApp for Investigation Approval to User: 2034


### Ended processing Investigation Submitted Event ###


### End Event Execution ###


### Start Event Execution ###


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


### Started processing for Investigation Validated Event ###


Initializing Email Service Client


Generating Email Request


Incident Investigation Validated – Incident UID: IMF/GLTO/APA/FATAL/26/00001 | Site: Bowers


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


--- Email response from Osmo-x is 201


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Investigation Validated Event ###


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


### Started processing for Investigation Final Report Released - External User ###


Executing email notifications to external users about the final report release


PDF generation completed successfully.


Incident PDF generation successfull


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


osm03586@osmosys.co, osm06269@osmosys.co, osm06780@osmosys.co, MH_Admin_HO@oqsha.com, osm05485@osmosys.co, osm07904@osmosys.co

Incident Investigation Released – Incident UID: IMF/GLTO/APA/FATAL/26/00001 | Site: Bowers


### Ended processing Investigation Final Report Released - External User ###


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendBatchScheduleUpdatedNotification for batchId=1762 orgId=264 #


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


Initializing Email Service Client


Generating Email Request


Schedule Updated: Confined Space Safety - Batch-1


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


--- Email response from Osmo-x is 201


## Batch Update Emails sent to 2 Managers ##


# Calling SendBatchScheduleUpdatedNotification for batchId=1763 orgId=264 #


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


Reading and binding data to Email Template


# Calling SendBatchScheduleUpdatedNotification for batchId=2088 orgId=264 #


Schedule Updated: Industrial Vehicle & Road Safety - Batch-15


# Calling SendBatchScheduleUpdatedNotification for batchId=1766 orgId=264 #


Schedule Updated: Confined Space Safety - Batch-5


### End Event Execution ###


### Start Event Execution ###


# Calling SendBatchScheduleUpdatedNotification for batchId=2094 orgId=264 #


Schedule Updated: Industrial Vehicle & Road Safety - Batch-21


Initializing Email Service Client


Generating Email Request


# Calling SendBatchScheduleUpdatedNotification for batchId=2099 orgId=264 #


Schedule Updated: Industrial Vehicle & Road Safety - Batch-26


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


--- Email response from Osmo-x is 201


# Calling SendBatchScheduleUpdatedNotification for batchId=2077 orgId=264 #


Schedule Updated: Industrial Vehicle & Road Safety - Batch-4


# Calling SendBatchScheduleUpdatedNotification for batchId=2093 orgId=264 #


Schedule Updated: Industrial Vehicle & Road Safety - Batch-20


# Calling SendBatchScheduleUpdatedNotification for batchId=1737 orgId=264 #


Schedule Updated: Hot Work Safety - Batch-3


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


Osmo-x WhatsApp Message has been Sent


Executing sending push notification to the issuers


# Push Subject for Issuer P/GLTO/AKR/ACRS/DW/26/00001


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending notification for permit to work: 405846


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


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


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


# Push notification did not send #


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


Push notification failed to send to a device 10879.


### End Event Execution ###


### Start Event Execution ###


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000002830","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/UDY/MOR1/EX/26/00001"},{"type":"text","text":"14-Jul-2026"},{"type":"text","text":"Excavation Work"},{"type":"text","text":"Council Bluffs"},{"type":"text","text":" "},{"type":"text","text":"Requested by Renard Whatley at 13-Jul-2026 07:15:21 PM"},{"type":"text","text":"Approve"},{"type":"text","text":"Sakari Benites"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/405847?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Push Subject for Issuer P/GLTO/UDY/MOR1/EX/26/00001


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending notification for permit to work: 405847


Generating AWS SNS Request


Endpoint: arn:aws:sns:us-west-2:505884080245:endpoint/GCM/OQSHA-Android/3c52f806-e200-3a08-a2db-059c7090bda7


Unauthorized


Push notification failed to send to a device 4857.


# Push notification did not send #


Inside SendAppNotification Device Type: APNS


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/APNS/Oqsha-IOS-Production/5e45c8a2-8166-3961-838f-3f29fd8ddf35


Push notification failed to send to a device 21080.


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/APNS/Oqsha-IOS-Production/68321570-aca7-3c49-afe4-1c1b241ec7ff


Push notification failed to send to a device 21944.


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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000753","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/UDY/BWB/DW/26/00001"},{"type":"text","text":"14-Jul-2026"},{"type":"text","text":"De-shuttering Work"},{"type":"text","text":"Council Bluffs"},{"type":"text","text":" "},{"type":"text","text":"Requested by Renard Whatley at 13-Jul-2026 07:17:14 PM"},{"type":"text","text":"Approve"},{"type":"text","text":"Neppie Meler"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/405848?orgID=211&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Executing sending push notification to the issuers


# Push Subject for Issuer P/GLTO/UDY/BWB/DW/26/00001


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending notification for permit to work: 405848


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/APNS/Oqsha-IOS-Production/044aa744-46e2-357f-89bc-f5c62eedf117


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


# Push notification did not send #


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":77032},{"Key":"AssignedToID","Value":4014}]}


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


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


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


Generating report.


Converted to byte file


PDF generation successfull


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


Sending Assigned To Whatsapp for IncidentId:77032


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending Assigned To Notification for IncidentId:77032


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/037ca369-67b1-3f4b-b772-76238ee9df53


Unauthorized


Push notification failed to send to a device 5801.


# Push notification did not send #


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


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendNotificationToIssuerForCreatingPermitToWork function for whatsapp and push notification #


Executing sending notification to issuers through whatsapp


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


Osmo-x WhatsApp Message has been Sent


Executing sending push notification to the issuers


# Push Subject for Issuer P/GLTO/GRR/GLTO/NW/26/00001


# Preparing notification body #


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


### Started processing for Investigation Validated Event ###


Executing email notifications to Investigation Approvers about the Pending approval


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Incident Investigation Validated – Incident UID: 6SO4W1 | Site: Galeville


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


--- Email response from Osmo-x is 201


Executing whatsapp notifications to Investigation Approvers about the Pending approval


Sending WhatsApp for Incident Approval to User: 1955


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000000713","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_investigation_validation_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Renard Whatley"},{"type":"text","text":"6SO4W1"},{"type":"text","text":"Nurettin Sahlin"},{"type":"text","text":"03-Jul-2026 03:30:00 PM"},{"type":"text","text":"Galeville"},{"type":"text","text":"The incident was occurred during the steel is shifting from near parking area to hall-4. As part of the operation, two Hydra cranes were engaged in a tandem lifting activity to lift the steel bundle and place it onto a trailer. The trailer was intended to transport the steel to Hall-4, while the hydra cranes were used only for lifting and loading purposes. During the tandem lifting operation, one of the mobile hydra operators misjudged the lifting condition, including the load distribution and crane stability. As a result, the mobile hydra became unstable and overturned into one side. The lifting activity was immediately stopped, and the area was secured. Fortunately, no injuries to personnel, damage to the lifted material, or damage to surrounding property occurred. The incident has been classified as a Near Miss due to its high potential for causing serious injury and significant property damage."},{"type":"text","text":"0"},{"type":"text","text":"https://oqsha.com/#/incident-management/report-investigation/view/211/606?dlType=viewInvestigation"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Checking for device existence #


# User device exists #


Sending Investigation Validated Notification for Investigation Id:606


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Test/766907bc-a0d3-38e0-9027-0a0d3d54595c


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


# Push notification did not send #


### Ended processing Investigation Validated Event ###


### End Event Execution ###


### Start Event Execution ###


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


### Started processing for Investigation Final Report Released - External User ###


Executing email notifications to external users about the final report release


PDF generation completed successfully.


Incident PDF generation successfull


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


Initializing Email Service Client


Generating Email Request


osm06269@osmosys.co, osm01910@osmosys.co, osm01974@osmosys.co, MH_Admin_HO@oqsha.com, osm05485@osmosys.co, osm07904@osmosys.co

Incident Investigation Released – Incident UID: 6SO4W1 | Site: Galeville


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


--- Email response from Osmo-x is 201


### Ended processing Investigation Final Report Released - External User ###


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":77033},{"Key":"AssignedToID","Value":4014}]}


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


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


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


Generating report.


Converted to byte file


PDF generation successfull


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


Sending Assigned To Whatsapp for IncidentId:77033


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


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


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"NOTIFICATION_FOR_BATCH_SCHEDULING_COMPLETED","EventArgs":[{"Key":"OrganisationId","Value":264},{"Key":"OrganisationName","Value":"Neveu"},{"Key":"TniId","Value":94},{"Key":"TniName","Value":"TNI - Safety Leadership & Behavioral Safety - Executive"},{"Key":"CourseId","Value":284},{"Key":"SiteId","Value":900},{"Key":"UserIds","Value":"[20231]"}]}


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


# Calling SendBatchSchedulingCompletedNotification for tniId=94 organisationId=264 #


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


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Batch Scheduling Completed for TNI - Safety Leadership & Behavioral Safety - Executive


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


--- Email response from Osmo-x is 201


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


Message : {"EventName":"NOTIFICATION_FOR_ATTENDEE_ALLOCATION_COMPLETED","EventArgs":[{"Key":"OrganisationId","Value":264},{"Key":"OrganisationName","Value":"Neveu"},{"Key":"TniId","Value":94},{"Key":"TniName","Value":"TNI - Safety Leadership & Behavioral Safety - Executive"},{"Key":"TniStartDate","Value":639184608000000000},{"Key":"TniEndDate","Value":639420480000000000},{"Key":"CourseId","Value":284},{"Key":"SiteId","Value":900},{"Key":"UserIds","Value":"[1539,20232]"}]}


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


# Calling SendAttendeeAllocationCompletedNotification for tniId=94 organisationId=264 #


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


Action Required: Review Team Allocations for TNI - Safety Leadership & Behavioral Safety - Executive


## Allocation Emails Sent to 2 Role Users ##


Starting Execution for grouped participant notifications.


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


Inside SendAppNotification Device Type: APNS


Generating AWS SNS Request


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


Unauthorized


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


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


### End Event Execution ###