1610 lines
124 KiB
Plaintext
Executable File
1610 lines
124 KiB
Plaintext
Executable File
[2025-05-27 19:40:02.717797] [notice] Logging level set to:debug
|
||
[2025-05-27 19:40:02.717979] [debug] valor del webhook: {"uuid":"2c3bf59c-e30c-4eed-a81a-5608c37d8a9e","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:40:02.754940] [debug] valor el evento recibido por webhook: job.edit
|
||
|
||
[2025-05-27 19:40:02.755151] [debug] Valor de JSON: {"uuid":"2c3bf59c-e30c-4eed-a81a-5608c37d8a9e","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:40:02.755408] [debug] Se actualiza un trabajo
|
||
|
||
[2025-05-27 19:40:02.755462] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||
[2025-05-27 19:40:18.488338] [notice] Logging level set to:debug
|
||
[2025-05-27 19:40:18.488765] [debug] valor del webhook: {"uuid":"20c5620b-ba71-4362-b8c0-c52058ea4bd7","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:40:18.517045] [debug] valor el evento recibido por webhook: job.edit
|
||
|
||
[2025-05-27 19:40:18.517190] [debug] Valor de JSON: {"uuid":"20c5620b-ba71-4362-b8c0-c52058ea4bd7","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:40:18.517429] [debug] Se actualiza un trabajo
|
||
|
||
[2025-05-27 19:40:18.517484] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||
[2025-05-27 19:40:22.115401] [notice] Logging level set to:debug
|
||
[2025-05-27 19:40:22.115725] [debug] valor del webhook: {"uuid":"39c96b62-1a12-411b-af38-fe166a6febf8","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:40:22.148391] [debug] valor el evento recibido por webhook: job.edit
|
||
|
||
[2025-05-27 19:40:22.148564] [debug] Valor de JSON: {"uuid":"39c96b62-1a12-411b-af38-fe166a6febf8","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:40:22.148753] [debug] Se actualiza un trabajo
|
||
|
||
[2025-05-27 19:40:22.148828] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||
[2025-05-27 19:40:22.148880] [debug] El instalador cambió de null a un valor
|
||
[2025-05-27 19:40:22.148942] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ******
|
||
|
||
[2025-05-27 19:40:22.149050] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"39c96b62-1a12-411b-af38-fe166a6febf8","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:40:22.149111] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"39c96b62-1a12-411b-af38-fe166a6febf8","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:40:22.149173] [debug] Valor de $reprogramming en verifyJobActionToDo: false
|
||
|
||
[2025-05-27 19:40:22.149221] [debug] Valor de $changeInstaller en verifyJobActionToDo: false
|
||
|
||
[2025-05-27 19:40:22.149281] [debug] Valor de $installersData en verifyJobActionToDo: {
|
||
"instaladores": [
|
||
{
|
||
"id": 1019,
|
||
"nombre": "Mucio Robledo",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1173,
|
||
"nombre": "Angel Arvizu",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1172,
|
||
"nombre": "Juan Rostro",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1015,
|
||
"nombre": "Daniel Humberto",
|
||
"whatsapp": "4181878106"
|
||
}
|
||
]
|
||
}
|
||
|
||
[2025-05-27 19:40:22.190372] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true}
|
||
|
||
[2025-05-27 19:40:22.190506] [debug] Número de WhatsApp del Instalador: 4181878106
|
||
|
||
[2025-05-27 19:40:22.221954] [debug] Valor de $installerFullName: Mucio Robledo Villegas
|
||
|
||
[2025-05-27 19:40:22.287362] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783
|
||
|
||
[2025-05-27 19:40:22.287406] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 19:40:22.287491] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 19:40:22.291043] [debug] Se encontró un tipo de contacto whatsapp
|
||
|
||
Enviando mensaje de trabajo para el cliente
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false
|
||
|
||
DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: false
|
||
|
||
Enviando notificación normal de visita técnica al cliente, valor de reprogramming y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181148783",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👤 *Daniel Humberto Soto Villegas*", "#️⃣ *54*", "🗓️ *31/05/2025* a las 🕑 *02:00 PM* aproximadamente", "👷🏻♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."],
|
||
"template_uuid": "07cfbc6e394044608485b530a27177d0",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"4d5485cf19a1485ead111be93be148a1","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 19:40:23.157758] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s).
|
||
|
||
[2025-05-27 19:40:23.157871] [debug] Valor de $title en verifyJobActionToDo: [NOTIFICACION-PENDIENTE]Ir a checar instalación
|
||
|
||
[2025-05-27 19:40:23.239495] [debug] Valor de $title después de quitar el prefijo en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 19:40:23.239542] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: false
|
||
|
||
[2025-05-27 19:40:23.239552] [debug] No se cambió el instalador
|
||
|
||
Enviando mensaje de tarea al instalador
|
||
|
||
Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*31\/05\/2025* a las \ud83d\udd51 *02:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false
|
||
|
||
Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181878106",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👷🏻♂️ *Mucio Robledo Villegas* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *31/05/2025* a las 🕑 *02:00 PM* aproximadamente", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"],
|
||
"template_uuid": "88eeb6420a214fd8870dd28d741021c4",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"f415a5bd6dff4af09ada6e1cc01b43c6","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 19:40:24.125391] [notice] Logging level set to:debug
|
||
[2025-05-27 19:40:24.125544] [debug] valor del webhook: {"uuid":"ec39e43a-c954-40ce-838a-bb70085b8875","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:40:24.166703] [debug] valor el evento recibido por webhook: job.edit
|
||
|
||
[2025-05-27 19:40:24.166842] [debug] Valor de JSON: {"uuid":"ec39e43a-c954-40ce-838a-bb70085b8875","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:40:24.166976] [debug] Se actualiza un trabajo
|
||
|
||
[2025-05-27 19:40:24.169734] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||
[2025-05-27 19:40:24.169838] [debug] No hubo cambio en el instalador ni en la fecha
|
||
[2025-05-27 19:40:59.270200] [notice] Logging level set to:debug
|
||
[2025-05-27 19:40:59.270286] [debug] valor del webhook: {"uuid":"a6d8aeec-910b-40ad-b0c1-5881b16a31fe","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:40:59.301765] [debug] valor el evento recibido por webhook: job.edit
|
||
|
||
[2025-05-27 19:40:59.301824] [debug] Valor de JSON: {"uuid":"a6d8aeec-910b-40ad-b0c1-5881b16a31fe","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:40:59.306039] [debug] Se actualiza un trabajo
|
||
|
||
[2025-05-27 19:40:59.306077] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||
[2025-05-27 19:40:59.306092] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador
|
||
[2025-05-27 19:40:59.306116] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ******
|
||
|
||
[2025-05-27 19:40:59.306178] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"a6d8aeec-910b-40ad-b0c1-5881b16a31fe","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:40:59.306195] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"a6d8aeec-910b-40ad-b0c1-5881b16a31fe","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:40:59.306205] [debug] Valor de $reprogramming en verifyJobActionToDo: true
|
||
|
||
[2025-05-27 19:40:59.306211] [debug] Valor de $changeInstaller en verifyJobActionToDo: false
|
||
|
||
[2025-05-27 19:40:59.306229] [debug] Valor de $installersData en verifyJobActionToDo: {
|
||
"instaladores": [
|
||
{
|
||
"id": 1019,
|
||
"nombre": "Mucio Robledo",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1173,
|
||
"nombre": "Angel Arvizu",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1172,
|
||
"nombre": "Juan Rostro",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1015,
|
||
"nombre": "Daniel Humberto",
|
||
"whatsapp": "4181878106"
|
||
}
|
||
]
|
||
}
|
||
|
||
[2025-05-27 19:40:59.346400] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true}
|
||
|
||
[2025-05-27 19:40:59.346460] [debug] Número de WhatsApp del Instalador: 4181878106
|
||
|
||
[2025-05-27 19:40:59.376843] [debug] Valor de $installerFullName: Mucio Robledo Villegas
|
||
|
||
[2025-05-27 19:40:59.441556] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783
|
||
|
||
[2025-05-27 19:40:59.441606] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 19:40:59.441694] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 19:40:59.441740] [debug] Se encontró un tipo de contacto whatsapp
|
||
|
||
Enviando mensaje de trabajo para el cliente
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false
|
||
|
||
DEBUG: Valores antes de la estructura IF - Reprogramming: true, ChangeInstaller: false
|
||
|
||
Enviando notificación de reprogramación al cliente, valor de reprogramming 1 y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181148783",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👤 *Daniel Humberto Soto Villegas*", "#️⃣ *54*", "🗓️ *31/05/2025* a las 🕒 *03:00 PM* aproximadamente", "👷🏻♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."],
|
||
"template_uuid": "bd305d6dba7449e9a6609d5ed434a6c9",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"7a12abbe36914aa891c676991645d07f","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 19:41:00.242465] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s).
|
||
|
||
[2025-05-27 19:41:00.242716] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 19:41:00.242844] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 19:41:00.242968] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false
|
||
|
||
[2025-05-27 19:41:00.243113] [debug] No se cambió el instalador
|
||
|
||
Enviando mensaje de tarea al instalador
|
||
|
||
Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*31\/05\/2025* a las \ud83d\udd52 *03:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false
|
||
|
||
Enviando notificación de reprogramación al instalador, valor de reprogramming 1 y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181878106",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👷🏻♂️ Mucio Robledo Villegas", "#️⃣54", "👤 *[2] Daniel Humberto Soto Villegas*", "☎️ 5214181878106, 5214181148783", "🗓️ *31/05/2025* a las 🕒 *03:00 PM* aproximadamente", "🛠️ Andan mal esos equipos", "📌 https://www.google.com/maps?q=21.1564209,-100.9384185", "🔐 gYAIEK:Be}SK*01z5+/V"],
|
||
"template_uuid": "7eb4d8e27cf740779dd6777fad7ffaf4",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"6fa8178b72db4e97962c39372ea3d017","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 19:41:48.988986] [notice] Logging level set to:debug
|
||
[2025-05-27 19:41:48.989092] [debug] valor del webhook: {"uuid":"c2e9277f-ab83-4281-9c76-59fd9793ca9d","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:41:49.022665] [debug] valor el evento recibido por webhook: job.edit
|
||
|
||
[2025-05-27 19:41:49.022722] [debug] Valor de JSON: {"uuid":"c2e9277f-ab83-4281-9c76-59fd9793ca9d","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:41:49.022926] [debug] Se actualiza un trabajo
|
||
|
||
[2025-05-27 19:41:49.022953] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||
[2025-05-27 19:41:49.022965] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador
|
||
[2025-05-27 19:41:49.023005] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ******
|
||
|
||
[2025-05-27 19:41:49.023061] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"c2e9277f-ab83-4281-9c76-59fd9793ca9d","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:41:49.023078] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"c2e9277f-ab83-4281-9c76-59fd9793ca9d","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:41:49.023089] [debug] Valor de $reprogramming en verifyJobActionToDo: true
|
||
|
||
[2025-05-27 19:41:49.023097] [debug] Valor de $changeInstaller en verifyJobActionToDo: false
|
||
|
||
[2025-05-27 19:41:49.023113] [debug] Valor de $installersData en verifyJobActionToDo: {
|
||
"instaladores": [
|
||
{
|
||
"id": 1019,
|
||
"nombre": "Mucio Robledo",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1173,
|
||
"nombre": "Angel Arvizu",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1172,
|
||
"nombre": "Juan Rostro",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1015,
|
||
"nombre": "Daniel Humberto",
|
||
"whatsapp": "4181878106"
|
||
}
|
||
]
|
||
}
|
||
|
||
[2025-05-27 19:41:49.055370] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true}
|
||
|
||
[2025-05-27 19:41:49.055422] [debug] Número de WhatsApp del Instalador: 4181878106
|
||
|
||
[2025-05-27 19:41:49.088267] [debug] Valor de $installerFullName: Mucio Robledo Villegas
|
||
|
||
[2025-05-27 19:41:49.152280] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783
|
||
|
||
[2025-05-27 19:41:49.152425] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 19:41:49.152553] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 19:41:49.152632] [debug] Se encontró un tipo de contacto whatsapp
|
||
|
||
Enviando mensaje de trabajo para el cliente
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false
|
||
|
||
DEBUG: Valores antes de la estructura IF - Reprogramming: true, ChangeInstaller: false
|
||
|
||
Enviando notificación de reprogramación al cliente, valor de reprogramming 1 y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181148783",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👤 *Daniel Humberto Soto Villegas*", "#️⃣ *54*", "🗓️ *01/06/2025* a las 🕒 *03:00 PM* aproximadamente", "👷🏻♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."],
|
||
"template_uuid": "bd305d6dba7449e9a6609d5ed434a6c9",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"80891af075ea4666b1f4ee78f6025f2b","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 19:41:49.910507] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s).
|
||
|
||
[2025-05-27 19:41:49.911957] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 19:41:49.912060] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 19:41:49.912112] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false
|
||
|
||
[2025-05-27 19:41:49.912153] [debug] No se cambió el instalador
|
||
|
||
Enviando mensaje de tarea al instalador
|
||
|
||
Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*01\/06\/2025* a las \ud83d\udd52 *03:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false
|
||
|
||
Enviando notificación de reprogramación al instalador, valor de reprogramming 1 y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181878106",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👷🏻♂️ Mucio Robledo Villegas", "#️⃣54", "👤 *[2] Daniel Humberto Soto Villegas*", "☎️ 5214181878106, 5214181148783", "🗓️ *01/06/2025* a las 🕒 *03:00 PM* aproximadamente", "🛠️ Andan mal esos equipos", "📌 https://www.google.com/maps?q=21.1564209,-100.9384185", "🔐 gYAIEK:Be}SK*01z5+/V"],
|
||
"template_uuid": "7eb4d8e27cf740779dd6777fad7ffaf4",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"3d5205625582496dba10e31b9e160e59","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 19:43:34.192425] [notice] Logging level set to:debug
|
||
[2025-05-27 19:43:34.192593] [debug] valor del webhook: {"uuid":"5caa3376-db6d-4436-9b7c-26a44593ee91","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:43:34.217736] [debug] valor el evento recibido por webhook: job.edit
|
||
|
||
[2025-05-27 19:43:34.217983] [debug] Valor de JSON: {"uuid":"5caa3376-db6d-4436-9b7c-26a44593ee91","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:43:34.218236] [debug] Se actualiza un trabajo
|
||
|
||
[2025-05-27 19:43:34.218296] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||
[2025-05-27 19:43:34.218337] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador
|
||
[2025-05-27 19:43:34.218386] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ******
|
||
|
||
[2025-05-27 19:43:34.218468] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"5caa3376-db6d-4436-9b7c-26a44593ee91","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:43:34.218513] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"5caa3376-db6d-4436-9b7c-26a44593ee91","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:43:34.218561] [debug] Valor de $reprogramming en verifyJobActionToDo: false
|
||
|
||
[2025-05-27 19:43:34.218596] [debug] Valor de $changeInstaller en verifyJobActionToDo: true
|
||
|
||
[2025-05-27 19:43:34.218641] [debug] Valor de $installersData en verifyJobActionToDo: {
|
||
"instaladores": [
|
||
{
|
||
"id": 1019,
|
||
"nombre": "Mucio Robledo",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1173,
|
||
"nombre": "Angel Arvizu",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1172,
|
||
"nombre": "Juan Rostro",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1015,
|
||
"nombre": "Daniel Humberto",
|
||
"whatsapp": "4181878106"
|
||
}
|
||
]
|
||
}
|
||
|
||
[2025-05-27 19:43:34.250261] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true}
|
||
|
||
[2025-05-27 19:43:34.250392] [debug] Número de WhatsApp del Instalador: 4181878106
|
||
|
||
[2025-05-27 19:43:34.289427] [debug] Valor de $installerFullName: Ángel Arvizu
|
||
|
||
[2025-05-27 19:43:34.380695] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783
|
||
|
||
[2025-05-27 19:43:34.380831] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 19:43:34.380950] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 19:43:34.381031] [debug] Se encontró un tipo de contacto whatsapp
|
||
|
||
Enviando mensaje de trabajo para el cliente
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true
|
||
|
||
DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true
|
||
|
||
Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181148783",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻♂️🔄 para su visita con el folio #️⃣54", "🗓️ *01/06/2025* a las 🕒 *03:00 PM* aproximadamente", "👷🏻♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."],
|
||
"template_uuid": "d684e6fa2ba24593a86c98be1815831d",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"82c60cbad5864cf6aefa023f08c031fe","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 19:43:37.156166] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s).
|
||
|
||
[2025-05-27 19:43:37.156404] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 19:43:37.156528] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 19:43:37.156649] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true
|
||
|
||
[2025-05-27 19:43:37.156757] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó
|
||
|
||
[2025-05-27 19:43:37.203649] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106
|
||
|
||
Enviando mensaje de tarea al instalador
|
||
|
||
Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0fMucio Robledo Villegas","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *\u00c1ngel Arvizu*"}
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true
|
||
|
||
Enviando notificación de cambio de instalador al instalador anterior, valor de reprogramming y valor de changeInstaller 1
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181878106",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👷🏻♂️ 👷🏻♂️Mucio Robledo Villegas", "se te ha desasignado❌ la tarea con el folio ", "#️⃣ *54*", "👤 *Cliente:* [2] Daniel Humberto Soto Villegas", "En tu lugar asistirá el técnico 👷🏻♂️➡️ *Ángel Arvizu*"],
|
||
"template_uuid": "e1aa2b0fd3884595918f4ac2676acd29",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"5ecd5408de09407cb5d94a130f29fb1b","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
Enviando mensaje de tarea al instalador
|
||
|
||
Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*01\/06\/2025* a las \ud83d\udd52 *03:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false
|
||
|
||
Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181878106",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👷🏻♂️ *Ángel Arvizu* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *01/06/2025* a las 🕒 *03:00 PM* aproximadamente", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"],
|
||
"template_uuid": "88eeb6420a214fd8870dd28d741021c4",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"47440a12254f47e9aff6c644388dce3a","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 19:50:08.698178] [notice] Logging level set to:debug
|
||
[2025-05-27 19:50:08.698266] [debug] valor del webhook: {"uuid":"730230ec-5c3d-4efc-91e0-077e7cd186b3","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:50:08.722898] [debug] valor el evento recibido por webhook: job.edit
|
||
|
||
[2025-05-27 19:50:08.722955] [debug] Valor de JSON: {"uuid":"730230ec-5c3d-4efc-91e0-077e7cd186b3","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:50:08.723223] [debug] Se actualiza un trabajo
|
||
|
||
[2025-05-27 19:50:08.723248] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||
[2025-05-27 19:50:08.723261] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador
|
||
[2025-05-27 19:50:08.723282] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ******
|
||
|
||
[2025-05-27 19:50:08.723334] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"730230ec-5c3d-4efc-91e0-077e7cd186b3","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:50:08.723351] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"730230ec-5c3d-4efc-91e0-077e7cd186b3","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:50:08.723361] [debug] Valor de $reprogramming en verifyJobActionToDo: false
|
||
|
||
[2025-05-27 19:50:08.723368] [debug] Valor de $changeInstaller en verifyJobActionToDo: true
|
||
|
||
[2025-05-27 19:50:08.723383] [debug] Valor de $installersData en verifyJobActionToDo: {
|
||
"instaladores": [
|
||
{
|
||
"id": 1019,
|
||
"nombre": "Mucio Robledo",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1173,
|
||
"nombre": "Angel Arvizu",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1172,
|
||
"nombre": "Juan Rostro",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1015,
|
||
"nombre": "Daniel Humberto",
|
||
"whatsapp": "4181878106"
|
||
}
|
||
]
|
||
}
|
||
|
||
[2025-05-27 19:50:08.755670] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1172,"unmsId":"2ac31363-6037-40f3-8196-5cc7c71866b0","email":"amazonrostro@gmail.com","firstName":"Juan","lastName":"Rostro","username":"rostro","avatarColor":"#00695c","isActive":true}
|
||
|
||
[2025-05-27 19:50:08.755726] [debug] Número de WhatsApp del Instalador: 4181878106
|
||
|
||
[2025-05-27 19:50:08.791166] [debug] Valor de $installerFullName: Juan Rostro
|
||
|
||
[2025-05-27 19:50:08.882389] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783
|
||
|
||
[2025-05-27 19:50:08.882513] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 19:50:08.882635] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 19:50:08.889816] [debug] Se encontró un tipo de contacto whatsapp
|
||
|
||
Enviando mensaje de trabajo para el cliente
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true
|
||
|
||
DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true
|
||
|
||
Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181148783",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *01/06/2025* a las 🕒 *03:00 PM* aproximadamente", "👷🏻♂️➡️ *Juan Rostro*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."],
|
||
"template_uuid": "d684e6fa2ba24593a86c98be1815831d",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"333acd343aea4583aa8887231437934c","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 19:50:09.952290] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s).
|
||
|
||
[2025-05-27 19:50:09.952542] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 19:50:09.952667] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 19:50:09.952792] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true
|
||
|
||
[2025-05-27 19:50:09.952898] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó
|
||
|
||
[2025-05-27 19:50:09.997595] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106
|
||
|
||
Enviando mensaje de tarea al instalador
|
||
|
||
Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u00c1ngel Arvizu","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *Juan Rostro*"}
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true
|
||
|
||
Enviando notificación de cambio de instalador al instalador anterior, valor de reprogramming y valor de changeInstaller 1
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181878106",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👷🏻♂️ 👷🏻♂️Ángel Arvizu", "se te ha desasignado❌ la tarea con el folio ", "*#️⃣54*", "👤 *Cliente:* [2] Daniel Humberto Soto Villegas", "En tu lugar asistirá el técnico 👷🏻♂️➡️ *Juan Rostro*"],
|
||
"template_uuid": "e1aa2b0fd3884595918f4ac2676acd29",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"086ab88a6c324fd99e18818eaf813c34","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
Enviando mensaje de tarea al instalador
|
||
|
||
Datos de la notificación de tarea: {"installerName":"Juan Rostro","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*01\/06\/2025* a las \ud83d\udd52 *03:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false
|
||
|
||
Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181878106",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👷🏻♂️ *Juan Rostro* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *01/06/2025* a las 🕒 *03:00 PM* aproximadamente", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"],
|
||
"template_uuid": "88eeb6420a214fd8870dd28d741021c4",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"84e09dfcabda413a91da94d0c0f15309","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 19:51:12.870804] [notice] Logging level set to:debug
|
||
[2025-05-27 19:51:12.870893] [debug] valor del webhook: {"uuid":"6bf67e7d-27bc-4415-927a-bd3baf024e07","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:51:12.903228] [debug] valor el evento recibido por webhook: job.edit
|
||
|
||
[2025-05-27 19:51:12.903374] [debug] Valor de JSON: {"uuid":"6bf67e7d-27bc-4415-927a-bd3baf024e07","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:51:12.903606] [debug] Se actualiza un trabajo
|
||
|
||
[2025-05-27 19:51:12.903666] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||
[2025-05-27 19:51:12.903707] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador
|
||
[2025-05-27 19:51:12.903757] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ******
|
||
|
||
[2025-05-27 19:51:12.903840] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"6bf67e7d-27bc-4415-927a-bd3baf024e07","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:51:12.903883] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"6bf67e7d-27bc-4415-927a-bd3baf024e07","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:51:12.903932] [debug] Valor de $reprogramming en verifyJobActionToDo: false
|
||
|
||
[2025-05-27 19:51:12.903966] [debug] Valor de $changeInstaller en verifyJobActionToDo: true
|
||
|
||
[2025-05-27 19:51:12.904011] [debug] Valor de $installersData en verifyJobActionToDo: {
|
||
"instaladores": [
|
||
{
|
||
"id": 1019,
|
||
"nombre": "Mucio Robledo",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1173,
|
||
"nombre": "Angel Arvizu",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1172,
|
||
"nombre": "Juan Rostro",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1015,
|
||
"nombre": "Daniel Humberto",
|
||
"whatsapp": "4181878106"
|
||
}
|
||
]
|
||
}
|
||
|
||
[2025-05-27 19:51:12.936723] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true}
|
||
|
||
[2025-05-27 19:51:12.936779] [debug] Número de WhatsApp del Instalador: 4181878106
|
||
|
||
[2025-05-27 19:51:12.969682] [debug] Valor de $installerFullName: Ángel Arvizu
|
||
|
||
[2025-05-27 19:51:13.033044] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783
|
||
|
||
[2025-05-27 19:51:13.033173] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 19:51:13.033299] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 19:51:13.036921] [debug] Se encontró un tipo de contacto whatsapp
|
||
|
||
Enviando mensaje de trabajo para el cliente
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true
|
||
|
||
DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true
|
||
|
||
Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181148783",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *01/06/2025* a las 🕒 *03:00 PM* aproximadamente", "👷🏻♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."],
|
||
"template_uuid": "d684e6fa2ba24593a86c98be1815831d",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"2dcb1e3560e04e4fb46b2e1cb713af52","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 19:51:13.863202] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s).
|
||
|
||
[2025-05-27 19:51:13.863461] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 19:51:13.863588] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 19:51:13.863708] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true
|
||
|
||
[2025-05-27 19:51:13.863816] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó
|
||
|
||
[2025-05-27 19:51:13.903022] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106
|
||
|
||
Enviando mensaje de tarea al instalador
|
||
|
||
Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0fJuan Rostro","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *\u00c1ngel Arvizu*"}
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true
|
||
|
||
Enviando notificación de cambio de instalador al instalador anterior, valor de reprogramming y valor de changeInstaller 1
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181878106",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👷🏻♂️ 👷🏻♂️Juan Rostro", "se te ha desasignado❌ la tarea con el folio ", "#️⃣54", "👤 *Cliente:* [2] Daniel Humberto Soto Villegas", "En tu lugar asistirá el técnico 👷🏻♂️➡️ *Ángel Arvizu*"],
|
||
"template_uuid": "e1aa2b0fd3884595918f4ac2676acd29",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"21388adec3424cfb9aa756866ea72e01","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
Enviando mensaje de tarea al instalador
|
||
|
||
Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*01\/06\/2025* a las \ud83d\udd52 *03:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false
|
||
|
||
Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181878106",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👷🏻♂️ *Ángel Arvizu* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *01/06/2025* a las 🕒 *03:00 PM* aproximadamente", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"],
|
||
"template_uuid": "88eeb6420a214fd8870dd28d741021c4",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"5783461740e94e17833903ffe4857953","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 19:51:39.691133] [notice] Logging level set to:debug
|
||
[2025-05-27 19:51:39.691446] [debug] valor del webhook: {"uuid":"98bd750d-1777-4f22-a7fc-f56a0dc51378","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:51:39.722738] [debug] valor el evento recibido por webhook: job.edit
|
||
|
||
[2025-05-27 19:51:39.722908] [debug] Valor de JSON: {"uuid":"98bd750d-1777-4f22-a7fc-f56a0dc51378","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:51:39.723180] [debug] Se actualiza un trabajo
|
||
|
||
[2025-05-27 19:51:39.723241] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||
[2025-05-27 19:51:39.723280] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador
|
||
[2025-05-27 19:51:39.723331] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ******
|
||
|
||
[2025-05-27 19:51:39.723414] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"98bd750d-1777-4f22-a7fc-f56a0dc51378","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:51:39.723459] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"98bd750d-1777-4f22-a7fc-f56a0dc51378","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 19:51:39.723498] [debug] Valor de $reprogramming en verifyJobActionToDo: true
|
||
|
||
[2025-05-27 19:51:39.723531] [debug] Valor de $changeInstaller en verifyJobActionToDo: false
|
||
|
||
[2025-05-27 19:51:39.723573] [debug] Valor de $installersData en verifyJobActionToDo: {
|
||
"instaladores": [
|
||
{
|
||
"id": 1019,
|
||
"nombre": "Mucio Robledo",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1173,
|
||
"nombre": "Angel Arvizu",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1172,
|
||
"nombre": "Juan Rostro",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1015,
|
||
"nombre": "Daniel Humberto",
|
||
"whatsapp": "4181878106"
|
||
}
|
||
]
|
||
}
|
||
|
||
[2025-05-27 19:51:39.757066] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true}
|
||
|
||
[2025-05-27 19:51:39.757194] [debug] Número de WhatsApp del Instalador: 4181878106
|
||
|
||
[2025-05-27 19:51:39.787755] [debug] Valor de $installerFullName: Ángel Arvizu
|
||
|
||
[2025-05-27 19:51:39.850306] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783
|
||
|
||
[2025-05-27 19:51:39.850421] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 19:51:39.850542] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 19:51:39.850616] [debug] Se encontró un tipo de contacto whatsapp
|
||
|
||
Enviando mensaje de trabajo para el cliente
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false
|
||
|
||
DEBUG: Valores antes de la estructura IF - Reprogramming: true, ChangeInstaller: false
|
||
|
||
Enviando notificación de reprogramación al cliente, valor de reprogramming 1 y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181148783",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣54*", "🗓️ *28/05/2025* a las 🕒 *03:00 PM* aproximadamente", "👷🏻♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."],
|
||
"template_uuid": "bd305d6dba7449e9a6609d5ed434a6c9",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"f2d2a0b49564490ab8a2b8b1ae50f8ce","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 19:51:40.606304] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s).
|
||
|
||
[2025-05-27 19:51:40.606411] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 19:51:40.606443] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 19:51:40.606477] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false
|
||
|
||
[2025-05-27 19:51:40.606498] [debug] No se cambió el instalador
|
||
|
||
Enviando mensaje de tarea al instalador
|
||
|
||
Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*28\/05\/2025* a las \ud83d\udd52 *03:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false
|
||
|
||
Enviando notificación de reprogramación al instalador, valor de reprogramming 1 y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181878106",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👷🏻♂️ Ángel Arvizu", "#️⃣54", "👤 *[2] Daniel Humberto Soto Villegas*", "☎️ 5214181878106, 5214181148783", "🗓️ *28/05/2025* a las 🕒 *03:00 PM* aproximadamente", "🛠️ Andan mal esos equipos", "📌 https://www.google.com/maps?q=21.1564209,-100.9384185", "🔐 gYAIEK:Be}SK*01z5+/V"],
|
||
"template_uuid": "7eb4d8e27cf740779dd6777fad7ffaf4",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"56edf338abde417187ce3d229cd1c1ea","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 20:12:04.394680] [notice] Logging level set to:debug
|
||
[2025-05-27 20:12:04.394767] [debug] valor del webhook: {"uuid":"db71a6aa-65c0-40e2-90a5-6814ead7c6f2","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 20:12:04.419981] [debug] valor el evento recibido por webhook: job.edit
|
||
|
||
[2025-05-27 20:12:04.420041] [debug] Valor de JSON: {"uuid":"db71a6aa-65c0-40e2-90a5-6814ead7c6f2","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 20:12:04.420254] [debug] Se actualiza un trabajo
|
||
|
||
[2025-05-27 20:12:04.420275] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||
[2025-05-27 20:12:04.420288] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador
|
||
[2025-05-27 20:12:04.420310] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ******
|
||
|
||
[2025-05-27 20:12:04.420361] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"db71a6aa-65c0-40e2-90a5-6814ead7c6f2","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 20:12:04.420377] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"db71a6aa-65c0-40e2-90a5-6814ead7c6f2","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 20:12:04.420387] [debug] Valor de $reprogramming en verifyJobActionToDo: false
|
||
|
||
[2025-05-27 20:12:04.420394] [debug] Valor de $changeInstaller en verifyJobActionToDo: true
|
||
|
||
[2025-05-27 20:12:04.420413] [debug] Valor de $installersData en verifyJobActionToDo: {
|
||
"instaladores": [
|
||
{
|
||
"id": 1019,
|
||
"nombre": "Mucio Robledo",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1173,
|
||
"nombre": "Angel Arvizu",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1172,
|
||
"nombre": "Juan Rostro",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1015,
|
||
"nombre": "Daniel Humberto",
|
||
"whatsapp": "4181878106"
|
||
}
|
||
]
|
||
}
|
||
|
||
[2025-05-27 20:12:04.456681] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true}
|
||
|
||
[2025-05-27 20:12:04.456734] [debug] Número de WhatsApp del Instalador: 4181878106
|
||
|
||
[2025-05-27 20:12:04.498831] [debug] Valor de $installerFullName: Mucio Robledo Villegas
|
||
|
||
[2025-05-27 20:12:04.571357] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783
|
||
|
||
[2025-05-27 20:12:04.571481] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 20:12:04.571602] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 20:12:04.575263] [debug] Se encontró un tipo de contacto whatsapp
|
||
|
||
Enviando mensaje de trabajo para el cliente
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true
|
||
|
||
DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true
|
||
|
||
Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181148783",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *28/05/2025* a las 🕒 *03:00 PM* aproximadamente", "👷🏻♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."],
|
||
"template_uuid": "d684e6fa2ba24593a86c98be1815831d",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"d4c46cc34e454659ae86e99ec3e76618","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 20:12:05.456803] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s).
|
||
|
||
[2025-05-27 20:12:05.456967] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 20:12:05.457034] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 20:12:05.457096] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true
|
||
|
||
[2025-05-27 20:12:05.457145] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó
|
||
|
||
[2025-05-27 20:12:05.494877] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106
|
||
|
||
Enviando mensaje de tarea al instalador
|
||
|
||
Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u00c1ngel Arvizu","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *Mucio Robledo Villegas*"}
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true
|
||
|
||
Enviando notificación de cambio de instalador al instalador anterior, valor de reprogramming y valor de changeInstaller 1
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181878106",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👷🏻♂️ 👷🏻♂️Ángel Arvizu", "se te ha desasignado❌ la tarea con el folio ", "#️⃣54", "👤 *Cliente:* [2] Daniel Humberto Soto Villegas", "En tu lugar asistirá el técnico 👷🏻♂️➡️ *Mucio Robledo Villegas*"],
|
||
"template_uuid": "e1aa2b0fd3884595918f4ac2676acd29",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"7b8e1fc0e3834ef7b287dae99ccfb7d7","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
Enviando mensaje de tarea al instalador
|
||
|
||
Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*28\/05\/2025* a las \ud83d\udd52 *03:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false
|
||
|
||
Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181878106",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👷🏻♂️ *Mucio Robledo Villegas* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *28/05/2025* a las 🕒 *03:00 PM* aproximadamente", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"],
|
||
"template_uuid": "88eeb6420a214fd8870dd28d741021c4",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"658d1815456f477aaab7b7ddff9ab994","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 20:13:04.496330] [notice] Logging level set to:debug
|
||
[2025-05-27 20:13:04.496668] [debug] valor del webhook: {"uuid":"a7f03056-2de0-4212-88bc-863c8cd81291","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 20:13:04.523091] [debug] valor el evento recibido por webhook: job.edit
|
||
|
||
[2025-05-27 20:13:04.523272] [debug] Valor de JSON: {"uuid":"a7f03056-2de0-4212-88bc-863c8cd81291","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 20:13:04.523503] [debug] Se actualiza un trabajo
|
||
|
||
[2025-05-27 20:13:04.523554] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||
[2025-05-27 20:13:04.523592] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador
|
||
[2025-05-27 20:13:04.523639] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ******
|
||
|
||
[2025-05-27 20:13:04.523718] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"a7f03056-2de0-4212-88bc-863c8cd81291","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 20:13:04.523768] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"a7f03056-2de0-4212-88bc-863c8cd81291","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 20:13:04.523804] [debug] Valor de $reprogramming en verifyJobActionToDo: true
|
||
|
||
[2025-05-27 20:13:04.523838] [debug] Valor de $changeInstaller en verifyJobActionToDo: false
|
||
|
||
[2025-05-27 20:13:04.523878] [debug] Valor de $installersData en verifyJobActionToDo: {
|
||
"instaladores": [
|
||
{
|
||
"id": 1019,
|
||
"nombre": "Mucio Robledo",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1173,
|
||
"nombre": "Angel Arvizu",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1172,
|
||
"nombre": "Juan Rostro",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1015,
|
||
"nombre": "Daniel Humberto",
|
||
"whatsapp": "4181878106"
|
||
}
|
||
]
|
||
}
|
||
|
||
[2025-05-27 20:13:04.565129] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true}
|
||
|
||
[2025-05-27 20:13:04.565180] [debug] Número de WhatsApp del Instalador: 4181878106
|
||
|
||
[2025-05-27 20:13:04.595345] [debug] Valor de $installerFullName: Mucio Robledo Villegas
|
||
|
||
[2025-05-27 20:13:04.663584] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783
|
||
|
||
[2025-05-27 20:13:04.663630] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 20:13:04.663721] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 20:13:04.663767] [debug] Se encontró un tipo de contacto whatsapp
|
||
|
||
Enviando mensaje de trabajo para el cliente
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false
|
||
|
||
DEBUG: Valores antes de la estructura IF - Reprogramming: true, ChangeInstaller: false
|
||
|
||
Enviando notificación de reprogramación al cliente, valor de reprogramming 1 y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181148783",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣54*", "🗓️ *29/05/2025* a las 🕒 *03:00 PM* aproximadamente", "👷🏻♂️➡️ *Mucio Robledo Villegas*"],
|
||
"template_uuid": "70579353773f4de1836d4f9b6bf6074d",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"95fe2d55728e4f708bf90f017d9718b3","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 20:13:05.414139] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s).
|
||
|
||
[2025-05-27 20:13:05.414346] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 20:13:05.414452] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 20:13:05.414552] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false
|
||
|
||
[2025-05-27 20:13:05.414664] [debug] No se cambió el instalador
|
||
|
||
Enviando mensaje de tarea al instalador
|
||
|
||
Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*29\/05\/2025* a las \ud83d\udd52 *03:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false
|
||
|
||
Enviando notificación de reprogramación al instalador, valor de reprogramming 1 y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181878106",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👷🏻♂️ Mucio Robledo Villegas", "#️⃣54", "👤 *[2] Daniel Humberto Soto Villegas*", "☎️ 5214181878106, 5214181148783", "🗓️ *29/05/2025* a las 🕒 *03:00 PM* aproximadamente", "🛠️ Andan mal esos equipos", "📌 https://www.google.com/maps?q=21.1564209,-100.9384185", "🔐 gYAIEK:Be}SK*01z5+/V"],
|
||
"template_uuid": "7eb4d8e27cf740779dd6777fad7ffaf4",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"9fd467a777cf458aa24db9bcd4741cc7","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 20:17:47.489377] [notice] Logging level set to:debug
|
||
[2025-05-27 20:17:47.489691] [debug] valor del webhook: {"uuid":"4303a3cb-ac3e-44ad-b669-a6f2ce97a58b","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 20:17:47.514425] [debug] valor el evento recibido por webhook: job.edit
|
||
|
||
[2025-05-27 20:17:47.514569] [debug] Valor de JSON: {"uuid":"4303a3cb-ac3e-44ad-b669-a6f2ce97a58b","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 20:17:47.514817] [debug] Se actualiza un trabajo
|
||
|
||
[2025-05-27 20:17:47.514877] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||
[2025-05-27 20:17:47.514919] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador
|
||
[2025-05-27 20:17:47.514971] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ******
|
||
|
||
[2025-05-27 20:17:47.515074] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"4303a3cb-ac3e-44ad-b669-a6f2ce97a58b","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 20:17:47.515130] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"4303a3cb-ac3e-44ad-b669-a6f2ce97a58b","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 20:17:47.515170] [debug] Valor de $reprogramming en verifyJobActionToDo: true
|
||
|
||
[2025-05-27 20:17:47.515204] [debug] Valor de $changeInstaller en verifyJobActionToDo: false
|
||
|
||
[2025-05-27 20:17:47.515249] [debug] Valor de $installersData en verifyJobActionToDo: {
|
||
"instaladores": [
|
||
{
|
||
"id": 1019,
|
||
"nombre": "Mucio Robledo",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1173,
|
||
"nombre": "Angel Arvizu",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1172,
|
||
"nombre": "Juan Rostro",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1015,
|
||
"nombre": "Daniel Humberto",
|
||
"whatsapp": "4181878106"
|
||
}
|
||
]
|
||
}
|
||
|
||
[2025-05-27 20:17:47.547489] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true}
|
||
|
||
[2025-05-27 20:17:47.547621] [debug] Número de WhatsApp del Instalador: 4181878106
|
||
|
||
[2025-05-27 20:17:47.578680] [debug] Valor de $installerFullName: Mucio Robledo Villegas
|
||
|
||
[2025-05-27 20:17:47.666748] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783
|
||
|
||
[2025-05-27 20:17:47.666884] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 20:17:47.667027] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 20:17:47.671047] [debug] Se encontró un tipo de contacto whatsapp
|
||
|
||
Enviando mensaje de trabajo para el cliente
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false
|
||
|
||
DEBUG: Valores antes de la estructura IF - Reprogramming: true, ChangeInstaller: false
|
||
|
||
Enviando notificación de reprogramación al cliente, valor de reprogramming 1 y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181148783",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣54*", "🗓️ *29/05/2025* a las 🕔 *05:00 PM* aproximadamente", "👷🏻♂️➡️ *Mucio Robledo Villegas*"],
|
||
"template_uuid": "70579353773f4de1836d4f9b6bf6074d",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"a79b407029a64b7bb248b0089f49e356","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 20:17:48.538891] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s).
|
||
|
||
[2025-05-27 20:17:48.539180] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 20:17:48.539361] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 20:17:48.539527] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false
|
||
|
||
[2025-05-27 20:17:48.539774] [debug] No se cambió el instalador
|
||
|
||
Enviando mensaje de tarea al instalador
|
||
|
||
Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*29\/05\/2025* a las \ud83d\udd54 *05:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false
|
||
|
||
Enviando notificación de reprogramación al instalador, valor de reprogramming 1 y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181878106",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👷🏻♂️ Mucio Robledo Villegas", "#️⃣54", "👤 *[2] Daniel Humberto Soto Villegas*", "☎️ 5214181878106, 5214181148783", "🗓️ *29/05/2025* a las 🕔 *05:00 PM* aproximadamente", "🛠️ Andan mal esos equipos", "📌 https://www.google.com/maps?q=21.1564209,-100.9384185", "🔐 gYAIEK:Be}SK*01z5+/V"],
|
||
"template_uuid": "42152c07c67b468ba68e581c0283e22e",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"fa0ba526b37c4fc9be2bdaf441947ccd","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 20:45:08.555311] [notice] Logging level set to:debug
|
||
[2025-05-27 20:45:08.555406] [debug] valor del webhook: {"uuid":"ff355047-cebb-444b-9c3d-f875d1c4eb80","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-30T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 20:45:08.591732] [debug] valor el evento recibido por webhook: job.edit
|
||
|
||
[2025-05-27 20:45:08.592159] [debug] Valor de JSON: {"uuid":"ff355047-cebb-444b-9c3d-f875d1c4eb80","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-30T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 20:45:08.592405] [debug] Se actualiza un trabajo
|
||
|
||
[2025-05-27 20:45:08.592467] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||
[2025-05-27 20:45:08.592521] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador
|
||
[2025-05-27 20:45:08.592582] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ******
|
||
|
||
[2025-05-27 20:45:08.592700] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"ff355047-cebb-444b-9c3d-f875d1c4eb80","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-30T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 20:45:08.592749] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"ff355047-cebb-444b-9c3d-f875d1c4eb80","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-30T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 20:45:08.592788] [debug] Valor de $reprogramming en verifyJobActionToDo: true
|
||
|
||
[2025-05-27 20:45:08.592827] [debug] Valor de $changeInstaller en verifyJobActionToDo: false
|
||
|
||
[2025-05-27 20:45:08.592875] [debug] Valor de $installersData en verifyJobActionToDo: {
|
||
"instaladores": [
|
||
{
|
||
"id": 1019,
|
||
"nombre": "Mucio Robledo",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1173,
|
||
"nombre": "Angel Arvizu",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1172,
|
||
"nombre": "Juan Rostro",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1015,
|
||
"nombre": "Daniel Humberto",
|
||
"whatsapp": "4181878106"
|
||
}
|
||
]
|
||
}
|
||
|
||
[2025-05-27 20:45:08.629574] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true}
|
||
|
||
[2025-05-27 20:45:08.629709] [debug] Número de WhatsApp del Instalador: 4181878106
|
||
|
||
[2025-05-27 20:45:08.668134] [debug] Valor de $installerFullName: Mucio Robledo Villegas
|
||
|
||
[2025-05-27 20:45:08.750946] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783
|
||
|
||
[2025-05-27 20:45:08.751235] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 20:45:08.751377] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 20:45:08.759375] [debug] Se encontró un tipo de contacto whatsapp
|
||
|
||
Enviando mensaje de trabajo para el cliente
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false
|
||
|
||
DEBUG: Valores antes de la estructura IF - Reprogramming: true, ChangeInstaller: false
|
||
|
||
Enviando notificación de reprogramación al cliente, valor de reprogramming 1 y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181148783",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣54*", "🗓️ *30/05/2025* a las 🕔 *05:00 PM* aproximadamente", "👷🏻♂️➡️ *Mucio Robledo Villegas*"],
|
||
"template_uuid": "70579353773f4de1836d4f9b6bf6074d",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"acbd50c95e304a3393f8e71125442575","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 20:45:09.657078] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s).
|
||
|
||
[2025-05-27 20:45:09.657188] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 20:45:09.657217] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 20:45:09.657242] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false
|
||
|
||
[2025-05-27 20:45:09.657258] [debug] No se cambió el instalador
|
||
|
||
Enviando mensaje de tarea al instalador
|
||
|
||
Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*30\/05\/2025* a las \ud83d\udd54 *05:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false
|
||
|
||
Enviando notificación de reprogramación al instalador, valor de reprogramming 1 y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181878106",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👷🏻♂️ *Mucio Robledo Villegas* se reprogramó una tarea con el folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, la nueva fecha será el 🗓️➡️ *30/05/2025* a las 🕔 *05:00 PM* aproximadamente", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"],
|
||
"template_uuid": "88eeb6420a214fd8870dd28d741021c4",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"630a6169c4664d09890bcdffb0f6c13c","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 21:25:17.930980] [notice] Logging level set to:debug
|
||
[2025-05-27 21:25:17.931329] [debug] valor del webhook: {"uuid":"efc7868d-b859-43fb-95a2-a2387ed2fb57","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-30T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 21:25:17.955180] [debug] valor el evento recibido por webhook: job.edit
|
||
|
||
[2025-05-27 21:25:17.955238] [debug] Valor de JSON: {"uuid":"efc7868d-b859-43fb-95a2-a2387ed2fb57","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-30T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 21:25:17.955454] [debug] Se actualiza un trabajo
|
||
|
||
[2025-05-27 21:25:17.955487] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||
[2025-05-27 21:25:17.955498] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador
|
||
[2025-05-27 21:25:17.955527] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ******
|
||
|
||
[2025-05-27 21:25:17.955575] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"efc7868d-b859-43fb-95a2-a2387ed2fb57","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-30T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 21:25:17.955591] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"efc7868d-b859-43fb-95a2-a2387ed2fb57","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-30T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 21:25:17.955601] [debug] Valor de $reprogramming en verifyJobActionToDo: true
|
||
|
||
[2025-05-27 21:25:17.955609] [debug] Valor de $changeInstaller en verifyJobActionToDo: false
|
||
|
||
[2025-05-27 21:25:17.955624] [debug] Valor de $installersData en verifyJobActionToDo: {
|
||
"instaladores": [
|
||
{
|
||
"id": 1019,
|
||
"nombre": "Mucio Robledo",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1173,
|
||
"nombre": "Angel Arvizu",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1172,
|
||
"nombre": "Juan Rostro",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1015,
|
||
"nombre": "Daniel Humberto",
|
||
"whatsapp": "4181878106"
|
||
}
|
||
]
|
||
}
|
||
|
||
[2025-05-27 21:25:17.984384] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true}
|
||
|
||
[2025-05-27 21:25:17.984448] [debug] Número de WhatsApp del Instalador: 4181878106
|
||
|
||
[2025-05-27 21:25:18.014928] [debug] Valor de $installerFullName: Mucio Robledo Villegas
|
||
|
||
[2025-05-27 21:25:18.090785] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783
|
||
|
||
[2025-05-27 21:25:18.090905] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 21:25:18.091043] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 21:25:18.095246] [debug] Se encontró un tipo de contacto whatsapp
|
||
|
||
Enviando mensaje de trabajo para el cliente
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false
|
||
|
||
DEBUG: Valores antes de la estructura IF - Reprogramming: true, ChangeInstaller: false
|
||
|
||
Enviando notificación de reprogramación al cliente, valor de reprogramming 1 y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181148783",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["Estimado cliente 👤 *Daniel Humberto Soto Villegas* se ha reprogramado su visita técnica con folio *#️⃣54*", "🗓️➡️ *31/05/2025* a las 🕔 *05:00 PM* aproximadamente", "👷🏻♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."],
|
||
"template_uuid": "70579353773f4de1836d4f9b6bf6074d",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"f812d72b9bad4b66acc27432b15c8f7f","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 21:25:18.886759] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s).
|
||
|
||
[2025-05-27 21:25:18.887129] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 21:25:18.887351] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 21:25:18.887553] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false
|
||
|
||
[2025-05-27 21:25:18.887746] [debug] No se cambió el instalador
|
||
|
||
Enviando mensaje de tarea al instalador
|
||
|
||
Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*31\/05\/2025* a las \ud83d\udd54 *05:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false
|
||
|
||
Enviando notificación de reprogramación al instalador, valor de reprogramming 1 y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181878106",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👷🏻♂️ *Mucio Robledo Villegas* se reprogramó una tarea con el folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, la nueva fecha será el 🗓️➡️ *31/05/2025* a las 🕔 *05:00 PM* aproximadamente", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"],
|
||
"template_uuid": "88eeb6420a214fd8870dd28d741021c4",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"c0aae270712b4284b1a1d400b138760e","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 21:26:21.929450] [notice] Logging level set to:debug
|
||
[2025-05-27 21:26:21.929552] [debug] valor del webhook: {"uuid":"df89b619-ae0d-4b4e-b105-37fc6b6dbfb1","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 21:26:21.962728] [debug] valor el evento recibido por webhook: job.edit
|
||
|
||
[2025-05-27 21:26:21.963088] [debug] Valor de JSON: {"uuid":"df89b619-ae0d-4b4e-b105-37fc6b6dbfb1","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 21:26:21.963694] [debug] Se actualiza un trabajo
|
||
|
||
[2025-05-27 21:26:21.965094] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||
[2025-05-27 21:26:21.965198] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador
|
||
[2025-05-27 21:26:21.965260] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ******
|
||
|
||
[2025-05-27 21:26:21.965368] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"df89b619-ae0d-4b4e-b105-37fc6b6dbfb1","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 21:26:21.965416] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"df89b619-ae0d-4b4e-b105-37fc6b6dbfb1","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
|
||
|
||
[2025-05-27 21:26:21.965456] [debug] Valor de $reprogramming en verifyJobActionToDo: true
|
||
|
||
[2025-05-27 21:26:21.965516] [debug] Valor de $changeInstaller en verifyJobActionToDo: false
|
||
|
||
[2025-05-27 21:26:21.965564] [debug] Valor de $installersData en verifyJobActionToDo: {
|
||
"instaladores": [
|
||
{
|
||
"id": 1019,
|
||
"nombre": "Mucio Robledo",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1173,
|
||
"nombre": "Angel Arvizu",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1172,
|
||
"nombre": "Juan Rostro",
|
||
"whatsapp": "4181878106"
|
||
},
|
||
{
|
||
"id": 1015,
|
||
"nombre": "Daniel Humberto",
|
||
"whatsapp": "4181878106"
|
||
}
|
||
]
|
||
}
|
||
|
||
[2025-05-27 21:26:22.003457] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true}
|
||
|
||
[2025-05-27 21:26:22.003531] [debug] Número de WhatsApp del Instalador: 4181878106
|
||
|
||
[2025-05-27 21:26:22.047250] [debug] Valor de $installerFullName: Mucio Robledo Villegas
|
||
|
||
[2025-05-27 21:26:22.113622] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783
|
||
|
||
[2025-05-27 21:26:22.113756] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 21:26:22.113903] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||
|
||
[2025-05-27 21:26:22.117643] [debug] Se encontró un tipo de contacto whatsapp
|
||
|
||
Enviando mensaje de trabajo para el cliente
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false
|
||
|
||
DEBUG: Valores antes de la estructura IF - Reprogramming: true, ChangeInstaller: false
|
||
|
||
Enviando notificación de reprogramación al cliente, valor de reprogramming 1 y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181148783",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["Estimado cliente 👤 *Daniel Humberto Soto Villegas* se ha reprogramado su visita técnica con folio *#️⃣54*", "🗓️➡️ *01/06/2025* a las 🕕 *06:00 PM* aproximadamente", "👷🏻♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."],
|
||
"template_uuid": "715eed9d6f2d4d90853f25e296202e00",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"2e184edefdb44934bd3b0f70b92976ac","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|
||
[2025-05-27 21:26:22.848962] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s).
|
||
|
||
[2025-05-27 21:26:22.849066] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 21:26:22.849097] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación
|
||
|
||
[2025-05-27 21:26:22.849138] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false
|
||
|
||
[2025-05-27 21:26:22.849160] [debug] No se cambió el instalador
|
||
|
||
Enviando mensaje de tarea al instalador
|
||
|
||
Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*01\/06\/2025* a las \ud83d\udd55 *06:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||
|
||
DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false
|
||
|
||
Enviando notificación de reprogramación al instalador, valor de reprogramming 1 y valor de changeInstaller
|
||
|
||
La cadena CURL que se envia es: {
|
||
"to": "5214181878106",
|
||
"from": "whatsapp",
|
||
"type": "text",
|
||
"content": {
|
||
"text": "S/M"
|
||
},
|
||
"template_values": ["👷🏻♂️ *Mucio Robledo Villegas* se reprogramó una tarea con el folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, la nueva fecha será el 🗓️➡️ *01/06/2025* a las 🕕 *06:00 PM* aproximadamente", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"],
|
||
"template_uuid": "88eeb6420a214fd8870dd28d741021c4",
|
||
"optin_contact": true
|
||
}
|
||
Response del CallBell: {"message":{"uuid":"6f2d70beaee94baaa7419a135b26aded","status":"enqueued"}}
|
||
La notificación fue enviada correctamente con estado: enqueued
|
||
|