Versión 2.6.1 ajuste de la hora, negritas en el folio y el envio correcto de desasignacion de servicio
This commit is contained in:
parent
869331b02c
commit
8e5b144796
0
.vscode/launch.json
vendored
Normal file → Executable file
0
.vscode/launch.json
vendored
Normal file → Executable file
520
data/plugin.log
520
data/plugin.log
@ -1,25 +1,23 @@
|
||||
[2025-01-25 5:17:07.670775] [notice] Logging level set to:debug
|
||||
[2025-01-25 5:17:07.692974] [debug] valor el evento recibido por webhook: job.edit
|
||||
|
||||
[2025-01-25 5:17:07.694156] [debug] Valor de JSON: {"uuid":"579302a7-863f-4b4a-b6ed-f462919d12e7","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1172,"clientId":2,"date":"2025-02-07T12: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":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1019,"clientId":2,"date":"2025-02-07T10: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-01-24 3:49:18.309273] [notice] Logging level set to:debug
|
||||
[2025-01-24 3:49:18.333165] [debug] valor el evento recibido por webhook: job.edit
|
||||
[2025-01-25 5:17:07.694406] [debug] Se actualiza un trabajo
|
||||
|
||||
[2025-01-24 3:49:18.333333] [debug] Valor de JSON: {"uuid":"2f02ac4a-f928-4f68-ac5e-472ba1ed23dc","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1172,"clientId":2,"date":"2025-02-04T05: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":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1173,"clientId":2,"date":"2025-02-04T05: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-01-25 5:17:07.694432] [debug] Valor de json_data: {"uuid":"579302a7-863f-4b4a-b6ed-f462919d12e7","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1172,"clientId":2,"date":"2025-02-07T12: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":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1019,"clientId":2,"date":"2025-02-07T10: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-01-25 5:17:07.694442] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||||
[2025-01-25 5:17:07.694451] [debug] Los datos entityBeforeEdit y entity contienen el campo assignedUserId
|
||||
[2025-01-25 5:17:07.694458] [debug] El instalador cambió y la fecha cambió
|
||||
[2025-01-25 5:17:07.694479] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"579302a7-863f-4b4a-b6ed-f462919d12e7","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1172,"clientId":2,"date":"2025-02-07T12: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":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1019,"clientId":2,"date":"2025-02-07T10: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-01-24 3:49:18.333591] [debug] Se actualiza un trabajo
|
||||
[2025-01-25 5:17:07.694492] [debug] Valor de $clientId en verifyJobActionToDo: 2
|
||||
|
||||
[2025-01-24 3:49:18.333623] [debug] Valor de json_data: {"uuid":"2f02ac4a-f928-4f68-ac5e-472ba1ed23dc","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1172,"clientId":2,"date":"2025-02-04T05: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":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1173,"clientId":2,"date":"2025-02-04T05: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-01-24 3:49:18.333635] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||||
[2025-01-24 3:49:18.333645] [debug] Los datos entityBeforeEdit y entity contienen el campo assignedUserId
|
||||
[2025-01-24 3:49:18.333679] [debug] El campo assignedUserId cambió de un valor a otro y la fecha no cambió
|
||||
[2025-01-24 3:49:18.333703] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"2f02ac4a-f928-4f68-ac5e-472ba1ed23dc","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1172,"clientId":2,"date":"2025-02-04T05: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":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1173,"clientId":2,"date":"2025-02-04T05: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-01-25 5:17:07.694499] [debug] Valor de $installerId en verifyJobActionToDo: 1172
|
||||
|
||||
[2025-01-24 3:49:18.333718] [debug] Valor de $clientId en verifyJobActionToDo: 2
|
||||
[2025-01-25 5:17:07.694505] [debug] Valor de $jobId en verifyJobActionToDo: 23
|
||||
|
||||
[2025-01-24 3:49:18.333725] [debug] Valor de $installerId en verifyJobActionToDo: 1172
|
||||
|
||||
[2025-01-24 3:49:18.333733] [debug] Valor de $jobId en verifyJobActionToDo: 23
|
||||
|
||||
[2025-01-24 3:49:18.333786] [debug] Valor de $installersData en verifyJobActionToDo: {
|
||||
[2025-01-25 5:17:07.694571] [debug] Valor de $installersData en verifyJobActionToDo: {
|
||||
"instaladores": [
|
||||
{
|
||||
"id": 1019,
|
||||
@ -44,37 +42,41 @@
|
||||
]
|
||||
}
|
||||
|
||||
[2025-01-24 3:49:18.366851] [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-01-25 5:17:07.728100] [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-01-24 3:49:18.366909] [debug] tipo de dato de installerWhatsApp: string
|
||||
[2025-01-25 5:17:07.728157] [debug] tipo de dato de installerWhatsApp: string
|
||||
|
||||
[2025-01-24 3:49:18.366920] [debug] Número de WhatsApp del Instalador: 4181878106
|
||||
[2025-01-25 5:17:07.728169] [debug] Número de WhatsApp del Instalador: 4181878106
|
||||
|
||||
[2025-01-24 3:49:18.398832] [debug] Valor de $usersInstallers {"id":1172,"unmsId":"2ac31363-6037-40f3-8196-5cc7c71866b0","email":"amazonrostro@gmail.com","firstName":"Juan","lastName":"Rostro","username":"rostro","avatarColor":"#00695c","isActive":true}
|
||||
[2025-01-25 5:17:07.771620] [debug] Valor de $usersInstallers {"id":1172,"unmsId":"2ac31363-6037-40f3-8196-5cc7c71866b0","email":"amazonrostro@gmail.com","firstName":"Juan","lastName":"Rostro","username":"rostro","avatarColor":"#00695c","isActive":true}
|
||||
|
||||
[2025-01-24 3:49:18.398873] [debug] Valor de $installerFullName: Juan Rostro
|
||||
[2025-01-25 5:17:07.771743] [debug] Valor de $installerFullName: Juan Rostro
|
||||
|
||||
[2025-01-24 3:49:18.486335] [debug] Valor de $arrayClientCRM en verifyJobActionToDo: {"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}
|
||||
[2025-01-25 5:17:07.837168] [debug] Valor de $arrayClientCRM en verifyJobActionToDo: {"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Test","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}
|
||||
|
||||
[2025-01-24 3:49:18.486388] [debug] Dirección completa: Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México
|
||||
[2025-01-25 5:17:07.837291] [debug] Dirección completa: Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México
|
||||
|
||||
[2025-01-24 3:49:18.486402] [debug] URL de Google Maps: https://www.google.com/maps?q=21.1564209,-100.9384185
|
||||
[2025-01-25 5:17:07.837336] [debug] URL de Google Maps: https://www.google.com/maps?q=21.1564209,-100.9384185
|
||||
|
||||
[2025-01-24 3:49:18.486481] [debug] Valor de $arrayPhones en verifyJobActionToDo: {"WhatsNotifica":"4181148783"}
|
||||
[2025-01-25 5:17:07.837444] [debug] Valor de $arrayPhones en verifyJobActionToDo: {"WhatsNotifica":"4181148783"}
|
||||
|
||||
[2025-01-24 3:49:18.486499] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,4181148783
|
||||
[2025-01-25 5:17:07.837486] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,4181148783
|
||||
|
||||
[2025-01-24 3:49:18.486509] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","4181148783"]
|
||||
[2025-01-25 5:17:07.837522] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","4181148783"]
|
||||
|
||||
[2025-01-24 3:49:18.492254] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||||
[2025-01-25 5:17:07.837682] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||||
|
||||
[2025-01-24 3:49:18.492301] [debug] Valor de $resultadoFinalNumerosCliente en verifyJobActionToDo: 5214181878106, 5214181148783
|
||||
[2025-01-25 5:17:07.837730] [debug] Valor de $resultadoFinalNumerosCliente en verifyJobActionToDo: 5214181878106, 5214181148783
|
||||
|
||||
[2025-01-24 3:49:18.492351] [debug] Se encontró un tipo de contacto WhatsNotifica
|
||||
[2025-01-25 5:17:07.841176] [debug] Se encontró un tipo de contacto WhatsNotifica
|
||||
|
||||
Enviando mensaje de trabajo para el cliente
|
||||
|
||||
Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas","jobId":"23","date":"04\/02\/2025 05:00 AM","installerName":"Juan Rostro"}
|
||||
Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas Test","jobId":"23","date":"07\/02\/2025 12:00 PM","installerName":"Juan Rostro"}
|
||||
|
||||
Debugging: reprogramming = true, changeInstaller = true
|
||||
|
||||
Enviando notificación de cambio de instalador al cliente, valor de reprogramming 1 y valor de changeInstaller 1
|
||||
|
||||
La cadena CURL que se envia es: {
|
||||
"to": "5214181148783",
|
||||
@ -83,24 +85,26 @@ La cadena CURL que se envia es: {
|
||||
"content": {
|
||||
"text": "S/M"
|
||||
},
|
||||
"template_values": ["*Daniel Humberto Soto Villegas*", "*#23*", "*04/02/2025 05:00 AM*", "*Juan Rostro*"],
|
||||
"template_values": ["*Daniel Humberto Soto Villegas Test*", "*#23*", "*07/02/2025 12:00 PM*", "*Juan Rostro*"],
|
||||
"template_uuid": "0d57fd210595422caf2f5999642882a3",
|
||||
"optin_contact": true
|
||||
}
|
||||
Response del CallBell: {"message":{"uuid":"23d85d1749a34f4aa4561e18b3a76c43","status":"enqueued"}}
|
||||
Response del CallBell: {"message":{"uuid":"1632bb436b8741868c7e8ac43fa8808e","status":"enqueued"}}
|
||||
La notificación fue enviada correctamente con estado: enqueued
|
||||
|
||||
[2025-01-24 3:49:19.391700] [info] Notificación enviada correctamente al contacto 4181148783 después de 1 intento(s).
|
||||
[2025-01-25 5:17:08.779963] [info] Notificación enviada correctamente al contacto 4181148783 después de 1 intento(s).
|
||||
|
||||
[2025-01-24 3:49:19.391830] [debug] Valor de $installerWhatsApp en verifyJobActionToDo: 4181878106
|
||||
[2025-01-25 5:17:08.780071] [debug] Valor de $installerWhatsApp en verifyJobActionToDo: 4181878106
|
||||
|
||||
[2025-01-24 3:49:19.391884] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó
|
||||
[2025-01-25 5:17:08.780102] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó
|
||||
|
||||
[2025-01-24 3:49:19.427062] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106
|
||||
[2025-01-25 5:17:08.816251] [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":"\u00c1ngel Arvizu","subjectOfChange":"se te ha desasignado la tarea con el folio ","jobId":"23","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico *Juan Rostro*"}
|
||||
Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","subjectOfChange":"se te ha desasignado la tarea con el folio ","jobId":"23","clientFullName":"[2] Daniel Humberto Soto Villegas Test","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico *Juan Rostro*"}
|
||||
|
||||
Enviando notificación de cambio de instalador al instalador, valor de reprogramming y valor de changeInstaller 1
|
||||
|
||||
La cadena CURL que se envia es: {
|
||||
"to": "5214181878106",
|
||||
@ -109,16 +113,18 @@ La cadena CURL que se envia es: {
|
||||
"content": {
|
||||
"text": "S/M"
|
||||
},
|
||||
"template_values": ["Ángel Arvizu", "se te ha desasignado la tarea con el folio ", "*#23*", "[2] Daniel Humberto Soto Villegas", "En tu lugar asistirá el técnico *Juan Rostro*"],
|
||||
"template_values": ["Mucio Robledo Villegas", "se te ha desasignado la tarea con el folio ", "*#23*", "[2] Daniel Humberto Soto Villegas Test", "En tu lugar asistirá el técnico *Juan Rostro*"],
|
||||
"template_uuid": "e1aa2b0fd3884595918f4ac2676acd29",
|
||||
"optin_contact": true
|
||||
}
|
||||
Response del CallBell: {"message":{"uuid":"805438bcb0984986b826ee8be26c0866","status":"enqueued"}}
|
||||
Response del CallBell: {"message":{"uuid":"70c2dfb8350c457a87b7213d58798744","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":"23","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"04\/02\/2025 05:00 AM","jobDescription":"Alinear con la sectorial mas cercana","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||||
Datos de la notificación de tarea: {"installerName":"Juan Rostro","clientFullName":"[2] Daniel Humberto Soto Villegas Test","jobId":"23","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"07\/02\/2025 12:00 PM","jobDescription":"Alinear con la sectorial mas cercana","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||||
|
||||
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",
|
||||
@ -127,33 +133,43 @@ La cadena CURL que se envia es: {
|
||||
"content": {
|
||||
"text": "S/M"
|
||||
},
|
||||
"template_values": ["Juan Rostro", "*#23*", "[2] Daniel Humberto Soto Villegas", "Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México", "5214181878106, 5214181148783", "04/02/2025 05:00 AM", "Alinear con la sectorial mas cercana", "https://www.google.com/maps?q=21.1564209,-100.9384185"],
|
||||
"template_uuid": "b6663394265e4bcdb215369aa9ba0f21",
|
||||
"template_values": ["Juan Rostro", "#23", "[2] Daniel Humberto Soto Villegas Test", "Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México", "5214181878106, 5214181148783", "07/02/2025 12:00 PM", "Alinear con la sectorial mas cercana", "https://www.google.com/maps?q=21.1564209,-100.9384185"],
|
||||
"template_uuid": "42152c07c67b468ba68e581c0283e22e",
|
||||
"optin_contact": true
|
||||
}
|
||||
Response del CallBell: {"message":{"uuid":"01266be614184acc8cfaeeb0316a6289","status":"enqueued"}}
|
||||
Response del CallBell: {"message":{"uuid":"a30a103783024a9194f7b1e42fbddcf1","status":"enqueued"}}
|
||||
La notificación fue enviada correctamente con estado: enqueued
|
||||
|
||||
[2025-01-24 3:54:45.734533] [notice] Logging level set to:debug
|
||||
[2025-01-24 3:54:45.778528] [debug] valor el evento recibido por webhook: job.edit
|
||||
[2025-01-25 16:00:06.564412] [notice] Logging level set to:debug
|
||||
[2025-01-25 16:00:06.952960] [debug] valor el evento recibido por webhook: invoice.add_draft
|
||||
|
||||
[2025-01-24 3:54:45.778708] [debug] Valor de JSON: {"uuid":"97d12c97-54e3-44cb-bde6-cc6a0e5d0182","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1173,"clientId":2,"date":"2025-02-04T05: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":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1172,"clientId":2,"date":"2025-02-04T05: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-01-25 16:00:06.953145] [debug] Valor de JSON: {"uuid":"8c61b78d-9050-4d41-b986-39fa3f2bbf44","changeType":"insert","entity":"invoice","entityId":"1448","eventName":"invoice.add_draft","extraData":{"entity":{"id":1448,"clientId":1,"number":"001412","createdDate":"2025-01-25T10:00:02-0600","dueDate":"2025-02-08T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-01-24T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1451,"type":"service","label":"plan300 25\/12\/2024 \u2013 24\/01\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":103,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":544,"invoiceId":1448,"paymentId":477,"creditNoteId":null,"refundId":null,"amount":180},{"id":545,"invoiceId":1448,"paymentId":478,"creditNoteId":null,"refundId":null,"amount":120}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}}
|
||||
|
||||
[2025-01-24 3:54:45.778994] [debug] Se actualiza un trabajo
|
||||
[2025-01-25 16:00:07.269078] [notice] Logging level set to:debug
|
||||
[2025-01-25 16:00:07.522296] [debug] valor el evento recibido por webhook: invoice.draft_approved
|
||||
|
||||
[2025-01-24 3:54:45.779092] [debug] Valor de json_data: {"uuid":"97d12c97-54e3-44cb-bde6-cc6a0e5d0182","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1173,"clientId":2,"date":"2025-02-04T05: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":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1172,"clientId":2,"date":"2025-02-04T05: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-01-24 3:54:45.779170] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||||
[2025-01-24 3:54:45.779220] [debug] Los datos entityBeforeEdit y entity contienen el campo assignedUserId
|
||||
[2025-01-24 3:54:45.779267] [debug] El campo assignedUserId cambió de un valor a otro y la fecha no cambió
|
||||
[2025-01-24 3:54:45.779331] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"97d12c97-54e3-44cb-bde6-cc6a0e5d0182","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1173,"clientId":2,"date":"2025-02-04T05: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":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1172,"clientId":2,"date":"2025-02-04T05: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-01-25 16:00:07.522469] [debug] Valor de JSON: {"uuid":"33ecc427-a9b1-45ce-831b-61e6394dcd77","changeType":"draft_approved","entity":"invoice","entityId":"1448","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1448,"clientId":1,"number":"001412","createdDate":"2025-01-25T10:00:02-0600","dueDate":"2025-02-08T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-01-24T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1451,"type":"service","label":"plan300 25\/12\/2024 \u2013 24\/01\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":103,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":544,"invoiceId":1448,"paymentId":477,"creditNoteId":null,"refundId":null,"amount":180},{"id":545,"invoiceId":1448,"paymentId":478,"creditNoteId":null,"refundId":null,"amount":120}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}}
|
||||
|
||||
[2025-01-24 3:54:45.779395] [debug] Valor de $clientId en verifyJobActionToDo: 2
|
||||
[2025-01-25 16:08:02.198057] [notice] Logging level set to:debug
|
||||
[2025-01-25 16:08:02.221108] [debug] valor el evento recibido por webhook: job.edit
|
||||
|
||||
[2025-01-24 3:54:45.779443] [debug] Valor de $installerId en verifyJobActionToDo: 1173
|
||||
[2025-01-25 16:08:02.221163] [debug] Valor de JSON: {"uuid":"0121ed66-182a-4217-bed1-d6a9b8ec6b86","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1019,"clientId":2,"date":"2025-02-07T12: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":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1172,"clientId":2,"date":"2025-02-07T12: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-01-24 3:54:45.779503] [debug] Valor de $jobId en verifyJobActionToDo: 23
|
||||
[2025-01-25 16:08:02.222779] [debug] Se actualiza un trabajo
|
||||
|
||||
[2025-01-24 3:54:45.779727] [debug] Valor de $installersData en verifyJobActionToDo: {
|
||||
[2025-01-25 16:08:02.222834] [debug] Valor de json_data: {"uuid":"0121ed66-182a-4217-bed1-d6a9b8ec6b86","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1019,"clientId":2,"date":"2025-02-07T12: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":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1172,"clientId":2,"date":"2025-02-07T12: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-01-25 16:08:02.222846] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||||
[2025-01-25 16:08:02.222856] [debug] Los datos entityBeforeEdit y entity contienen el campo assignedUserId
|
||||
[2025-01-25 16:08:02.222865] [debug] El instalador cambió y la fecha no cambió
|
||||
[2025-01-25 16:08:02.222888] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"0121ed66-182a-4217-bed1-d6a9b8ec6b86","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1019,"clientId":2,"date":"2025-02-07T12: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":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1172,"clientId":2,"date":"2025-02-07T12: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-01-25 16:08:02.222903] [debug] Valor de $clientId en verifyJobActionToDo: 2
|
||||
|
||||
[2025-01-25 16:08:02.222912] [debug] Valor de $installerId en verifyJobActionToDo: 1019
|
||||
|
||||
[2025-01-25 16:08:02.222922] [debug] Valor de $jobId en verifyJobActionToDo: 23
|
||||
|
||||
[2025-01-25 16:08:02.222996] [debug] Valor de $installersData en verifyJobActionToDo: {
|
||||
"instaladores": [
|
||||
{
|
||||
"id": 1019,
|
||||
@ -178,37 +194,41 @@ La notificación fue enviada correctamente con estado: enqueued
|
||||
]
|
||||
}
|
||||
|
||||
[2025-01-24 3:54:45.814189] [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-01-25 16:08:02.258013] [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-01-24 3:54:45.814327] [debug] tipo de dato de installerWhatsApp: string
|
||||
[2025-01-25 16:08:02.258071] [debug] tipo de dato de installerWhatsApp: string
|
||||
|
||||
[2025-01-24 3:54:45.814378] [debug] Número de WhatsApp del Instalador: 4181878106
|
||||
[2025-01-25 16:08:02.258084] [debug] Número de WhatsApp del Instalador: 4181878106
|
||||
|
||||
[2025-01-24 3:54:45.845829] [debug] Valor de $usersInstallers {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true}
|
||||
[2025-01-25 16:08:02.295078] [debug] Valor de $usersInstallers {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true}
|
||||
|
||||
[2025-01-24 3:54:45.845882] [debug] Valor de $installerFullName: Ángel Arvizu
|
||||
[2025-01-25 16:08:02.295131] [debug] Valor de $installerFullName: Mucio Robledo Villegas
|
||||
|
||||
[2025-01-24 3:54:45.914691] [debug] Valor de $arrayClientCRM en verifyJobActionToDo: {"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}
|
||||
[2025-01-25 16:08:02.365844] [debug] Valor de $arrayClientCRM en verifyJobActionToDo: {"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Test","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}
|
||||
|
||||
[2025-01-24 3:54:45.914830] [debug] Dirección completa: Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México
|
||||
[2025-01-25 16:08:02.365910] [debug] Dirección completa: Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México
|
||||
|
||||
[2025-01-24 3:54:45.914885] [debug] URL de Google Maps: https://www.google.com/maps?q=21.1564209,-100.9384185
|
||||
[2025-01-25 16:08:02.365923] [debug] URL de Google Maps: https://www.google.com/maps?q=21.1564209,-100.9384185
|
||||
|
||||
[2025-01-24 3:54:45.915009] [debug] Valor de $arrayPhones en verifyJobActionToDo: {"WhatsNotifica":"4181148783"}
|
||||
[2025-01-25 16:08:02.366007] [debug] Valor de $arrayPhones en verifyJobActionToDo: {"WhatsNotifica":"4181148783"}
|
||||
|
||||
[2025-01-24 3:54:45.915062] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,4181148783
|
||||
[2025-01-25 16:08:02.366023] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,4181148783
|
||||
|
||||
[2025-01-24 3:54:45.915111] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","4181148783"]
|
||||
[2025-01-25 16:08:02.366031] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","4181148783"]
|
||||
|
||||
[2025-01-24 3:54:45.915281] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||||
[2025-01-25 16:08:02.366174] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||||
|
||||
[2025-01-24 3:54:45.915338] [debug] Valor de $resultadoFinalNumerosCliente en verifyJobActionToDo: 5214181878106, 5214181148783
|
||||
[2025-01-25 16:08:02.366194] [debug] Valor de $resultadoFinalNumerosCliente en verifyJobActionToDo: 5214181878106, 5214181148783
|
||||
|
||||
[2025-01-24 3:54:45.920906] [debug] Se encontró un tipo de contacto WhatsNotifica
|
||||
[2025-01-25 16:08:02.369730] [debug] Se encontró un tipo de contacto WhatsNotifica
|
||||
|
||||
Enviando mensaje de trabajo para el cliente
|
||||
|
||||
Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas","jobId":"23","date":"04\/02\/2025 05:00 AM","installerName":"\u00c1ngel Arvizu"}
|
||||
Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas Test","jobId":"23","date":"07\/02\/2025 12:00 PM","installerName":"Mucio Robledo Villegas"}
|
||||
|
||||
Debugging: 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",
|
||||
@ -217,24 +237,26 @@ La cadena CURL que se envia es: {
|
||||
"content": {
|
||||
"text": "S/M"
|
||||
},
|
||||
"template_values": ["*Daniel Humberto Soto Villegas*", "*#23*", "*04/02/2025 05:00 AM*", "*Ángel Arvizu*"],
|
||||
"template_values": ["*Daniel Humberto Soto Villegas Test*", "*#23*", "*07/02/2025 12:00 PM*", "*Mucio Robledo Villegas*"],
|
||||
"template_uuid": "0d57fd210595422caf2f5999642882a3",
|
||||
"optin_contact": true
|
||||
}
|
||||
Response del CallBell: {"message":{"uuid":"1be3306fedfc418484e7b768e93fd432","status":"enqueued"}}
|
||||
Response del CallBell: {"message":{"uuid":"0ae55fe1ae4b441f9a40c0c38bb1cf35","status":"enqueued"}}
|
||||
La notificación fue enviada correctamente con estado: enqueued
|
||||
|
||||
[2025-01-24 3:54:46.814254] [info] Notificación enviada correctamente al contacto 4181148783 después de 1 intento(s).
|
||||
[2025-01-25 16:08:03.181369] [info] Notificación enviada correctamente al contacto 4181148783 después de 1 intento(s).
|
||||
|
||||
[2025-01-24 3:54:46.814506] [debug] Valor de $installerWhatsApp en verifyJobActionToDo: 4181878106
|
||||
[2025-01-25 16:08:03.181613] [debug] Valor de $installerWhatsApp en verifyJobActionToDo: 4181878106
|
||||
|
||||
[2025-01-24 3:54:46.814657] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó
|
||||
[2025-01-25 16:08:03.181737] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó
|
||||
|
||||
[2025-01-24 3:54:46.851881] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106
|
||||
[2025-01-25 16:08:03.218097] [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":"Juan Rostro","subjectOfChange":"se te ha desasignado la tarea con el folio ","jobId":"23","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico *\u00c1ngel Arvizu*"}
|
||||
Datos de la notificación de tarea: {"installerName":"Juan Rostro","subjectOfChange":"se te ha desasignado la tarea con el folio ","jobId":"23","clientFullName":"[2] Daniel Humberto Soto Villegas Test","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico *Mucio Robledo Villegas*"}
|
||||
|
||||
Enviando notificación de cambio de instalador al instalador, valor de reprogramming y valor de changeInstaller 1
|
||||
|
||||
La cadena CURL que se envia es: {
|
||||
"to": "5214181878106",
|
||||
@ -243,16 +265,18 @@ La cadena CURL que se envia es: {
|
||||
"content": {
|
||||
"text": "S/M"
|
||||
},
|
||||
"template_values": ["Juan Rostro", "se te ha desasignado la tarea con el folio ", "23", "[2] Daniel Humberto Soto Villegas", "En tu lugar asistirá el técnico *Ángel Arvizu*"],
|
||||
"template_values": ["Juan Rostro", "se te ha desasignado la tarea con el folio ", "#23", "[2] Daniel Humberto Soto Villegas Test", "En tu lugar asistirá el técnico *Mucio Robledo Villegas*"],
|
||||
"template_uuid": "e1aa2b0fd3884595918f4ac2676acd29",
|
||||
"optin_contact": true
|
||||
}
|
||||
Response del CallBell: {"message":{"uuid":"ef8bd89ca480434e9ac446074c6380e9","status":"enqueued"}}
|
||||
Response del CallBell: {"message":{"uuid":"8e3a2f1e5bb0486db9806c11d6df15da","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":"23","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"04\/02\/2025 05:00 AM","jobDescription":"Alinear con la sectorial mas cercana","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||||
Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas Test","jobId":"23","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"07\/02\/2025 12:00 PM","jobDescription":"Alinear con la sectorial mas cercana","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||||
|
||||
Enviando notificación normal de asignación de tarea al instalador, valor de reprogramming y valor de changeInstaller
|
||||
|
||||
La cadena CURL que se envia es: {
|
||||
"to": "5214181878106",
|
||||
@ -261,206 +285,294 @@ La cadena CURL que se envia es: {
|
||||
"content": {
|
||||
"text": "S/M"
|
||||
},
|
||||
"template_values": ["Ángel Arvizu", "*#23*", "[2] Daniel Humberto Soto Villegas", "Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México", "5214181878106, 5214181148783", "04/02/2025 05:00 AM", "Alinear con la sectorial mas cercana", "https://www.google.com/maps?q=21.1564209,-100.9384185"],
|
||||
"template_values": ["Mucio Robledo Villegas", "#23", "[2] Daniel Humberto Soto Villegas Test", "Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México", "5214181878106, 5214181148783", "07/02/2025 12:00 PM", "Alinear con la sectorial mas cercana", "https://www.google.com/maps?q=21.1564209,-100.9384185"],
|
||||
"template_uuid": "b6663394265e4bcdb215369aa9ba0f21",
|
||||
"optin_contact": true
|
||||
}
|
||||
Response del CallBell: {"message":{"uuid":"a5e4eba50227420caf7cddb0fc8717a5","status":"enqueued"}}
|
||||
Response del CallBell: {"message":{"uuid":"d8eeda24161c4912b0c9dd87cf000e4a","status":"enqueued"}}
|
||||
La notificación fue enviada correctamente con estado: enqueued
|
||||
|
||||
[2025-01-24 4:35:03.392863] [notice] Logging level set to:debug
|
||||
[2025-01-24 4:35:03.481223] [debug] valor el evento recibido por webhook: client.edit
|
||||
[2025-01-25 16:11:42.980844] [notice] Logging level set to:debug
|
||||
[2025-01-25 16:11:43.007235] [debug] valor el evento recibido por webhook: job.edit
|
||||
|
||||
[2025-01-24 4:35:03.481401] [debug] Valor de JSON: {"uuid":"77cc8efa-b15d-4528-8814-09c9cd13499c","changeType":"edit","entity":"client","entityId":"163","eventName":"client.edit","extraData":{"entity":{"id":163,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":163,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
||||
[2025-01-25 16:11:43.007380] [debug] Valor de JSON: {"uuid":"f6c19eca-67f4-49a7-9bb9-4974595ae910","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1173,"clientId":2,"date":"2025-02-07T12: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":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1019,"clientId":2,"date":"2025-02-07T12: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-01-24 4:35:03.481704] [debug] Se actualiza a un cliente
|
||||
[2025-01-24 4:35:03.481798] [debug] Valor de json_data: {"uuid":"77cc8efa-b15d-4528-8814-09c9cd13499c","changeType":"edit","entity":"client","entityId":"163","eventName":"client.edit","extraData":{"entity":{"id":163,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":163,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
||||
[2025-01-24 4:35:03.481859] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||||
[2025-01-24 4:35:03.481908] [debug] Los datos entityBeforeEdit y entity contienen el campo isLead
|
||||
[2025-01-24 4:35:03.481955] [debug] No hubo cambio de true a false en el campo isLead
|
||||
[2025-01-24 4:35:03.482028] [debug] {"uuid":"77cc8efa-b15d-4528-8814-09c9cd13499c","changeType":"edit","entity":"client","entityId":163,"message":null,"clientId":163,"eventName":"client.edit","clientData":{"id":163,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null}
|
||||
[2025-01-25 16:11:43.007672] [debug] Se actualiza un trabajo
|
||||
|
||||
[2025-01-24 4:35:22.925306] [notice] Logging level set to:debug
|
||||
[2025-01-24 4:35:23.179027] [debug] valor el evento recibido por webhook: service.add
|
||||
[2025-01-25 16:11:43.007742] [debug] Valor de json_data: {"uuid":"f6c19eca-67f4-49a7-9bb9-4974595ae910","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1173,"clientId":2,"date":"2025-02-07T12: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":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1019,"clientId":2,"date":"2025-02-07T12: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-01-25 16:11:43.007782] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||||
[2025-01-25 16:11:43.007818] [debug] Los datos entityBeforeEdit y entity contienen el campo assignedUserId
|
||||
[2025-01-25 16:11:43.007855] [debug] El instalador cambió y la fecha no cambió
|
||||
[2025-01-25 16:11:43.007905] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"f6c19eca-67f4-49a7-9bb9-4974595ae910","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1173,"clientId":2,"date":"2025-02-07T12: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":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1019,"clientId":2,"date":"2025-02-07T12: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-01-24 4:35:23.179090] [debug] Valor de JSON: {"uuid":"1c07d3b9-2179-400e-a704-1f1eb9264d6b","changeType":"insert","entity":"service","entityId":"130","eventName":"service.add","extraData":{"entity":{"id":130,"prepaid":false,"clientId":163,"status":7,"name":"INTERMEDIO","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"9a0290aa-e3d5-4597-8f68-729571f76695","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":null}}
|
||||
[2025-01-25 16:11:43.007945] [debug] Valor de $clientId en verifyJobActionToDo: 2
|
||||
|
||||
[2025-01-24 4:35:32.430568] [notice] Logging level set to:debug
|
||||
[2025-01-24 4:35:32.568543] [debug] valor el evento recibido por webhook: service.edit
|
||||
[2025-01-25 16:11:43.007980] [debug] Valor de $installerId en verifyJobActionToDo: 1173
|
||||
|
||||
[2025-01-24 4:35:32.568634] [debug] Valor de JSON: {"uuid":"94459419-9189-4612-855a-93c3d649c010","changeType":"edit","entity":"service","entityId":"130","eventName":"service.edit","extraData":{"entity":{"id":130,"prepaid":false,"clientId":163,"status":7,"name":"INTERMEDIO","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"9a0290aa-e3d5-4597-8f68-729571f76695","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":130,"prepaid":false,"clientId":163,"status":7,"name":"INTERMEDIO","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"9a0290aa-e3d5-4597-8f68-729571f76695","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}}
|
||||
[2025-01-25 16:11:43.008013] [debug] Valor de $jobId en verifyJobActionToDo: 23
|
||||
|
||||
[2025-01-24 6:25:06.379214] [notice] Logging level set to:debug
|
||||
[2025-01-24 6:25:06.939824] [debug] valor el evento recibido por webhook: invoice.overdue
|
||||
[2025-01-25 16:11:43.008097] [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-01-24 6:25:06.939898] [debug] Valor de JSON: {"uuid":"70ecb3b0-3eff-4bcd-8998-076c832270c5","changeType":"overdue","entity":"invoice","entityId":"1436","eventName":"invoice.overdue","extraData":{"entity":{"id":1436,"clientId":118,"number":"001400","createdDate":"2025-01-09T10:00:01-0600","dueDate":"2025-01-23T10:00:01-0600","emailSentDate":"2025-01-24T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-01-07T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1439,"type":"service","label":"plan300 09\/12\/2024 \u2013 08\/01\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":105,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Toro Sentado","clientLastName":"Ram\u00edrez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"56 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}}
|
||||
[2025-01-25 16:11:43.046793] [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-01-24 6:25:06.940144] [debug] Factura vencida
|
||||
[2025-01-25 16:11:43.046926] [debug] tipo de dato de installerWhatsApp: string
|
||||
|
||||
[2025-01-24 6:25:06.940201] [debug] datos del notification para el invoice overdue:{"uuid":"70ecb3b0-3eff-4bcd-8998-076c832270c5","changeType":"overdue","entity":"invoice","entityId":1436,"message":null,"clientId":118,"eventName":"invoice.overdue","clientData":{"id":118,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"56 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-04-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Toro Sentado","lastName":"Ram\u00edrez","username":null,"contacts":[{"id":122,"clientId":118,"email":"pepeeltoro141089@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":119,"clientId":118,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"002180173419260258","clientZoneVisible":true}],"accountBalance":-2400,"accountCredit":0,"accountOutstanding":2400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fb8c00","addressGpsLat":21.1572733,"addressGpsLon":-100.9403274,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1436,"clientId":118,"number":"001400","createdDate":"2025-01-09T10:00:01-0600","dueDate":"2025-01-23T10:00:01-0600","emailSentDate":"2025-01-24T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-01-07T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1439,"type":"service","label":"plan300 09\/12\/2024 \u2013 08\/01\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":105,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Toro Sentado","clientLastName":"Ram\u00edrez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"56 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null}
|
||||
[2025-01-25 16:11:43.046968] [debug] Número de WhatsApp del Instalador: 4181878106
|
||||
|
||||
[2025-01-24 6:25:06.940234] [debug] ***Se notifica al cliente que la factura de su servicio está vencida***
|
||||
[2025-01-25 16:11:43.079803] [debug] Valor de $usersInstallers {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true}
|
||||
|
||||
[2025-01-24 6:25:06.940365] [debug] Numero de cel obtenido
|
||||
[2025-01-25 16:11:43.079854] [debug] Valor de $installerFullName: Ángel Arvizu
|
||||
|
||||
[2025-01-24 6:25:06.940381] [warning] No se encontró un teléfono celular válido para el cliente: 118
|
||||
[2025-01-24 15:48:31.074307] [notice] Logging level set to:debug
|
||||
[2025-01-24 15:48:31.176049] [debug] valor el evento recibido por webhook: client.edit
|
||||
[2025-01-25 16:11:43.153673] [debug] Valor de $arrayClientCRM en verifyJobActionToDo: {"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Test","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}
|
||||
|
||||
[2025-01-24 15:48:31.176217] [debug] Valor de JSON: {"uuid":"1207a9de-5172-44c5-b56f-e9537c3d838a","changeType":"edit","entity":"client","entityId":"163","eventName":"client.edit","extraData":{"entity":{"id":163,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-24T09:48:30-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":163,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
||||
[2025-01-25 16:11:43.153753] [debug] Dirección completa: Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México
|
||||
|
||||
[2025-01-24 15:48:31.176495] [debug] Se actualiza a un cliente
|
||||
[2025-01-24 15:48:31.176604] [debug] Valor de json_data: {"uuid":"1207a9de-5172-44c5-b56f-e9537c3d838a","changeType":"edit","entity":"client","entityId":"163","eventName":"client.edit","extraData":{"entity":{"id":163,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-24T09:48:30-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":163,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
||||
[2025-01-24 15:48:31.176661] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||||
[2025-01-24 15:48:31.176709] [debug] Los datos entityBeforeEdit y entity contienen el campo isLead
|
||||
[2025-01-24 15:48:31.176757] [debug] El campo isLead cambió de true a false
|
||||
[2025-01-24 15:48:31.242400] [info] ID correspondiente a 'Customer Stripe ID': 10
|
||||
[2025-01-25 16:11:43.153774] [debug] URL de Google Maps: https://www.google.com/maps?q=21.1564209,-100.9384185
|
||||
|
||||
[2025-01-24 15:48:31.245258] [info] El valor de 'isLead' es: false
|
||||
[2025-01-25 16:11:43.153882] [debug] Valor de $arrayPhones en verifyJobActionToDo: {"WhatsNotifica":"4181148783"}
|
||||
|
||||
[2025-01-24 15:48:31.245366] [info] El cliente NO es un lead, se procesará
|
||||
[2025-01-25 16:11:43.153997] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,4181148783
|
||||
|
||||
[2025-01-24 15:48:31.245424] [info] Creando el Customer Stripe
|
||||
[2025-01-25 16:11:43.154062] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","4181148783"]
|
||||
|
||||
[2025-01-24 15:48:31.245472] [info] El cliente a procesar es : Juan Ramirez Gueerero
|
||||
[2025-01-25 16:11:43.154372] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||||
|
||||
[2025-01-24 15:48:31.245534] [info] Datos notificationData: {"uuid":"1207a9de-5172-44c5-b56f-e9537c3d838a","changeType":"edit","entity":"client","entityId":163,"message":null,"clientId":163,"eventName":"client.edit","clientData":{"id":163,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-24T09:48:30-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null}
|
||||
[2025-01-25 16:11:43.154472] [debug] Valor de $resultadoFinalNumerosCliente en verifyJobActionToDo: 5214181878106, 5214181148783
|
||||
|
||||
[2025-01-24 15:48:31.245589] [info] Ya dentro del FOREACH!!!
|
||||
[2025-01-25 16:11:43.160531] [debug] Se encontró un tipo de contacto WhatsNotifica
|
||||
|
||||
[2025-01-24 15:48:31.245635] [info] REVISANDO EL PRIMER CONTACTO!!!
|
||||
Enviando mensaje de trabajo para el cliente
|
||||
|
||||
[2025-01-24 15:48:31.245682] [info] SE VALIDA EL EMAIL!!!
|
||||
Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas Test","jobId":"23","date":"07\/02\/2025 12:00 PM","installerName":"\u00c1ngel Arvizu"}
|
||||
|
||||
[2025-01-24 15:48:31.246484] [info] ahora se procede a validar el teléfono!!!
|
||||
Debugging: reprogramming = false, changeInstaller = true
|
||||
|
||||
[2025-01-24 15:48:31.246653] [info] AHORA SE MANDA A CREAR EL CLIENTE A STRIPE!!!
|
||||
Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1
|
||||
|
||||
[2025-01-24 15:48:31.870918] [info] {"id":"cus_Re7MGhVHdTArv4","object":"customer","address":null,"balance":0,"created":1737733711,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 163","discount":null,"email":"rmgjuan@gmail.com","invoice_prefix":"29FB0ED3","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":[],"name":"Juan Ramirez Gueerero","next_invoice_sequence":1,"phone":"4181876543","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null}
|
||||
La cadena CURL que se envia es: {
|
||||
"to": "5214181148783",
|
||||
"from": "whatsapp",
|
||||
"type": "text",
|
||||
"content": {
|
||||
"text": "S/M"
|
||||
},
|
||||
"template_values": ["*Daniel Humberto Soto Villegas Test*", "*#23*", "*07/02/2025 12:00 PM*", "*Ángel Arvizu*"],
|
||||
"template_uuid": "0d57fd210595422caf2f5999642882a3",
|
||||
"optin_contact": true
|
||||
}
|
||||
Response del CallBell: {"message":{"uuid":"41d6cc6557d94b2e861859cbfe1421b8","status":"enqueued"}}
|
||||
La notificación fue enviada correctamente con estado: enqueued
|
||||
|
||||
[2025-01-24 15:48:34.194176] [info] {"id":"cus_Re7MGhVHdTArv4","object":"customer","address":null,"balance":0,"created":1737733711,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 163","discount":null,"email":"rmgjuan@gmail.com","invoice_prefix":"29FB0ED3","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"163"},"name":"Juan Ramirez Gueerero","next_invoice_sequence":1,"phone":"4181876543","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null}
|
||||
[2025-01-25 16:11:44.000124] [info] Notificación enviada correctamente al contacto 4181148783 después de 1 intento(s).
|
||||
|
||||
[2025-01-24 15:48:34.673861] [notice] Logging level set to:debug
|
||||
[2025-01-24 15:48:34.674166] [info] No UUID found in the webhook data
|
||||
[2025-01-24 15:48:36.642779] [info] {"object":"funding_instructions","bank_transfer":{"country":"MX","financial_addresses":[{"spei":{"account_holder_address":{"city":"Ciudad de M\u00e9xico","country":"MX","line1":"Av Paseo de la Reforma 180 piso 29 col Juarez","line2":null,"postal_code":"06600","state":"Ciudad de M\u00e9xico"},"account_holder_name":"SIIP INTERNET","bank_address":{"city":"Naucalpan","country":"MX","line1":"Blvd. Manuel Avila Camacho 1902","line2":"Planta Baja, Cd. Satelite","postal_code":"C.P. 53100","state":"Estado de Mexico"},"bank_code":"124","bank_name":"CITI MEXICO","clabe":"124180636412837853"},"supported_networks":["spei"],"type":"spei"}],"type":"mx_bank_transfer"},"currency":"mxn","funding_type":"bank_transfer","livemode":false}
|
||||
[2025-01-25 16:11:44.000235] [debug] Valor de $installerWhatsApp en verifyJobActionToDo: 4181878106
|
||||
|
||||
[2025-01-24 15:48:36.960540] [info] CLABE guardada en metadata: 124180636412837853
|
||||
[2025-01-25 16:11:44.000266] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó
|
||||
|
||||
[2025-01-24 15:48:37.153096] [info] {}
|
||||
[2025-01-25 16:11:44.036245] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106
|
||||
|
||||
[2025-01-24 15:48:37.154201] [debug] {"uuid":"1207a9de-5172-44c5-b56f-e9537c3d838a","changeType":"edit","entity":"client","entityId":163,"message":null,"clientId":163,"eventName":"client.edit","clientData":{"id":163,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-24T09:48:30-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null}
|
||||
Enviando mensaje de tarea al instalador
|
||||
|
||||
[2025-01-24 15:48:37.302537] [notice] Logging level set to:debug
|
||||
[2025-01-24 15:48:37.387998] [debug] valor el evento recibido por webhook: client.edit
|
||||
Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","subjectOfChange":"se te ha desasignado la tarea con el folio ","jobId":"23","clientFullName":"[2] Daniel Humberto Soto Villegas Test","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico *\u00c1ngel Arvizu*"}
|
||||
|
||||
[2025-01-24 15:48:37.388186] [debug] Valor de JSON: {"uuid":"b99cd812-950c-465c-908b-588923d3c934","changeType":"edit","entity":"client","entityId":"163","eventName":"client.edit","extraData":{"entity":{"id":163,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-24T09:48:30-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[{"id":168,"clientId":163,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Re7MGhVHdTArv4","clientZoneVisible":true},{"id":169,"clientId":163,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180636412837853","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":163,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-24T09:48:30-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
||||
Enviando notificación de cambio de instalador al instalador, valor de reprogramming y valor de changeInstaller 1
|
||||
|
||||
[2025-01-24 15:48:37.388487] [debug] Se actualiza a un cliente
|
||||
[2025-01-24 15:48:37.388573] [debug] Valor de json_data: {"uuid":"b99cd812-950c-465c-908b-588923d3c934","changeType":"edit","entity":"client","entityId":"163","eventName":"client.edit","extraData":{"entity":{"id":163,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-24T09:48:30-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[{"id":168,"clientId":163,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Re7MGhVHdTArv4","clientZoneVisible":true},{"id":169,"clientId":163,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180636412837853","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":163,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-24T09:48:30-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
||||
[2025-01-24 15:48:37.388628] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||||
[2025-01-24 15:48:37.388674] [debug] Los datos entityBeforeEdit y entity contienen el campo isLead
|
||||
[2025-01-24 15:48:37.388720] [debug] No hubo cambio de true a false en el campo isLead
|
||||
[2025-01-24 15:48:37.388793] [debug] {"uuid":"b99cd812-950c-465c-908b-588923d3c934","changeType":"edit","entity":"client","entityId":163,"message":null,"clientId":163,"eventName":"client.edit","clientData":{"id":163,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-24T09:48:30-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[{"id":168,"clientId":163,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Re7MGhVHdTArv4","clientZoneVisible":true},{"id":169,"clientId":163,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180636412837853","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null}
|
||||
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 ", "#23", "[2] Daniel Humberto Soto Villegas Test", "En tu lugar asistirá el técnico *Ángel Arvizu*"],
|
||||
"template_uuid": "e1aa2b0fd3884595918f4ac2676acd29",
|
||||
"optin_contact": true
|
||||
}
|
||||
Response del CallBell: {"message":{"uuid":"060ed707f96942fcb9365d10dbe28e10","status":"enqueued"}}
|
||||
La notificación fue enviada correctamente con estado: enqueued
|
||||
|
||||
[2025-01-24 15:48:37.390886] [notice] Logging level set to:debug
|
||||
[2025-01-24 15:48:37.391066] [info] No UUID found in the webhook data
|
||||
[2025-01-24 15:49:18.368396] [notice] Logging level set to:debug
|
||||
[2025-01-24 15:49:18.452897] [debug] valor el evento recibido por webhook: client.edit
|
||||
Enviando mensaje de tarea al instalador
|
||||
|
||||
[2025-01-24 15:49:18.453103] [debug] Valor de JSON: {"uuid":"962918fc-8e81-470a-8782-3a25f0976598","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
||||
Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"[2] Daniel Humberto Soto Villegas Test","jobId":"23","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"07\/02\/2025 12:00 PM","jobDescription":"Alinear con la sectorial mas cercana","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||||
|
||||
[2025-01-24 15:49:18.453388] [debug] Se actualiza a un cliente
|
||||
[2025-01-24 15:49:18.453497] [debug] Valor de json_data: {"uuid":"962918fc-8e81-470a-8782-3a25f0976598","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
||||
[2025-01-24 15:49:18.453558] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||||
[2025-01-24 15:49:18.453605] [debug] Los datos entityBeforeEdit y entity contienen el campo isLead
|
||||
[2025-01-24 15:49:18.453651] [debug] No hubo cambio de true a false en el campo isLead
|
||||
[2025-01-24 15:49:18.453727] [debug] {"uuid":"962918fc-8e81-470a-8782-3a25f0976598","changeType":"edit","entity":"client","entityId":2,"message":null,"clientId":2,"eventName":"client.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null}
|
||||
Enviando notificación normal de asignación de tarea al instalador, valor de reprogramming y valor de changeInstaller
|
||||
|
||||
[2025-01-24 15:49:18.453895] [info] Se proceso los contactos
|
||||
La cadena CURL que se envia es: {
|
||||
"to": "5214181878106",
|
||||
"from": "whatsapp",
|
||||
"type": "text",
|
||||
"content": {
|
||||
"text": "S/M"
|
||||
},
|
||||
"template_values": ["Ángel Arvizu", "*#23*", "[2] Daniel Humberto Soto Villegas Test", "Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México", "5214181878106, 5214181148783", "07/02/2025 12:00 PM", "Alinear con la sectorial mas cercana", "https://www.google.com/maps?q=21.1564209,-100.9384185"],
|
||||
"template_uuid": "b6663394265e4bcdb215369aa9ba0f21",
|
||||
"optin_contact": true
|
||||
}
|
||||
Response del CallBell: {"message":{"uuid":"ae51c48f313949ddb612e16c5376c0c4","status":"enqueued"}}
|
||||
La notificación fue enviada correctamente con estado: enqueued
|
||||
|
||||
[2025-01-24 15:49:18.454161] [info] Se actualizara el correo del cliente en Stripe: dhsv.141089@gmail.com
|
||||
[2025-01-25 16:32:16.606848] [notice] Logging level set to:debug
|
||||
[2025-01-25 16:32:16.641947] [debug] valor el evento recibido por webhook: job.edit
|
||||
|
||||
Dentro del proceso del patch:
|
||||
[2025-01-25 16:32:16.642096] [debug] Valor de JSON: {"uuid":"2228aa84-55bf-4215-9b5b-ec6d48826a7f","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1019,"clientId":2,"date":"2025-02-07T12: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":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1173,"clientId":2,"date":"2025-02-07T12: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":[]}}}
|
||||
|
||||
Datos traidos con payment api: [{"id":517,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-22T03:48:11-0600","amount":235,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":235,"userId":1015,"attributes":[]}]
|
||||
[2025-01-25 16:32:16.642365] [debug] Se actualiza un trabajo
|
||||
|
||||
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas
|
||||
[2025-01-25 16:32:16.642431] [debug] Valor de json_data: {"uuid":"2228aa84-55bf-4215-9b5b-ec6d48826a7f","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1019,"clientId":2,"date":"2025-02-07T12: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":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1173,"clientId":2,"date":"2025-02-07T12: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-01-25 16:32:16.642488] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||||
[2025-01-25 16:32:16.642528] [debug] Los datos entityBeforeEdit y entity contienen el campo assignedUserId
|
||||
[2025-01-25 16:32:16.642564] [debug] El instalador cambió y la fecha no cambió
|
||||
[2025-01-25 16:32:16.642608] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"2228aa84-55bf-4215-9b5b-ec6d48826a7f","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1019,"clientId":2,"date":"2025-02-07T12: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":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1173,"clientId":2,"date":"2025-02-07T12: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":[]}}}
|
||||
|
||||
UUID: 74cc2bb45eb8409f92cd5dba99200d26
|
||||
[2025-01-25 16:32:16.642644] [debug] Valor de $clientId en verifyJobActionToDo: 2
|
||||
|
||||
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb29545 a favor","Monto Ultimo Pago":"\ud83d\udcb2 235","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb29545 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 235\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 22\/01\/2025 03:48 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/01\/2025 09:49\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 22\/01\/2025 03:48 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/01\/2025 09:49","Clabe Interbancaria":"0021804341999569810"}}
|
||||
[2025-01-25 16:32:16.642678] [debug] Valor de $installerId en verifyJobActionToDo: 1019
|
||||
|
||||
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-01-18T00:00:11Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","Monto Ultimo Pago":"💲 235","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 24/01/2025 09:49","user name":"Daniel Humberto 🐁","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 22/01/2025 03:48 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲9545 a favor","Nombre":"👤 Daniel Humberto Soto Villegas","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲9545 a favor\",\"Monto Ultimo Pago\": \"💲 235\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 22/01/2025 03:48 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 24/01/2025 09:49\",\"Clabe Interbancaria\": \"0021804341999569810\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}}
|
||||
[2025-01-25 16:32:16.642712] [debug] Valor de $jobId en verifyJobActionToDo: 23
|
||||
|
||||
[2025-01-24 15:49:20.976260] [info] Tipo de contacto no reconocido: WhatsNotifica
|
||||
[2025-01-25 16:32:16.642796] [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-01-24 15:50:42.518944] [notice] Logging level set to:debug
|
||||
[2025-01-24 15:50:42.617646] [debug] valor el evento recibido por webhook: client.edit
|
||||
[2025-01-25 16:32:16.688707] [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-01-24 15:50:42.617744] [debug] Valor de JSON: {"uuid":"13875e0f-b326-4236-9e0c-1db92426baa8","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas x","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
||||
[2025-01-25 16:32:16.688842] [debug] tipo de dato de installerWhatsApp: string
|
||||
|
||||
[2025-01-24 15:50:42.617964] [debug] Se actualiza a un cliente
|
||||
[2025-01-24 15:50:42.618015] [debug] Valor de json_data: {"uuid":"13875e0f-b326-4236-9e0c-1db92426baa8","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas x","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
||||
[2025-01-24 15:50:42.618032] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||||
[2025-01-24 15:50:42.618041] [debug] Los datos entityBeforeEdit y entity contienen el campo isLead
|
||||
[2025-01-24 15:50:42.618051] [debug] No hubo cambio de true a false en el campo isLead
|
||||
[2025-01-24 15:50:42.618092] [debug] {"uuid":"13875e0f-b326-4236-9e0c-1db92426baa8","changeType":"edit","entity":"client","entityId":2,"message":null,"clientId":2,"eventName":"client.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas x","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null}
|
||||
[2025-01-25 16:32:16.688885] [debug] Número de WhatsApp del Instalador: 4181878106
|
||||
|
||||
[2025-01-24 15:50:42.618216] [info] Se proceso los contactos
|
||||
[2025-01-25 16:32:16.730701] [debug] Valor de $usersInstallers {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true}
|
||||
|
||||
[2025-01-24 15:50:42.618453] [info] Se actualizara el correo del cliente en Stripe: dhsv.141089@gmail.com
|
||||
[2025-01-25 16:32:16.730830] [debug] Valor de $installerFullName: Mucio Robledo Villegas
|
||||
|
||||
Dentro del proceso del patch:
|
||||
[2025-01-25 16:32:16.842267] [debug] Valor de $arrayClientCRM en verifyJobActionToDo: {"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Test","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}
|
||||
|
||||
Datos traidos con payment api: [{"id":517,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-22T03:48:11-0600","amount":235,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":235,"userId":1015,"attributes":[]}]
|
||||
[2025-01-25 16:32:16.842426] [debug] Dirección completa: Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México
|
||||
|
||||
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas x
|
||||
[2025-01-25 16:32:16.842494] [debug] URL de Google Maps: https://www.google.com/maps?q=21.1564209,-100.9384185
|
||||
|
||||
UUID: 74cc2bb45eb8409f92cd5dba99200d26
|
||||
[2025-01-25 16:32:16.842602] [debug] Valor de $arrayPhones en verifyJobActionToDo: {"WhatsNotifica":"4181148783"}
|
||||
|
||||
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas x","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas x","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb29545 a favor","Monto Ultimo Pago":"\ud83d\udcb2 235","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas x\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb29545 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 235\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 22\/01\/2025 03:48 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/01\/2025 09:50\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 22\/01\/2025 03:48 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/01\/2025 09:50","Clabe Interbancaria":"0021804341999569810"}}
|
||||
[2025-01-25 16:32:16.842647] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,4181148783
|
||||
|
||||
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas x","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-01-18T00:00:11Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","Monto Ultimo Pago":"💲 235","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 24/01/2025 09:50","user name":"Daniel Humberto 🐁","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 22/01/2025 03:48 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲9545 a favor","Nombre":"👤 Daniel Humberto Soto Villegas x","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas x\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲9545 a favor\",\"Monto Ultimo Pago\": \"💲 235\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 22/01/2025 03:48 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 24/01/2025 09:50\",\"Clabe Interbancaria\": \"0021804341999569810\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}}
|
||||
[2025-01-25 16:32:16.842684] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","4181148783"]
|
||||
|
||||
[2025-01-24 15:50:45.092567] [info] Tipo de contacto no reconocido: WhatsNotifica
|
||||
[2025-01-25 16:32:16.842849] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
||||
|
||||
[2025-01-24 16:00:05.110285] [notice] Logging level set to:debug
|
||||
[2025-01-24 16:00:05.367860] [debug] valor el evento recibido por webhook: invoice.add_draft
|
||||
[2025-01-25 16:32:16.842905] [debug] Valor de $resultadoFinalNumerosCliente en verifyJobActionToDo: 5214181878106, 5214181148783
|
||||
|
||||
[2025-01-24 16:00:05.367923] [debug] Valor de JSON: {"uuid":"eb6b4bd3-f067-4099-8ba5-7b2c660ab451","changeType":"insert","entity":"invoice","entityId":"1447","eventName":"invoice.add_draft","extraData":{"entity":{"id":1447,"clientId":126,"number":"001411","createdDate":"2025-01-24T10:00:01-0600","dueDate":"2025-02-07T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-01-23T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1450,"type":"service","label":"PREMIUM 24\/12\/2024 \u2013 23\/01\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":108,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL INNU","clientLastName":"RATA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}}
|
||||
[2025-01-25 16:32:16.842974] [debug] Se encontró un tipo de contacto WhatsNotifica
|
||||
|
||||
[2025-01-24 16:00:05.588649] [notice] Logging level set to:debug
|
||||
[2025-01-24 16:00:05.754511] [debug] valor el evento recibido por webhook: invoice.draft_approved
|
||||
Enviando mensaje de trabajo para el cliente
|
||||
|
||||
[2025-01-24 16:00:05.754584] [debug] Valor de JSON: {"uuid":"507f8baa-6eda-407d-a355-01d389d4aa51","changeType":"draft_approved","entity":"invoice","entityId":"1447","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1447,"clientId":126,"number":"001411","createdDate":"2025-01-24T10:00:01-0600","dueDate":"2025-02-07T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-01-23T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1450,"type":"service","label":"PREMIUM 24\/12\/2024 \u2013 23\/01\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":108,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL INNU","clientLastName":"RATA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}}
|
||||
Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas Test","jobId":"23","date":"07\/02\/2025 a las 12:00 PM aproximadamente","installerName":"Mucio Robledo Villegas"}
|
||||
|
||||
[2025-01-24 16:04:53.075215] [notice] Logging level set to:debug
|
||||
[2025-01-24 16:04:53.198448] [debug] valor el evento recibido por webhook: client.edit
|
||||
Debugging: reprogramming = false, changeInstaller = true
|
||||
|
||||
[2025-01-24 16:04:53.198540] [debug] Valor de JSON: {"uuid":"9f38dcba-aa40-42fb-bf8d-c78605e0f225","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Test","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas x","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
||||
Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1
|
||||
|
||||
[2025-01-24 16:04:53.198796] [debug] Se actualiza a un cliente
|
||||
[2025-01-24 16:04:53.198844] [debug] Valor de json_data: {"uuid":"9f38dcba-aa40-42fb-bf8d-c78605e0f225","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Test","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas x","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
||||
[2025-01-24 16:04:53.198869] [debug] Validando claves dentro de entityBeforeEdit y entity
|
||||
[2025-01-24 16:04:53.198880] [debug] Los datos entityBeforeEdit y entity contienen el campo isLead
|
||||
[2025-01-24 16:04:53.198889] [debug] No hubo cambio de true a false en el campo isLead
|
||||
[2025-01-24 16:04:53.198936] [debug] {"uuid":"9f38dcba-aa40-42fb-bf8d-c78605e0f225","changeType":"edit","entity":"client","entityId":2,"message":null,"clientId":2,"eventName":"client.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Test","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null}
|
||||
La cadena CURL que se envia es: {
|
||||
"to": "5214181148783",
|
||||
"from": "whatsapp",
|
||||
"type": "text",
|
||||
"content": {
|
||||
"text": "S/M"
|
||||
},
|
||||
"template_values": ["*Daniel Humberto Soto Villegas Test*", "*#23*", "*07/02/2025 a las 12:00 PM aproximadamente*", "*Mucio Robledo Villegas*"],
|
||||
"template_uuid": "0d57fd210595422caf2f5999642882a3",
|
||||
"optin_contact": true
|
||||
}
|
||||
Response del CallBell: {"message":{"uuid":"321883ffff084d71b73f3b96014527f5","status":"enqueued"}}
|
||||
La notificación fue enviada correctamente con estado: enqueued
|
||||
|
||||
[2025-01-24 16:04:53.199054] [info] Se proceso los contactos
|
||||
[2025-01-25 16:32:17.728960] [info] Notificación enviada correctamente al contacto 4181148783 después de 1 intento(s).
|
||||
|
||||
[2025-01-24 16:04:53.199295] [info] Se actualizara el correo del cliente en Stripe: dhsv.141089@gmail.com
|
||||
[2025-01-25 16:32:17.729016] [debug] Valor de $installerWhatsApp en verifyJobActionToDo: 4181878106
|
||||
|
||||
Dentro del proceso del patch:
|
||||
[2025-01-25 16:32:17.729027] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó
|
||||
|
||||
Datos traidos con payment api: [{"id":517,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-22T03:48:11-0600","amount":235,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":235,"userId":1015,"attributes":[]}]
|
||||
[2025-01-25 16:32:17.757659] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106
|
||||
|
||||
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Test
|
||||
Enviando mensaje de tarea al instalador
|
||||
|
||||
UUID: 74cc2bb45eb8409f92cd5dba99200d26
|
||||
Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","subjectOfChange":"se te ha desasignado la tarea con el folio ","jobId":"23","clientFullName":"[2] Daniel Humberto Soto Villegas Test","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico *Mucio Robledo Villegas*"}
|
||||
|
||||
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Test","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Test","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb29545 a favor","Monto Ultimo Pago":"\ud83d\udcb2 235","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Test\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb29545 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 235\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 22\/01\/2025 03:48 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/01\/2025 10:04\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 22\/01\/2025 03:48 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/01\/2025 10:04","Clabe Interbancaria":"0021804341999569810"}}
|
||||
Enviando notificación de cambio de instalador al instalador, valor de reprogramming y valor de changeInstaller 1
|
||||
|
||||
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Test","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-01-18T00:00:11Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","Monto Ultimo Pago":"💲 235","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 24/01/2025 10:04","user name":"Daniel Humberto 🐁","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 22/01/2025 03:48 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲9545 a favor","Nombre":"👤 Daniel Humberto Soto Villegas Test","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Test\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲9545 a favor\",\"Monto Ultimo Pago\": \"💲 235\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 22/01/2025 03:48 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 24/01/2025 10:04\",\"Clabe Interbancaria\": \"0021804341999569810\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}}
|
||||
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 ", "#23", "[2] Daniel Humberto Soto Villegas Test", "En tu lugar asistirá el técnico *Mucio Robledo Villegas*"],
|
||||
"template_uuid": "e1aa2b0fd3884595918f4ac2676acd29",
|
||||
"optin_contact": true
|
||||
}
|
||||
Response del CallBell: {"message":{"uuid":"5786cdf5735449ad84dd54b67a7a291a","status":"enqueued"}}
|
||||
La notificación fue enviada correctamente con estado: enqueued
|
||||
|
||||
[2025-01-24 16:04:55.647032] [info] Tipo de contacto no reconocido: WhatsNotifica
|
||||
Enviando mensaje de tarea al instalador
|
||||
|
||||
Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas Test","jobId":"23","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"07\/02\/2025 a las 12:00 PM aproximadamente","jobDescription":"Alinear con la sectorial mas cercana","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
|
||||
|
||||
Enviando notificación normal de asignación 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", "*#23*", "[2] Daniel Humberto Soto Villegas Test", "Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México", "5214181878106, 5214181148783", "07/02/2025 a las 12:00 PM aproximadamente", "Alinear con la sectorial mas cercana", "https://www.google.com/maps?q=21.1564209,-100.9384185"],
|
||||
"template_uuid": "b6663394265e4bcdb215369aa9ba0f21",
|
||||
"optin_contact": true
|
||||
}
|
||||
Response del CallBell: {"message":{"uuid":"aed76e85fb92448785062159fa7fdc80","status":"enqueued"}}
|
||||
La notificación fue enviada correctamente con estado: enqueued
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
"url": "https://siip.mx/",
|
||||
"version": "2.6.0",
|
||||
"unmsVersionCompliancy": {
|
||||
"min": "2.1.0",
|
||||
"min": "2.1.1",
|
||||
"max": null
|
||||
},
|
||||
"author": "SIIP INTERNET"
|
||||
|
||||
@ -177,8 +177,10 @@ abstract class AbstractMessageNotifierFacade
|
||||
// Crear un objeto DateTime a partir de la fecha
|
||||
$date = new DateTime($dateString);
|
||||
|
||||
// Formatear la fecha al formato día/mes/año hora:minuto am/pm
|
||||
$formattedDate = $date->format('d/m/Y h:i A');
|
||||
// Formatear la fecha al formato deseado: día/mes/año a las hora:minuto am/pm aproximadamente
|
||||
$formattedDate = $date->format('d/m/Y') . " a las " . $date->format('h:i A') . " aproximadamente";
|
||||
|
||||
echo $formattedDate;
|
||||
} else {
|
||||
echo "La fecha no está disponible en el JSON.\n";
|
||||
}
|
||||
|
||||
@ -124,6 +124,8 @@ class ClientCallBellAPI
|
||||
$log->appendLog("Enviando mensaje de trabajo para el cliente" . PHP_EOL);
|
||||
$jsonJobNotificationData = json_encode($jobNotificationData, true);
|
||||
$log->appendLog("Datos de la notificación de trabajo: " . $jsonJobNotificationData . PHP_EOL);
|
||||
$log->appendLog("Debugging: reprogramming = " . var_export($reprogramming, true) . ", changeInstaller = " . var_export($changeInstaller, true) . PHP_EOL);
|
||||
|
||||
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL, 'https://api.callbell.eu/v1/messages/send');
|
||||
@ -139,14 +141,17 @@ class ClientCallBellAPI
|
||||
$campo3 = sprintf('*%s*', $jobNotificationData['date']);
|
||||
$campo4 = sprintf('*%s*', $jobNotificationData['installerName']);
|
||||
|
||||
if ($reprogramming && $changeInstaller == false) {
|
||||
if ($reprogramming && $changeInstaller === false) {
|
||||
//Enviar notificación de reprogramación al cliente
|
||||
$log->appendLog("Enviando notificación de reprogramación al cliente, valor de reprogramming $reprogramming y valor de changeInstaller $changeInstaller " . PHP_EOL);
|
||||
$curl_string = "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"S/M\"\n },\n \"template_values\": [\"$campo1\", \"$campo2\", \"$campo3\", \"$campo4\"],\n \"template_uuid\": \"70579353773f4de1836d4f9b6bf6074d\",\n \"optin_contact\": true\n }";
|
||||
}if($changeInstaller){
|
||||
//Enviar notificación de cambio de instalador
|
||||
$log->appendLog("Enviando notificación de cambio de instalador al cliente, valor de reprogramming $reprogramming y valor de changeInstaller $changeInstaller " . PHP_EOL);
|
||||
$curl_string = "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"S/M\"\n },\n \"template_values\": [\"$campo1\", \"$campo2\", \"$campo3\", \"$campo4\"],\n \"template_uuid\": \"0d57fd210595422caf2f5999642882a3\",\n \"optin_contact\": true\n }";
|
||||
} else {
|
||||
//Enviar notificación normal de visita técnica al cliente
|
||||
$log->appendLog("Enviando notificación normal de visita técnica al cliente, valor de reprogramming $reprogramming y valor de changeInstaller $changeInstaller " . PHP_EOL);
|
||||
$curl_string = "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"S/M\"\n },\n \"template_values\": [\"$campo1\", \"$campo2\", \"$campo3\", \"$campo4\"],\n \"template_uuid\": \"c0ef8228b50a4d9690a2e87bc11e9ab3\",\n \"optin_contact\": true\n }";
|
||||
}
|
||||
|
||||
@ -204,7 +209,7 @@ class ClientCallBellAPI
|
||||
$campo1 = $jobInstallerNotificationData['installerName'];
|
||||
if ($changeInstaller) {
|
||||
$campo2 = $jobInstallerNotificationData['subjectOfChange'];
|
||||
$campo3 = $jobInstallerNotificationData['jobId'];
|
||||
$campo3 = sprintf("#%s", $jobInstallerNotificationData['jobId']);
|
||||
$campo4 = $jobInstallerNotificationData['clientFullName'];
|
||||
$campo5 = $jobInstallerNotificationData['additionalChangeData'];
|
||||
} else {
|
||||
@ -220,15 +225,19 @@ class ClientCallBellAPI
|
||||
|
||||
|
||||
if ($reprogramming && $changeInstaller===false) {
|
||||
|
||||
//Enviar notificación de reprogramación
|
||||
$log->appendLog("Enviando notificación de reprogramación al instalador, valor de reprogramming $reprogramming y valor de changeInstaller $changeInstaller " . PHP_EOL);
|
||||
$curl_string = "{\n \"to\": \"$installerWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"S/M\"\n },\n \"template_values\": [\"$campo1\", \"$campo2\", \"$campo3\", \"$campo4\", \"$campo5\", \"$campo6\", \"$campo7\", \"$campo8\"],\n \"template_uuid\": \"42152c07c67b468ba68e581c0283e22e\",\n \"optin_contact\": true\n }";
|
||||
|
||||
}else if ($changeInstaller){
|
||||
//Enviar notificación de cambio de instalador
|
||||
$log->appendLog("Enviando notificación de cambio de instalador al instalador, valor de reprogramming $reprogramming y valor de changeInstaller $changeInstaller " . PHP_EOL);
|
||||
$curl_string = "{\n \"to\": \"$installerWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"S/M\"\n },\n \"template_values\": [\"$campo1\", \"$campo2\", \"$campo3\", \"$campo4\", \"$campo5\"],\n \"template_uuid\": \"e1aa2b0fd3884595918f4ac2676acd29\",\n \"optin_contact\": true\n }";
|
||||
|
||||
}else {
|
||||
//Enviar notificación normal de asignación de tarea
|
||||
$log->appendLog("Enviando notificación normal de asignación de tarea al instalador, valor de reprogramming $reprogramming y valor de changeInstaller $changeInstaller " . PHP_EOL);
|
||||
$curl_string = "{\n \"to\": \"$installerWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"S/M\"\n },\n \"template_values\": [\"$campo1\", \"$campo2\", \"$campo3\", \"$campo4\", \"$campo5\", \"$campo6\", \"$campo7\", \"$campo8\"],\n \"template_uuid\": \"b6663394265e4bcdb215369aa9ba0f21\",\n \"optin_contact\": true\n }";
|
||||
}
|
||||
|
||||
|
||||
@ -504,22 +504,22 @@ class Plugin
|
||||
|
||||
// Comprobar si 'assignedUserId' cambió
|
||||
if ($assignedUserIdBefore === null && $assignedUserIdAfter != null) { //Si el campo "assignedUserId" cambió de null a un valor
|
||||
$this->logger->debug('El campo assignedUserId cambió de null a un valor');
|
||||
$this->logger->debug('El instalador cambió de null a un valor');
|
||||
$this->notifierFacade->verifyJobActionToDo($jsonData); // Se envía notificación de trabajo asignado
|
||||
} else if (($assignedUserIdBefore != null && $assignedUserIdAfter != $assignedUserIdBefore)&&($dateBefore === $dateAfter)) {//Si el campo "assignedUserId" cambió de un valor a otro y la fecha no cambió
|
||||
$this->logger->debug('El campo assignedUserId cambió de un valor a otro y la fecha no cambió');
|
||||
$this->logger->debug('El instalador cambió y la fecha no cambió');
|
||||
$this->notifierFacade->verifyJobActionToDo($jsonData, false , true); // Se envía notificación de trabajo reasignado
|
||||
}else if (($assignedUserIdBefore != null && $assignedUserIdBefore === $assignedUserIdAfter) && ($dateBefore != $dateAfter)) {//Si el campo "assignedUserId" no cambió y la fecha cambió
|
||||
$this->logger->debug('El campo assignedUserId no cambió y la fecha sí cambió');
|
||||
$this->logger->debug('El instalador no cambió y la fecha sí cambió');
|
||||
$this->notifierFacade->verifyJobActionToDo($jsonData, true , false); // Se envía notificación de reprogramación de trabajo
|
||||
} else if (($assignedUserIdBefore != null && $assignedUserIdAfter != $assignedUserIdBefore)&&($dateBefore != $dateAfter)){
|
||||
$this->logger->debug('El campo assignedUserId cambió de un valor a otro y la fecha cambió');
|
||||
$this->logger->debug('El instalador cambió y la fecha sí cambió');
|
||||
$this->notifierFacade->verifyJobActionToDo($jsonData, true , true); // Se envía notificación de trabajo reasignado
|
||||
} else if ($assignedUserIdBefore != null && $assignedUserIdAfter === null) { //Si el campo "assignedUserId" cambió de un valor a null
|
||||
$this->logger->debug('El campo assignedUserId cambió de un valor a null');
|
||||
$this->logger->debug('El instalador cambió de un valor a null');
|
||||
$this->notifierFacade->verifyJobActionToDo($jsonData, null,true); // Se envía notificación de trabajo desasignado
|
||||
}else {
|
||||
$this->logger->debug('No hubo cambio en el campo assignedUserId ni en el campo date');
|
||||
$this->logger->debug('No hubo cambio en el instalador ni en la fecha');
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
4
vendor/composer/installed.php
vendored
4
vendor/composer/installed.php
vendored
@ -5,7 +5,7 @@
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
'reference' => 'efd6f36c37acff90564096937d34b606769ee63c',
|
||||
'reference' => '869331b02c8adf8f8a25940045982e28c9855822',
|
||||
'name' => 'ucrm-plugins/sms-twilio',
|
||||
'dev' => false,
|
||||
),
|
||||
@ -307,7 +307,7 @@
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
'reference' => 'efd6f36c37acff90564096937d34b606769ee63c',
|
||||
'reference' => '869331b02c8adf8f8a25940045982e28c9855822',
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user