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


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


### Start Event Execution ###


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


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


Error occurred while sending email using Osmo-x.


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


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/EWW/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/3404?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Fetching devices bypassing preferences (system event or unknown module) (Single) #


### End Event Execution ###


Message : {"EventName":"DEPARTMENT_INCHARGE_NOTIFICATION_FOR_WORK_PERMIT_CREATION","EventArgs":[{"Key":"WorkPermitId","Value":"3404"},{"Key":"UserIds","Value":"[5578]"},{"Key":"SiteName","Value":"Colver"},{"Key":"CreatedBy","Value":"Hebert Eaton"},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/EWW/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: osm02082@osmosys.co


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


New Work Permit Raised in Your Department

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


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003973","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":"Katrina Urias"},{"type":"text","text":"WP/FBYDW/ROO/EWW/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/3404?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


### Start Event Execution ###


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


# Calling SendNotificationToTaskAssignees function for WhatsApp notification #


Sending WhatsApp notification for task assignment to user ID: 5612


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000002611","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_task_assigned_to_notification_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Ashby Woodall"},{"type":"text","text":"Action Tracker"},{"type":"text","text":"AT/FBYDW/CET/CEA/26/00002"},{"type":"text","text":"Fix the wall paints"},{"type":"text","text":"CII EHS Assessment"},{"type":"text","text":"https://oqsha.com/#/tasks/edit/15790?dlType=viewTask&orgID=248"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Sending Task Assignment Email for TaskId: 15790, UserId: 5612


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


New Action Tracker Assigned - AT/FBYDW/CET/CEA/26/00002


# Preparing notification body #


# Fetching devices honoring user preferences for Multiple Module IDs (Single) #


### End Event Execution ###


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":77854},{"Key":"AssignedToID","Value":678}]}


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


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


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


Generating report.


Converted to byte file


PDF generation successfull


## Sending email to Giselle Angle, UserId : 678 for assigned to notification ##


Sending Assigned To Email for IncidentId:77854


Initializing Email Service Client


Generating Email Request


A Ticket T/SFWL/KWT/AII/26/00001 is assigned to you related to 'Alignment/Plumb Issues'


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


--- Email response from Osmo-x is 201


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


Sending Assigned To Whatsapp for IncidentId:77854


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


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


### End Event Execution ###


### Start Event Execution ###


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


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


Calling Send Email Function for Update User Email


Reading and binding data to Email Template


Your OQSHA Access Has Been Updated


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


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


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


Initializing Email Service Client


Generating Email Request


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


--- Email response from Osmo-x is 201


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


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


Message : {"EventName":"Update_USER","EventArgs":[{"Key":"DisplayName","Value":"Rasmerela Whitted"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"SailPoint Inc."},{"Key":"UserDivisions","Value":""},{"Key":"UserIncidentSites","Value":"Bell Buckle, Belleair, Clint, Cold Spring, Elizabethville, Huetter, Nyack, Shorewood-Tower Hills-Harbert, South Plainfield, Stansbury Park, Williams Canyon"},{"Key":"OldEmail","Value":""},{"Key":"Email","Value":"osm00252@osmosys.co"}]}


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"Update_APP_USER","EventArgs":[{"Key":"DisplayName","Value":"Rasmerela Whitted"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"SailPoint Inc."},{"Key":"UserUid","Value":""},{"Key":"UserDivisions","Value":""},{"Key":"UserIncidentSites","Value":"Bell Buckle, Belleair, Clint, Cold Spring, Elizabethville, Huetter, Nyack, Shorewood-Tower Hills-Harbert, South Plainfield, Stansbury Park, Williams Canyon"},{"Key":"Email","Value":"osm00252@osmosys.co"},{"Key":"MobileNumber","Value":"+915555556904"}]}


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


# Calling SendNotificationToIssuerForCreatingPermitToWork function for whatsapp and push notification #


# Fetching devices honoring user preferences for Multiple Module IDs (Bulk) #


Executing sending notification to issuers through whatsapp


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


Osmo-x WhatsApp Message has been Sent


Executing sending push notification to the issuers


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


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending notification for permit to work: 417665


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Test/cd9b9cd3-e05d-31d7-b364-fda6a1940c29


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


# Push notification did not send #


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendNotificationToEitherReviewerOrApprover function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


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


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":"28-Jul-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Accepted by Neppie Traynor at 28-Jul-2026 05:10:02 PM"},{"type":"text","text":"Quality Verify"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"https://oqsha.com/#/work-permit/view/417665?orgID=232&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


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


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


System.NullReferenceException: Object reference not set to an instance of an object.
   at IncidentReporter.NotificationSender.DAL.Events.Notifier.SendNotificationToEitherReviewerOrApprover(String eventName, 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 4196
   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 589


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


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


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


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


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


### End Event Execution ###


Generating report.


Converted to byte file


PDF generation successfull


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


Sending Assigned To Email for IncidentId:77855


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


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


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


--- Email response from Osmo-x is 201


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


Sending Assigned To Whatsapp for IncidentId:77855


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Fetching devices honoring user preferences for Multiple Module IDs (Single) #


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


### End Event Execution ###


### Start Event Execution ###


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


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


### Started processing for Update incident Event ###


# Calling  SendNotification function for  all types of notification #


Sending Email for IncidentId:77855


Initializing Email Service Client


Generating Email Request


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


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


--- Email response from Osmo-x is 201


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"919999999999","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Neppie Traynor"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/MIRA/EEE/26/00001"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as test"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Rio"},{"type":"text","text":"EHS-Accident/Incident"},{"type":"text","text":"Neppie Traynor"},{"type":"text","text":"MIRA Pharmaceuticals Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/232/77855?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Fetching devices honoring user preferences for Multiple Module IDs (Bulk) #


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000002469","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Nettie Lough"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/MIRA/EEE/26/00001"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as test"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Rio"},{"type":"text","text":"EHS-Accident/Incident"},{"type":"text","text":"Neppie Traynor"},{"type":"text","text":"MIRA Pharmaceuticals Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/232/77855?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Event Execution ###


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


Message : {"EventName":"COMPLETED_BATCH","EventArgs":[{"Key":"BatchId","Value":2330}]}


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


# Calling SendNotificationToBatchParticipantsForCompletedStatus function for  whatsapp notification #


Executing completed notification function to batch participants


Generating certificate.


System.ArgumentNullException: Value cannot be null.
Parameter name: path4
   at System.IO.Path.Combine(String path1, String path2, String path3, String path4)
   at IncidentReporter.API.Helpers.ExportTrainingCertificateHelper.ExportCertificate(TrainingCertificateDTO participant, String outputAbsoluteFilePath, Int32 orgId) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\ExportTrainingCertificateHelper.cs:line 26
   at IncidentReporter.API.Helpers.ExportTrainingCertificateHelper.ExportCertificatePDFAsByteArray(TrainingCertificateDTO participant, Int32 orgId, Int32 batchId, Int32 participantId) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\ExportTrainingCertificateHelper.cs:line 117
   at IncidentReporter.NotificationSender.DAL.Events.Notifier.SendNotificationToBatchParticipantsForCompletedStatus(String eventName, Int64 batchId) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\Notifier.cs:line 3543
   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 538


Message : {"EventName":"NOTIFICATION_FOR_BATCH_COMPLETION_ROLE_USERS","EventArgs":[{"Key":"BatchId","Value":2330},{"Key":"OrganisationId","Value":264}]}


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


# Calling SendBatchCompletionRoleNotification for batchId=2330 organisationId=264 #


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


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


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Training Batch Completed - Confined Space Safety


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


--- Email response from Osmo-x is 201


## Batch Completion Main Emails Sent to 2 Target Role Users ##


### End Event Execution ###


### Start Event Execution ###


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


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


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


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


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


Generating report.


Converted to byte file


PDF generation successfull


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


Sending Assigned To Email for IncidentId:77856


Initializing Email Service Client


Generating Email Request


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


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


--- Email response from Osmo-x is 201


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


Sending Assigned To Whatsapp for IncidentId:77856


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Fetching devices honoring user preferences for Multiple Module IDs (Single) #


# Checking for device existence #


# User device exists #


Sending Assigned To Notification for IncidentId:77856


Inside SendAppNotification Device Type: APNS


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/APNS/Oqsha-IOS-Production/7bd9e3b7-e513-3cb0-acd4-282694017ad3


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


# Push notification did not send #


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


### End Event Execution ###


### Start Event Execution ###


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


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


### Started processing for Update incident Event ###


# Calling  SendNotification function for  all types of notification #


Sending Email for IncidentId:77856


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


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


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


--- Email response from Osmo-x is 201


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/HUBG/BDM/26/00001"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as test"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":"Break Down Maintenance"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"Hub Group Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/207/77856?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Fetching devices honoring user preferences for Multiple Module IDs (Bulk) #


Sending email for incident closure


Error occurred while sending email using Osmo-x.


Object reference not set to an instance of an object.


# Fetching devices honoring user preferences for Multiple Module IDs (Single) #


Sending Assigned To Whatsapp for IncidentId:77856


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003712","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Maxim Noyes"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/HUBG/BDM/26/00001"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as test"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":"Break Down Maintenance"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"Hub Group Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/207/77856?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Event Execution ###


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


Sending Email for IncidentId:77856


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":"912000007341","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/HUBG/BDM/26/00001"},{"type":"text","text":"Ticket status updated to Closed"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":"Break Down Maintenance"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"Hub Group Inc."},{"type":"text","text":"Closed"},{"type":"text","text":"https://oqsha.com/#/incidents/view/207/77856?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


Sending email for incident closure


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003712","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Maxim Noyes"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/HUBG/BDM/26/00001"},{"type":"text","text":"Ticket status updated to Closed"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":"Break Down Maintenance"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"Hub Group Inc."},{"type":"text","text":"Closed"},{"type":"text","text":"https://oqsha.com/#/incidents/view/207/77856?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


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


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


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


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


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


Generating report.


Converted to byte file


PDF generation successfull


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


Sending Assigned To Email for IncidentId:77857


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


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


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


--- Email response from Osmo-x is 201


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


Sending Assigned To Whatsapp for IncidentId:77857


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Fetching devices honoring user preferences for Multiple Module IDs (Single) #


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


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":77857},{"Key":"IncidentHistoryId","Value":110824},{"Key":"IsTicketAssigned","Value":true}]}


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


### Started processing for Update incident Event ###


# Calling  SendNotification function for  all types of notification #


Sending Email for IncidentId:77857


Initializing Email Service Client


Generating Email Request


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


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


--- Email response from Osmo-x is 201


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/HUBG/BDM/26/00002"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as test"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":"Break Down Maintenance"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"Hub Group Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/207/77857?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


Sending email for incident closure


Error occurred while sending email using Osmo-x.


Object reference not set to an instance of an object.


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003712","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Maxim Noyes"},{"type":"text","text":"Ticket"},{"type":"text","text":"T/HUBG/BDM/26/00002"},{"type":"text","text":"Ticket status updated to Resolved., Comments are added as test"},{"type":"text","text":"Ticket"},{"type":"text","text":" "},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":"Break Down Maintenance"},{"type":"text","text":"Sincere Kidwell"},{"type":"text","text":"Hub Group Inc."},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/207/77857?dlType=viewTicket"},{"type":"text","text":"Oqsha Team"}]}]}}}


### Ended processing Update incident Event ###


### End Event Execution ###