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


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


### Start Event Execution ###


Message : {"EventName":"NOTIFICATION_FOR_WORK_PERMIT_CREATION","EventArgs":[{"Key":"WorkPermitId","Value":"4"},{"Key":"ApproverIds","Value":"[1954]"},{"Key":"SiteName","Value":"Aparna New Site"},{"Key":"CreatedBy","Value":"Lalit Aditya Kola"},{"Key":"WorkPermitUid","Value":"WP/APR/abd/HWW/25/00004"},{"Key":"OrgId","Value":310},{"Key":"OrganisationName","Value":"Aparna Constructions"}]}


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


### End Event Execution ###


Message : {"EventName":"NOTIFICATION_FOR_MOC_CREATION","EventArgs":[{"Key":"MocId","Value":"694"},{"Key":"ApproverIds","Value":"[1954]"},{"Key":"SiteName","Value":"Coimbatore"},{"Key":"CreatedBy","Value":"Lalit Aditya Kola"},{"Key":"MocUid","Value":"M/TTK/COI/NMT/25/00019"},{"Key":"OrgId","Value":387},{"Key":"OrganisationName","Value":"TTK Beta - QA"}]}


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


# Calling SendNotificationForMocCreation function for email/WhatsApp #


Executing email and WhatsApp notifications to MOC approvers


Sending MOC creation email to: lalit.a@osmosys.co


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


New MOC Assigned


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


--- Email response from Osmo-x is 201


Sending MOC creation WhatsApp message to: 919989248964


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919989248964","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_moc_creation_alert_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"M/TTK/COI/NMT/25/00019"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"https://qa-staging.oqsha.com/#/moc/edit-moc/387?orgID=694&dlType=viewMOC"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### Start Event Execution ###


Message : {"EventName":"MOC_APPROVED_INFORM_TO_CREATOR_NOTIFICATION","EventArgs":[{"Key":"CreatorId","Value":"1954"},{"Key":"ApproverName","Value":"Lalit Aditya Kola"},{"Key":"MocId","Value":"694"},{"Key":"MocUid","Value":"M/TTK/COI/NMT/25/00019"},{"Key":"SiteName","Value":"Coimbatore"},{"Key":"OrganisationName","Value":"TTK Beta - QA"},{"Key":"ApprovedOn","Value":"06-Sep-2025 12:30:42 PM"},{"Key":"OrgId","Value":387}]}


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


# Calling SendMOCApprovedInformToCreatorNotification function for email #


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


Sending MOC Approver Clarification email to MOC Creator: lalit.a@osmosys.co


An Approver has Approved your MOC


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


Sending WhatsApp for MOC to user: 1954


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919989248964","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_moc_approved_inform_to_template_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"M/TTK/COI/NMT/25/00019"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"TTK Beta - QA"},{"type":"text","text":"06-Sep-2025 12:30:42 PM"},{"type":"text","text":"https://qa-staging.oqsha.com/#/moc/edit-moc/387?orgID=694&dlType=viewMOC"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


### End Event Execution ###


Message : {"EventName":"WORK_PERMIT_STATUS_CHANGE_TO_APPROVERS","EventArgs":[{"Key":"WorkPermitId","Value":"5"},{"Key":"NewStatus","Value":"Cancelled"},{"Key":"ApproverIds","Value":"[]"},{"Key":"ChangedByName","Value":"Lalit Aditya Kola"},{"Key":"SiteName","Value":"Aparna New Site"},{"Key":"CreatedBy","Value":"Lalit Aditya Kola"},{"Key":"WorkPermitUid","Value":"WP/APR/abd/HWW/25/00005"},{"Key":"OrgId","Value":310},{"Key":"OrganisationName","Value":"Aparna Constructions"}]}


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


# Calling SendNotificationToApproversForWorkPermitStatusChange function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers


Message : {"EventName":"NOTIFICATION_FOR_MOC_CREATION","EventArgs":[{"Key":"MocId","Value":"695"},{"Key":"ApproverIds","Value":"[1]"},{"Key":"SiteName","Value":"Aparna New Site"},{"Key":"CreatedBy","Value":"Lalit Aditya Kola"},{"Key":"MocUid","Value":"M/APR/abd/MOC/25/00013"},{"Key":"OrgId","Value":310},{"Key":"OrganisationName","Value":"Aparna Constructions"}]}


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


# Calling SendNotificationForMocCreation function for email/WhatsApp #


Executing email and WhatsApp notifications to MOC approvers


Sending MOC creation email to: rajkumar.p@osmosys.co


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


New MOC Assigned

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


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


--- Email response from Osmo-x is 201


Sending MOC creation WhatsApp message to: 919160948627


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919160948627","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_moc_creation_alert_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"M/APR/abd/MOC/25/00013"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":"Aparna Constructions"},{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"https://qa-staging.oqsha.com/#/moc/edit-moc/310?orgID=695&dlType=viewMOC"},{"type":"text","text":"EHS Department - Aparna Constructions"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"MOC_STATUS_CHANGE_TO_APPROVERS","EventArgs":[{"Key":"MocId","Value":"695"},{"Key":"NewStatus","Value":"Cancelled"},{"Key":"ApproverIds","Value":"[1]"},{"Key":"ChangedByName","Value":"Lalit Aditya Kola"},{"Key":"SiteName","Value":"Aparna New Site"},{"Key":"CreatedBy","Value":"Lalit Aditya Kola"},{"Key":"MocUid","Value":"M/APR/abd/MOC/25/00013"},{"Key":"OrgId","Value":310},{"Key":"OrganisationName","Value":"Aparna Constructions"}]}


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


# Calling SendNotificationToApproversForMocStatusChange function for email/WhatsApp #


Sending MOC status change email to: rajkumar.p@osmosys.co


MOC Status Updated


Sending MOC status change WhatsApp message to: 919160948627


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919160948627","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_moc_update_template_v6","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"M/APR/abd/MOC/25/00013"},{"type":"text","text":"Cancelled"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":"Aparna Constructions"},{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"https://qa-staging.oqsha.com/#/moc/edit-moc/310?orgID=695&dlType=viewMOC"},{"type":"text","text":"EHS Department - Aparna Constructions"}]}]}}}


Message : {"EventName":"ADD_USER","EventArgs":[{"Key":"DisplayName","Value":"Kona Prashanth"},{"Key":"Password","Value":"$2a$11$/pNVQgVeahW6mPX3qs1jaOk0i6mh4wTw7oJwV45Vsl3Z4dFFxSNgO"},{"Key":"OrganisationName","Value":"TTK Beta - QA"},{"Key":"UserDivisions","Value":"Near Miss, Safety Alert By Visitor, test safety alert category jul 18, Test ticket category, tick-cat-without-checklist, Ticket Category - 1, Ticket Category J, TTK Beta"},{"Key":"UserIncidentSites","Value":"Coimbatore"},{"Key":"OldEmail","Value":null},{"Key":"Email","Value":"saiprashanth.k@osmosys.co"}]}


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


### Started Event for Add User Email ###


Calling Send Email Function for Add User Email


Initializing Email Service Client


Generating Email Request


Welcome to OQSHA


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


--- Email response from Osmo-x is 201


### End Event Execution ###


### Start Event Execution ###


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


### Started Event for Add User Consent Email ###


Message : {"EventName":"NOTIFICATION_FOR_INSPECTION_CREATION","EventArgs":[{"Key":"UserIds","Value":"[1]"},{"Key":"InspectionUID","Value":"I/APR/abd/BBB/25/00004"},{"Key":"Name","Value":"Bar bending "},{"Key":"Type","Value":"Bar bending"},{"Key":"Organisation","Value":"Aparna Constructions"},{"Key":"Site","Value":"Aparna New Site"},{"Key":"Department","Value":" "},{"Key":"Asset","Value":""},{"Key":"Status","Value":"Inspect"},{"Key":"CreatedBy","Value":"Raj Kumar Pativada"},{"Key":"CreatedOn","Value":"06-Sep-2025 01:19:31 PM"}]}


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


# Calling SendNotificationForInspectionCreation function for whatsapp and push notification #


Executing sending notification to associated user through whatsapp


Sending notifications for inspection creation to associated user1


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919160948627","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_inspection_template","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"I/APR/abd/BBB/25/00004"},{"type":"text","text":"Bar bending "},{"type":"text","text":"Bar bending"},{"type":"text","text":"Aparna Constructions"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":" "},{"type":"text","text":""},{"type":"text","text":"Inspect"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"06-Sep-2025 01:19:31 PM"}]}]}}}


Osmo-x WhatsApp Message has been Sent


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


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


Message : {"EventName":"NOTIFICATION_FOR_INSPECTION_UPDATE","EventArgs":[{"Key":"StringIssuerIds","Value":"[1]"},{"Key":"InspectionUID","Value":"I/APR/abd/BBB/25/00004"},{"Key":"Name","Value":"Bar bending "},{"Key":"Site","Value":"Aparna New Site"},{"Key":"InspectedBy","Value":"Raj Kumar Pativada"},{"Key":"InspectedOn","Value":"06-Sep-2025 01:19:31 PM"},{"Key":"InspectionId","Value":"1418"}]}


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


# Calling SendNotificationForInspectionUpdate function for whatsapp and push notification #


Sending notifications for inspection status update to associated user1


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919160948627","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_inspection_assigned_template","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"I/APR/abd/BBB/25/00004"},{"type":"text","text":"Bar bending "},{"type":"text","text":"Aparna New Site"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"06-Sep-2025 01:19:31 PM"},{"type":"text","text":"https://qa-staging.oqsha.com/#/inspection/view/1418"}]}]}}}


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"NOTIFICATION_FOR_WORK_PERMIT_CREATION","EventArgs":[{"Key":"WorkPermitId","Value":"6"},{"Key":"ApproverIds","Value":"[2200]"},{"Key":"SiteName","Value":"Aparna New Site"},{"Key":"CreatedBy","Value":"Raj Kumar Pativada"},{"Key":"WorkPermitUid","Value":"WP/APR/abd/HWW/25/00006"},{"Key":"OrgId","Value":310},{"Key":"OrganisationName","Value":"Aparna Constructions"}]}


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


Message : {"EventName":"NOTIFICATION_FOR_WORK_PERMIT_CREATION","EventArgs":[{"Key":"WorkPermitId","Value":"7"},{"Key":"ApproverIds","Value":"[2169]"},{"Key":"SiteName","Value":"Aparna New Site"},{"Key":"CreatedBy","Value":"Raj Kumar Pativada"},{"Key":"WorkPermitUid","Value":"WP/APR/abd/HWW/25/00007"},{"Key":"OrgId","Value":310},{"Key":"OrganisationName","Value":"Aparna Constructions"}]}


Message : {"EventName":"NOTIFICATION_FOR_WORK_PERMIT_CREATION","EventArgs":[{"Key":"WorkPermitId","Value":"8"},{"Key":"ApproverIds","Value":"[2169]"},{"Key":"SiteName","Value":"Aparna New Site"},{"Key":"CreatedBy","Value":"Raj Kumar Pativada"},{"Key":"WorkPermitUid","Value":"WP/APR/abd/HWW/25/00008"},{"Key":"OrgId","Value":310},{"Key":"OrganisationName","Value":"Aparna Constructions"}]}


Message : {"EventName":"Update_USER","EventArgs":[{"Key":"DisplayName","Value":"Abhi Consent"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"Aparna Constructions"},{"Key":"UserDivisions","Value":"Accident, Accident 1, Asset Related Category, Dancing Category, demo2, Example, Falling Objects, Fly Tipping, Investigation category, Latest Category. edit, Medchal category, Minor injury, Near Miss, New Ticket, New Ticket Category, New ticket category July 07, New ticket category june, New tickettype edit, Running, Snippet, Stuck in Depth, Stuck in Depth- Short, Test Category2, test ticket category 45, Testing 5.4.13, TestingCategory, TestingCategory1, testt, trfhulk,;."},{"Key":"UserIncidentSites","Value":"16 july 2025, 5.4.15 Old App Testing ( dont delete), A789, Ahemdabad, Air ways, Amritsar, Aparna New Site, Aparna Sarovar, Aparna Sarovar27, bandlagudaa12, BandraAXZ, BHEL, daa, Dehradun WERE, Delhi, Delhi region, dep-testing, Department SITE  1 ONLY, Dhruv's Inspection Site, hello14july, HiTech City, HLA Test sites, Humpi, hyderabed, inspection site, Jaipur, Jalepally, Japan, Jones & Jones Pvt Ltd, js-testing, Kalyan nagar, Kanchi, Kanchicafe, Kanto region, Kishan bagh, Kolhapur, Kolkata, Kompally, Ladpur, Lahore - Testing Site, Lakshmana Site, Lalit's Test Site 001, Lalit's test site 003, Lalit-test site, Latur, Lucknow, Malkajgiri, mumbai, Naananagar, New Siteeeeeeee, NFC, ohurhfwiuhwefhih, Old App - 4.15, Osmosys Canada, Osmosys India, Osmosys Software Solution, Osmosys UK, OSS Home, Patancheru, Prashanth site, PTW Notification, PTW-A-R, PTW-I, PTW-I-A, PTW-I-A-R, PTW-I-R, QA Testing for BUG-3038, Rajasthan, Santiago Bernabeu, Silver Hills, Site 123455, Site for deletion, Site for deletions, Site should not be created, SITE TESTING NEW NEW, Site to test allow all users, Site w/o approver, Site w/o issuer, Site w/o Reviewer, site without issuer old app, Site without reviewer, Site-A, Site-A-R, Site-I, Site-I-A, Site-I-A-R-C, Site-I-R, Site-R, Site3, Solar System, Sports ground, T55, tempsite, Test 45, Test batch 19, Test site16, test14, Test23, testing, TestSite24, Thailand, ThelaBazar, Tirumala, Tkolkata123, upperpally, uttarakhand, Vellur"},{"Key":"OldEmail","Value":"borogig225@0tires.com"},{"Key":"Email","Value":"sagaraswar00hguyguy1@gmail.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


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"Update_APP_USER","EventArgs":[{"Key":"DisplayName","Value":"Abhi Consent"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"Aparna Constructions"},{"Key":"UserUid","Value":""},{"Key":"UserDivisions","Value":"Accident, Accident 1, Asset Related Category, Dancing Category, demo2, Example, Falling Objects, Fly Tipping, Investigation category, Latest Category. edit, Medchal category, Minor injury, Near Miss, New Ticket, New Ticket Category, New ticket category July 07, New ticket category june, New tickettype edit, Running, Snippet, Stuck in Depth, Stuck in Depth- Short, Test Category2, test ticket category 45, Testing 5.4.13, TestingCategory, TestingCategory1, testt, trfhulk,;."},{"Key":"UserIncidentSites","Value":"16 july 2025, 5.4.15 Old App Testing ( dont delete), A789, Ahemdabad, Air ways, Amritsar, Aparna New Site, Aparna Sarovar, Aparna Sarovar27, bandlagudaa12, BandraAXZ, BHEL, daa, Dehradun WERE, Delhi, Delhi region, dep-testing, Department SITE  1 ONLY, Dhruv's Inspection Site, hello14july, HiTech City, HLA Test sites, Humpi, hyderabed, inspection site, Jaipur, Jalepally, Japan, Jones & Jones Pvt Ltd, js-testing, Kalyan nagar, Kanchi, Kanchicafe, Kanto region, Kishan bagh, Kolhapur, Kolkata, Kompally, Ladpur, Lahore - Testing Site, Lakshmana Site, Lalit's Test Site 001, Lalit's test site 003, Lalit-test site, Latur, Lucknow, Malkajgiri, mumbai, Naananagar, New Siteeeeeeee, NFC, ohurhfwiuhwefhih, Old App - 4.15, Osmosys Canada, Osmosys India, Osmosys Software Solution, Osmosys UK, OSS Home, Patancheru, Prashanth site, PTW Notification, PTW-A-R, PTW-I, PTW-I-A, PTW-I-A-R, PTW-I-R, QA Testing for BUG-3038, Rajasthan, Santiago Bernabeu, Silver Hills, Site 123455, Site for deletion, Site for deletions, Site should not be created, SITE TESTING NEW NEW, Site to test allow all users, Site w/o approver, Site w/o issuer, Site w/o Reviewer, site without issuer old app, Site without reviewer, Site-A, Site-A-R, Site-I, Site-I-A, Site-I-A-R-C, Site-I-R, Site-R, Site3, Solar System, Sports ground, T55, tempsite, Test 45, Test batch 19, Test site16, test14, Test23, testing, TestSite24, Thailand, ThelaBazar, Tirumala, Tkolkata123, upperpally, uttarakhand, Vellur"},{"Key":"Email","Value":"sagaraswar00hguyguy1@gmail.com"},{"Key":"MobileNumber","Value":"+9172239641788"}]}


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


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


Message : {"EventName":"Update_USER","EventArgs":[{"Key":"DisplayName","Value":"Sagar 72"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"Aparna Constructions"},{"Key":"UserDivisions","Value":"TestingCategory1, Accident, Accident 1, Asset Related Category, Dancing Category, demo2, Electrical Hazard, Fly Tipping, Investigation category, King Kong, Latest Category. edit, Medchal category, Minor injury, New Ticket, New Ticket Category, New ticket category July 07, New ticket category june, New tickettype edit, Running, Stuck in Depth, Stuck in Depth- Short, Test, Test Category2, Testing 5.4.13, testt, trfhulk,;."},{"Key":"UserIncidentSites","Value":"Air ways, Amritsar, Aparna New Site, Aparna Sarovar, Aparna Sarovar27, bandlagudaa12, BandraAXZ, BHEL, daa, Delhi, Delhi region, HiTech City, HLA Test sites, hyderabed, inspection site, Jaipur, Jalepally, js-testing, Kalyan nagar, Kanchi, Kanchicafe, Kanto region, Kishan bagh, Lahore - Testing Site, Lakshmana Site, Lalit's Test Site 001, Lalit's test site 003, Lalit-test site, Latur, Lucknow, Malkajgiri, mumbai, Naananagar, New Siteeeeeeee, ohurhfwiuhwefhih, Osmosys Canada, Osmosys India, Osmosys Software Solution, Osmosys UK, Prashanth site, PTW Notification, PTW-A-R, PTW-I, PTW-I-A, PTW-I-A-R, PTW-I-R, Santiago Bernabeu, Silver Hills, Site for deletion, SITE TESTING NEW NEW, Site w/o approver, Site w/o issuer, Site w/o Reviewer, site without issuer old app, Site without reviewer, Site-A, Site-A-R, Site-I, Site-I-A, Site-I-A-R-C, Site-I-R, Site-R, Site3, Sports ground, Test batch 19, test14, testing, Tkolkata123, upperpally, uttarakhand, Vellur"},{"Key":"OldEmail","Value":""},{"Key":"Email","Value":"sagaraswar001@gmail.com"}]}


Message : {"EventName":"Update_APP_USER","EventArgs":[{"Key":"DisplayName","Value":"Sagar 72"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"Aparna Constructions"},{"Key":"UserUid","Value":""},{"Key":"UserDivisions","Value":"TestingCategory1, Accident, Accident 1, Asset Related Category, Dancing Category, demo2, Electrical Hazard, Fly Tipping, Investigation category, King Kong, Latest Category. edit, Medchal category, Minor injury, New Ticket, New Ticket Category, New ticket category July 07, New ticket category june, New tickettype edit, Running, Stuck in Depth, Stuck in Depth- Short, Test, Test Category2, Testing 5.4.13, testt, trfhulk,;."},{"Key":"UserIncidentSites","Value":"Air ways, Amritsar, Aparna New Site, Aparna Sarovar, Aparna Sarovar27, bandlagudaa12, BandraAXZ, BHEL, daa, Delhi, Delhi region, HiTech City, HLA Test sites, hyderabed, inspection site, Jaipur, Jalepally, js-testing, Kalyan nagar, Kanchi, Kanchicafe, Kanto region, Kishan bagh, Lahore - Testing Site, Lakshmana Site, Lalit's Test Site 001, Lalit's test site 003, Lalit-test site, Latur, Lucknow, Malkajgiri, mumbai, Naananagar, New Siteeeeeeee, ohurhfwiuhwefhih, Osmosys Canada, Osmosys India, Osmosys Software Solution, Osmosys UK, Prashanth site, PTW Notification, PTW-A-R, PTW-I, PTW-I-A, PTW-I-A-R, PTW-I-R, Santiago Bernabeu, Silver Hills, Site for deletion, SITE TESTING NEW NEW, Site w/o approver, Site w/o issuer, Site w/o Reviewer, site without issuer old app, Site without reviewer, Site-A, Site-A-R, Site-I, Site-I-A, Site-I-A-R-C, Site-I-R, Site-R, Site3, Sports ground, Test batch 19, test14, testing, Tkolkata123, upperpally, uttarakhand, Vellur"},{"Key":"Email","Value":"sagaraswar001@gmail.com"},{"Key":"MobileNumber","Value":"+917223964170"}]}


Message : {"EventName":"WORK_PERMIT_APPROVED_INFORM_TO_CREATOR_NOTIFICATION","EventArgs":[{"Key":"CreatorId","Value":"1"},{"Key":"ApproverName","Value":"Sagar 72"},{"Key":"WorkPermitId","Value":"7"},{"Key":"WorkPermitUid","Value":"WP/APR/abd/HWW/25/00007"},{"Key":"SiteName","Value":"Aparna New Site"},{"Key":"OrganisationName","Value":"Aparna Constructions"},{"Key":"ApprovedOn","Value":"06-Sep-2025 01:34:25 PM"},{"Key":"OrgId","Value":310}]}


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


# Calling SendWorkPermitApprovedInformToCreatorNotification function for email #


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


Message : {"EventName":"WORK_PERMIT_APPROVAL_INVITATION_NOTIFICATION","EventArgs":[{"Key":"UserIds","Value":"[2169]"},{"Key":"WorkPermitId","Value":"7"},{"Key":"WorkPermitUid","Value":"WP/APR/abd/HWW/25/00007"},{"Key":"SiteName","Value":"Aparna New Site"},{"Key":"InitiatorName","Value":"Raj Kumar Pativada"},{"Key":"OrganisationName","Value":"Aparna Constructions"},{"Key":"OrgId","Value":310}]}


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


# Calling SendWorkPermitApprovalInvitationNotification function for email/WhatsApp #


Executing email notifications to WorkPermit Approvers about the Pending approval


Message : {"EventName":"NOTIFICATION_FOR_MOC_CREATION","EventArgs":[{"Key":"MocId","Value":"696"},{"Key":"ApproverIds","Value":"[1]"},{"Key":"SiteName","Value":"16 july 2025"},{"Key":"CreatedBy","Value":"Raj Kumar Pativada"},{"Key":"MocUid","Value":"M/APR/16J/(LL/25/00034"},{"Key":"OrgId","Value":310},{"Key":"OrganisationName","Value":"Aparna Constructions"}]}


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


# Calling SendNotificationForMocCreation function for email/WhatsApp #


Executing email and WhatsApp notifications to MOC approvers


Sending MOC creation email to: rajkumar.p@osmosys.co


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


New MOC Assigned


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


--- Email response from Osmo-x is 201


Sending MOC creation WhatsApp message to: 919160948627


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919160948627","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_moc_creation_alert_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"M/APR/16J/(LL/25/00034"},{"type":"text","text":"16 july 2025"},{"type":"text","text":"Aparna Constructions"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"https://qa-staging.oqsha.com/#/moc/edit-moc/310?orgID=696&dlType=viewMOC"},{"type":"text","text":"EHS Department - Aparna Constructions"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"NOTIFICATION_FOR_MOC_CREATION","EventArgs":[{"Key":"MocId","Value":"697"},{"Key":"ApproverIds","Value":"[2078]"},{"Key":"SiteName","Value":"16 july 2025"},{"Key":"CreatedBy","Value":"Raj Kumar Pativada"},{"Key":"MocUid","Value":"M/APR/16J/ANS/25/00019"},{"Key":"OrgId","Value":310},{"Key":"OrganisationName","Value":"Aparna Constructions"}]}


Sending MOC creation email to: aditya.c@osmosys.co


Sending MOC creation WhatsApp message to: 917439381194


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917439381194","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_moc_creation_alert_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"ADITYA CHAKRABORTY"},{"type":"text","text":"M/APR/16J/ANS/25/00019"},{"type":"text","text":"16 july 2025"},{"type":"text","text":"Aparna Constructions"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"https://qa-staging.oqsha.com/#/moc/edit-moc/310?orgID=697&dlType=viewMOC"},{"type":"text","text":"EHS Department - Aparna Constructions"}]}]}}}


Message : {"EventName":"Update_USER","EventArgs":[{"Key":"DisplayName","Value":"Sayan Mondal"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"TTK Beta - QA"},{"Key":"UserDivisions","Value":"Near Miss, Safety Alert By Visitor, test safety alert category jul 18, tick-cat-without-checklist, Ticket Category - 1, Ticket Category J"},{"Key":"UserIncidentSites","Value":"Coimbatore"},{"Key":"OldEmail","Value":""},{"Key":"Email","Value":"sayanm2807@gmail.com"}]}


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


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


Calling Send Email Function for Update User Email


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":"Sayan Mondal"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"TTK Beta - QA"},{"Key":"UserUid","Value":"8967697371"},{"Key":"UserDivisions","Value":"Near Miss, Safety Alert By Visitor, test safety alert category jul 18, tick-cat-without-checklist, Ticket Category - 1, Ticket Category J"},{"Key":"UserIncidentSites","Value":"Coimbatore"},{"Key":"Email","Value":"sayanm2807@gmail.com"},{"Key":"MobileNumber","Value":"+918967697371"}]}


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


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


### 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, Safety Alert By Visitor, test safety alert category jul 18, Test ticket category, tick-cat-without-checklist, Ticket Category - 1, Ticket Category J, TTK Beta"},{"Key":"UserIncidentSites","Value":"Coimbatore, Hosur, Khadri, Regression, Roorkee, SamarSite, site - 2, Sshristi, Testing site, TTK Beta"},{"Key":"OldEmail","Value":""},{"Key":"Email","Value":"rajkumar.p@osmosys.co"}]}


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, Safety Alert By Visitor, test safety alert category jul 18, Test ticket category, tick-cat-without-checklist, Ticket Category - 1, Ticket Category J, TTK Beta"},{"Key":"UserIncidentSites","Value":"Coimbatore, Hosur, Khadri, Regression, Roorkee, SamarSite, site - 2, Sshristi, Testing site, TTK Beta"},{"Key":"Email","Value":"rajkumar.p@osmosys.co"},{"Key":"MobileNumber","Value":"+919160948627"}]}


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


Reading and binding data to Email Template


Message : {"EventName":"NOTIFICATION_FOR_MOC_CREATION","EventArgs":[{"Key":"MocId","Value":"698"},{"Key":"ApproverIds","Value":"[2169]"},{"Key":"SiteName","Value":"Aparna New Site"},{"Key":"CreatedBy","Value":"Raj Kumar Pativada"},{"Key":"MocUid","Value":"M/APR/abd/(LL/25/00003"},{"Key":"OrgId","Value":310},{"Key":"OrganisationName","Value":"Aparna Constructions"}]}


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


# Calling SendNotificationForMocCreation function for email/WhatsApp #


Executing email and WhatsApp notifications to MOC approvers


Sending MOC creation email to: sagaraswar001@gmail.com


Initializing Email Service Client


Generating Email Request


New MOC Assigned


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


--- Email response from Osmo-x is 201


Sending MOC creation WhatsApp message to: 917223964170


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917223964170","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_moc_creation_alert_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sagar 72"},{"type":"text","text":"M/APR/abd/(LL/25/00003"},{"type":"text","text":"Aparna New Site"},{"type":"text","text":"Aparna Constructions"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"https://qa-staging.oqsha.com/#/moc/edit-moc/310?orgID=698&dlType=viewMOC"},{"type":"text","text":"EHS Department - Aparna Constructions"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


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


### Started processing for Health Incident Creation Event ###


Executing email notifications to Supervisor/Site EHS for incident creation for OHC


A Incident - IMF/TTK/COI/III/25/00052 created for a OHC - HT/TTK/COI/MHC/25/00009


Executing whatsapp notifications to Supervisor/Site EHS for incident creation for OHC


Sending WhatsApp for Heath incident creation to User: 1


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919160948627","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_health_incident_creation_notification","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"Abhinav Srivastava"},{"type":"text","text":"IMF/TTK/COI/III/25/00052"},{"type":"text","text":"Raj Kumar Pativada"},{"type":"text","text":"06-Sep-2025 03:08:32 PM"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Create Incident from Health module. Location: "},{"type":"text","text":"https://oqsha.com/#/incident-management/report-incident/view/259"},{"type":"text","text":"EHS Department - TTK Private Limited"}]}]}}}


### Ended processing Health Incident Creation Event ###


Message : {"EventName":"Update_USER","EventArgs":[{"Key":"DisplayName","Value":"Sayan Mondal"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"Aparna Constructions"},{"Key":"UserDivisions","Value":"Accident, Accident 1, Asset Related Category, Dancing Category, demo2, Electrical Hazard, Example, Falling Objects, Fly Tipping, Investigation category, King Kong, Latest Category. edit, Medchal category, Minor injury, Near Miss, New Ticket Category, New ticket category July 07, New ticket category june, Running, Snippet, Stuck in Depth, Stuck in Depth- Short, Test, Test Category2, Testing 5.4.13, TestingCategory, TestingCategory1, trfhulk,;."},{"Key":"UserIncidentSites","Value":"16 july 2025, Aparna New Site, Aparna Sarovar, Osmosys Software Solutionsd"},{"Key":"OldEmail","Value":""},{"Key":"Email","Value":"sayanm2807@gmail.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


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"Update_APP_USER","EventArgs":[{"Key":"DisplayName","Value":"Sayan Mondal"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"Aparna Constructions"},{"Key":"UserUid","Value":"8967697371"},{"Key":"UserDivisions","Value":"Accident, Accident 1, Asset Related Category, Dancing Category, demo2, Electrical Hazard, Example, Falling Objects, Fly Tipping, Investigation category, King Kong, Latest Category. edit, Medchal category, Minor injury, Near Miss, New Ticket Category, New ticket category July 07, New ticket category june, Running, Snippet, Stuck in Depth, Stuck in Depth- Short, Test, Test Category2, Testing 5.4.13, TestingCategory, TestingCategory1, trfhulk,;."},{"Key":"UserIncidentSites","Value":"16 july 2025, Aparna New Site, Aparna Sarovar, Osmosys Software Solutionsd"},{"Key":"Email","Value":"sayanm2807@gmail.com"},{"Key":"MobileNumber","Value":"+918967697371"}]}


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


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


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


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


Message : {"EventName":"WORK_PERMIT_STATUS_CHANGE_TO_APPROVERS","EventArgs":[{"Key":"WorkPermitId","Value":"10"},{"Key":"NewStatus","Value":"Cancelled"},{"Key":"ApproverIds","Value":"[]"},{"Key":"ChangedByName","Value":"Raj Kumar Pativada"},{"Key":"SiteName","Value":"Aparna New Site"},{"Key":"CreatedBy","Value":"Raj Kumar Pativada"},{"Key":"WorkPermitUid","Value":"WP/APR/abd/MMW/25/00002"},{"Key":"OrgId","Value":310},{"Key":"OrganisationName","Value":"Aparna Constructions"}]}


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


# Calling SendNotificationToApproversForWorkPermitStatusChange function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers