Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"918989898989","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_incident_investigation_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"adhya tiwari"},{"type":"text","text":"IMF/TTK/COI/UCC/25/00006"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"15-Aug-2025 04:00:00 AM"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"NA"},{"type":"text","text":"0"},{"type":"text","text":"https://oqsha.com/#/incident-management/report-investigation/view/140"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


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


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


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Incident IMF/TTK/COI/TIT/25/00039 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: 1761


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


Sending WhatsApp for Incident Approval to User: 2078


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"Update_USER","EventArgs":[{"Key":"DisplayName","Value":"Raj Kumar Pativada"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"TTK Beta - QA"},{"Key":"UserDivisions","Value":"Near Miss, Observation, Unsafe Act, Unsafe Condition"},{"Key":"UserIncidentSites","Value":"Coimbatore, Delhi, Hosur, Khadri, Regression, Roorkee, SamarSite, site - 2, Sshristi, Testing site, TTK Beta, TTK PWA, Ttk Pwa Site"},{"Key":"OldEmail","Value":""},{"Key":"Email","Value":"rajkumar.p@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


Message : {"EventName":"Update_APP_USER","EventArgs":[{"Key":"DisplayName","Value":"Raj Kumar Pativada"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"TTK Beta - QA"},{"Key":"UserUid","Value":"9160948627"},{"Key":"UserDivisions","Value":"Near Miss, Observation, Unsafe Act, Unsafe Condition"},{"Key":"UserIncidentSites","Value":"Coimbatore, Delhi, Hosur, Khadri, Regression, Roorkee, SamarSite, site - 2, Sshristi, Testing site, TTK Beta, TTK PWA, Ttk Pwa Site"},{"Key":"Email","Value":"rajkumar.p@osmosys.co"},{"Key":"MobileNumber","Value":"+919160948627"}]}


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


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


Initializing Email Service Client


Generating Email Request


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


--- Email response from Osmo-x is 201


Message : {"EventName":"NOTIFICATION_TO_ISSUER","EventArgs":[{"Key":"PtwId","Value":3255},{"Key":"OrganisationId","Value":310},{"Key":"CompanyId","Value":77},{"Key":"StringIssuerIds","Value":"[1,1735,1475,2061,2160,2161,2169,2205,2206,2256,1939,2125,2201,2078,1597,1536]"},{"Key":"PermitToWorkUID","Value":"P/APR/abd/ABCCON/BL/25/00024"},{"Key":"JobType","Value":"Blasting Work"},{"Key":"StatusChangeByUserDisplayName","Value":"Raj Kumar Pativada"},{"Key":"RequestedOnTime","Value":"19-Sep-2025 12:15:10 PM"},{"Key":"SiteName","Value":"Aparna New Site"},{"Key":"StartDate","Value":"19-Sep-2025"},{"Key":"WorkLocation","Value":""},{"Key":"AssignedUserDisplayName","Value":"ADITYA CHAKRABORTY"},{"Key":"ModeOfNotifications","Value":""},{"Key":"NextStatus","Value":"Issued"},{"Key":"CustomStatusNames","Value":"[{\"StatusId\":1,\"PresentTenseName\":\"Approve -1\",\"PastTenseName\":\"Approved -1\"},{\"StatusId\":2,\"PresentTenseName\":\"Issue -2\",\"PastTenseName\":\"Issued -2\"},{\"StatusId\":3,\"PresentTenseName\":\"Request -3\",\"PastTenseName\":\"Requested -3\"},{\"StatusId\":4,\"PresentTenseName\":\"Review -4\",\"PastTenseName\":\"Reviewed -4\"},{\"StatusId\":5,\"PresentTenseName\":\"Reject -5\",\"PastTenseName\":\"Rejected -5\"},{\"StatusId\":6,\"PresentTenseName\":\"Close -6\",\"PastTenseName\":\"Closed -6\"},{\"StatusId\":7,\"PresentTenseName\":\"Cancel -7\",\"PastTenseName\":\"Cancelled -7\"},{\"StatusId\":8,\"PresentTenseName\":\"Re-Approve -8\",\"PastTenseName\":\"Re-Approved -8\"},{\"StatusId\":9,\"PresentTenseName\":\"Extension Request -9\",\"PastTenseName\":\"Extension Requested -9\"},{\"StatusId\":10,\"PresentTenseName\":\"Extension Issue -10\",\"PastTenseName\":\"Extension Issued -10\"},{\"StatusId\":11,\"PresentTenseName\":\"Extension Review -11\",\"PastTenseName\":\"Extension Reviewed -11\"},{\"StatusId\":12,\"PresentTenseName\":\"Extension Approve -12\",\"PastTenseName\":\"Extension Approved -12\"},{\"StatusId\":13,\"PresentTenseName\":\"Extension Reject -13\",\"PastTenseName\":\"Extension Rejected -13\"},{\"StatusId\":14,\"PresentTenseName\":\"Validation Request -14\",\"PastTenseName\":\"Validation Requested -14\"},{\"StatusId\":15,\"PresentTenseName\":\"Validation Reject -15\",\"PastTenseName\":\"Validation Rejected -15\"},{\"StatusId\":16,\"PresentTenseName\":\"Suspend -16\",\"PastTenseName\":\"Suspended -16\"},{\"StatusId\":17,\"PresentTenseName\":\"Validation Issue -17\",\"PastTenseName\":\"Validation Issued -17\"},{\"StatusId\":18,\"PresentTenseName\":\"Validation Approve -18\",\"PastTenseName\":\"Validation Approved -18\"},{\"StatusId\":19,\"PresentTenseName\":\"Pending Closure -19\",\"PastTenseName\":\"Pending Closure -19\"},{\"StatusId\":20,\"PresentTenseName\":\"Start Work -20\",\"PastTenseName\":\"Start Work -20\"},{\"StatusId\":21,\"PresentTenseName\":\"Request Again -21\",\"PastTenseName\":\"Request Again -21\"},{\"StatusId\":22,\"PresentTenseName\":\"Abandon\",\"PastTenseName\":\"Abandoned\"}]"}]}


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


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919160948627","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/APR/abd/ABCCON/BL/25/00024"},{"type":"text","text":"19-Sep-2025"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":" "},{"type":"text","text":"Requested -3 by Raj Kumar Pativada at 19-Sep-2025 12:15:10 PM"},{"type":"text","text":"Issue -2"},{"type":"text","text":"ADITYA CHAKRABORTY"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/3255?orgID=310&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917735901811","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/APR/abd/ABCCON/BL/25/00024"},{"type":"text","text":"19-Sep-2025"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":" "},{"type":"text","text":"Requested -3 by Raj Kumar Pativada at 19-Sep-2025 12:15:10 PM"},{"type":"text","text":"Issue -2"},{"type":"text","text":"ADITYA CHAKRABORTY"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/3255?orgID=310&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"918209047368","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/APR/abd/ABCCON/BL/25/00024"},{"type":"text","text":"19-Sep-2025"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":" "},{"type":"text","text":"Requested -3 by Raj Kumar Pativada at 19-Sep-2025 12:15:10 PM"},{"type":"text","text":"Issue -2"},{"type":"text","text":"ADITYA CHAKRABORTY"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/3255?orgID=310&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"918967697371","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/APR/abd/ABCCON/BL/25/00024"},{"type":"text","text":"19-Sep-2025"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":" "},{"type":"text","text":"Requested -3 by Raj Kumar Pativada at 19-Sep-2025 12:15:10 PM"},{"type":"text","text":"Issue -2"},{"type":"text","text":"ADITYA CHAKRABORTY"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/3255?orgID=310&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"9190142603280","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/APR/abd/ABCCON/BL/25/00024"},{"type":"text","text":"19-Sep-2025"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":" "},{"type":"text","text":"Requested -3 by Raj Kumar Pativada at 19-Sep-2025 12:15:10 PM"},{"type":"text","text":"Issue -2"},{"type":"text","text":"ADITYA CHAKRABORTY"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/3255?orgID=310&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"918007007611","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/APR/abd/ABCCON/BL/25/00024"},{"type":"text","text":"19-Sep-2025"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":" "},{"type":"text","text":"Requested -3 by Raj Kumar Pativada at 19-Sep-2025 12:15:10 PM"},{"type":"text","text":"Issue -2"},{"type":"text","text":"ADITYA CHAKRABORTY"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/3255?orgID=310&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"918766592459","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/APR/abd/ABCCON/BL/25/00024"},{"type":"text","text":"19-Sep-2025"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":" "},{"type":"text","text":"Requested -3 by Raj Kumar Pativada at 19-Sep-2025 12:15:10 PM"},{"type":"text","text":"Issue -2"},{"type":"text","text":"ADITYA CHAKRABORTY"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/3255?orgID=310&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917439381194","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/APR/abd/ABCCON/BL/25/00024"},{"type":"text","text":"19-Sep-2025"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":" "},{"type":"text","text":"Requested -3 by Raj Kumar Pativada at 19-Sep-2025 12:15:10 PM"},{"type":"text","text":"Issue -2"},{"type":"text","text":"ADITYA CHAKRABORTY"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/3255?orgID=310&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917408681257","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/APR/abd/ABCCON/BL/25/00024"},{"type":"text","text":"19-Sep-2025"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":" "},{"type":"text","text":"Requested -3 by Raj Kumar Pativada at 19-Sep-2025 12:15:10 PM"},{"type":"text","text":"Issue -2"},{"type":"text","text":"ADITYA CHAKRABORTY"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/3255?orgID=310&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919032423307","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/APR/abd/ABCCON/BL/25/00024"},{"type":"text","text":"19-Sep-2025"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":" "},{"type":"text","text":"Requested -3 by Raj Kumar Pativada at 19-Sep-2025 12:15:10 PM"},{"type":"text","text":"Issue -2"},{"type":"text","text":"ADITYA CHAKRABORTY"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/3255?orgID=310&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"91123456789","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/APR/abd/ABCCON/BL/25/00024"},{"type":"text","text":"19-Sep-2025"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":" "},{"type":"text","text":"Requested -3 by Raj Kumar Pativada at 19-Sep-2025 12:15:10 PM"},{"type":"text","text":"Issue -2"},{"type":"text","text":"ADITYA CHAKRABORTY"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/3255?orgID=310&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917223964176","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/APR/abd/ABCCON/BL/25/00024"},{"type":"text","text":"19-Sep-2025"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":" "},{"type":"text","text":"Requested -3 by Raj Kumar Pativada at 19-Sep-2025 12:15:10 PM"},{"type":"text","text":"Issue -2"},{"type":"text","text":"ADITYA CHAKRABORTY"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/3255?orgID=310&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917478192996","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/APR/abd/ABCCON/BL/25/00024"},{"type":"text","text":"19-Sep-2025"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":" "},{"type":"text","text":"Requested -3 by Raj Kumar Pativada at 19-Sep-2025 12:15:10 PM"},{"type":"text","text":"Issue -2"},{"type":"text","text":"ADITYA CHAKRABORTY"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/3255?orgID=310&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919876543210","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/APR/abd/ABCCON/BL/25/00024"},{"type":"text","text":"19-Sep-2025"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":" "},{"type":"text","text":"Requested -3 by Raj Kumar Pativada at 19-Sep-2025 12:15:10 PM"},{"type":"text","text":"Issue -2"},{"type":"text","text":"ADITYA CHAKRABORTY"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/3255?orgID=310&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"911020304050","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/APR/abd/ABCCON/BL/25/00024"},{"type":"text","text":"19-Sep-2025"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":" "},{"type":"text","text":"Requested -3 by Raj Kumar Pativada at 19-Sep-2025 12:15:10 PM"},{"type":"text","text":"Issue -2"},{"type":"text","text":"ADITYA CHAKRABORTY"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/3255?orgID=310&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917903770678","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/APR/abd/ABCCON/BL/25/00024"},{"type":"text","text":"19-Sep-2025"},{"type":"text","text":"Blasting Work"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":" "},{"type":"text","text":"Requested -3 by Raj Kumar Pativada at 19-Sep-2025 12:15:10 PM"},{"type":"text","text":"Issue -2"},{"type":"text","text":"ADITYA CHAKRABORTY"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/3255?orgID=310&dlType=viewWorkPermit"}]}]}}}


### End Event Execution ###


### Start Event Execution ###


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


# Calling SendNotificationToAskUserConsent function for asking user consent #