579 lines
50 KiB
Plaintext
Executable File
579 lines
50 KiB
Plaintext
Executable File
[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-25 5:17:07.694406] [debug] Se actualiza un trabajo
|
|
|
|
[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-25 5:17:07.694492] [debug] Valor de $clientId en verifyJobActionToDo: 2
|
|
|
|
[2025-01-25 5:17:07.694499] [debug] Valor de $installerId en verifyJobActionToDo: 1172
|
|
|
|
[2025-01-25 5:17:07.694505] [debug] Valor de $jobId en verifyJobActionToDo: 23
|
|
|
|
[2025-01-25 5:17:07.694571] [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-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-25 5:17:07.728157] [debug] tipo de dato de installerWhatsApp: string
|
|
|
|
[2025-01-25 5:17:07.728169] [debug] Número de WhatsApp del Instalador: 4181878106
|
|
|
|
[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-25 5:17:07.771743] [debug] Valor de $installerFullName: Juan Rostro
|
|
|
|
[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-25 5:17:07.837291] [debug] Dirección completa: Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México
|
|
|
|
[2025-01-25 5:17:07.837336] [debug] URL de Google Maps: https://www.google.com/maps?q=21.1564209,-100.9384185
|
|
|
|
[2025-01-25 5:17:07.837444] [debug] Valor de $arrayPhones en verifyJobActionToDo: {"WhatsNotifica":"4181148783"}
|
|
|
|
[2025-01-25 5:17:07.837486] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,4181148783
|
|
|
|
[2025-01-25 5:17:07.837522] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","4181148783"]
|
|
|
|
[2025-01-25 5:17:07.837682] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
|
|
|
[2025-01-25 5:17:07.837730] [debug] Valor de $resultadoFinalNumerosCliente en verifyJobActionToDo: 5214181878106, 5214181148783
|
|
|
|
[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 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",
|
|
"from": "whatsapp",
|
|
"type": "text",
|
|
"content": {
|
|
"text": "S/M"
|
|
},
|
|
"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":"1632bb436b8741868c7e8ac43fa8808e","status":"enqueued"}}
|
|
La notificación fue enviada correctamente con estado: enqueued
|
|
|
|
[2025-01-25 5:17:08.779963] [info] Notificación enviada correctamente al contacto 4181148783 después de 1 intento(s).
|
|
|
|
[2025-01-25 5:17:08.780071] [debug] Valor de $installerWhatsApp en verifyJobActionToDo: 4181878106
|
|
|
|
[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-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":"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",
|
|
"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 *Juan Rostro*"],
|
|
"template_uuid": "e1aa2b0fd3884595918f4ac2676acd29",
|
|
"optin_contact": true
|
|
}
|
|
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 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",
|
|
"from": "whatsapp",
|
|
"type": "text",
|
|
"content": {
|
|
"text": "S/M"
|
|
},
|
|
"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":"a30a103783024a9194f7b1e42fbddcf1","status":"enqueued"}}
|
|
La notificación fue enviada correctamente con estado: enqueued
|
|
|
|
[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-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-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-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-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-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-25 16:08:02.222779] [debug] Se actualiza un trabajo
|
|
|
|
[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,
|
|
"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-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-25 16:08:02.258071] [debug] tipo de dato de installerWhatsApp: string
|
|
|
|
[2025-01-25 16:08:02.258084] [debug] Número de WhatsApp del Instalador: 4181878106
|
|
|
|
[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-25 16:08:02.295131] [debug] Valor de $installerFullName: Mucio Robledo Villegas
|
|
|
|
[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-25 16:08:02.365910] [debug] Dirección completa: Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México
|
|
|
|
[2025-01-25 16:08:02.365923] [debug] URL de Google Maps: https://www.google.com/maps?q=21.1564209,-100.9384185
|
|
|
|
[2025-01-25 16:08:02.366007] [debug] Valor de $arrayPhones en verifyJobActionToDo: {"WhatsNotifica":"4181148783"}
|
|
|
|
[2025-01-25 16:08:02.366023] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,4181148783
|
|
|
|
[2025-01-25 16:08:02.366031] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","4181148783"]
|
|
|
|
[2025-01-25 16:08:02.366174] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
|
|
|
[2025-01-25 16:08:02.366194] [debug] Valor de $resultadoFinalNumerosCliente en verifyJobActionToDo: 5214181878106, 5214181148783
|
|
|
|
[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 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",
|
|
"from": "whatsapp",
|
|
"type": "text",
|
|
"content": {
|
|
"text": "S/M"
|
|
},
|
|
"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":"0ae55fe1ae4b441f9a40c0c38bb1cf35","status":"enqueued"}}
|
|
La notificación fue enviada correctamente con estado: enqueued
|
|
|
|
[2025-01-25 16:08:03.181369] [info] Notificación enviada correctamente al contacto 4181148783 después de 1 intento(s).
|
|
|
|
[2025-01-25 16:08:03.181613] [debug] Valor de $installerWhatsApp en verifyJobActionToDo: 4181878106
|
|
|
|
[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-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 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",
|
|
"from": "whatsapp",
|
|
"type": "text",
|
|
"content": {
|
|
"text": "S/M"
|
|
},
|
|
"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":"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":"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",
|
|
"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 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":"d8eeda24161c4912b0c9dd87cf000e4a","status":"enqueued"}}
|
|
La notificación fue enviada correctamente con estado: enqueued
|
|
|
|
[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-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-25 16:11:43.007672] [debug] Se actualiza un trabajo
|
|
|
|
[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-25 16:11:43.007945] [debug] Valor de $clientId en verifyJobActionToDo: 2
|
|
|
|
[2025-01-25 16:11:43.007980] [debug] Valor de $installerId en verifyJobActionToDo: 1173
|
|
|
|
[2025-01-25 16:11:43.008013] [debug] Valor de $jobId en verifyJobActionToDo: 23
|
|
|
|
[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-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-25 16:11:43.046926] [debug] tipo de dato de installerWhatsApp: string
|
|
|
|
[2025-01-25 16:11:43.046968] [debug] Número de WhatsApp del Instalador: 4181878106
|
|
|
|
[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-25 16:11:43.079854] [debug] Valor de $installerFullName: Ángel Arvizu
|
|
|
|
[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-25 16:11:43.153753] [debug] Dirección completa: Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México
|
|
|
|
[2025-01-25 16:11:43.153774] [debug] URL de Google Maps: https://www.google.com/maps?q=21.1564209,-100.9384185
|
|
|
|
[2025-01-25 16:11:43.153882] [debug] Valor de $arrayPhones en verifyJobActionToDo: {"WhatsNotifica":"4181148783"}
|
|
|
|
[2025-01-25 16:11:43.153997] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,4181148783
|
|
|
|
[2025-01-25 16:11:43.154062] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","4181148783"]
|
|
|
|
[2025-01-25 16:11:43.154372] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
|
|
|
[2025-01-25 16:11:43.154472] [debug] Valor de $resultadoFinalNumerosCliente en verifyJobActionToDo: 5214181878106, 5214181148783
|
|
|
|
[2025-01-25 16:11:43.160531] [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 Test","jobId":"23","date":"07\/02\/2025 12:00 PM","installerName":"\u00c1ngel Arvizu"}
|
|
|
|
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",
|
|
"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-25 16:11:44.000124] [info] Notificación enviada correctamente al contacto 4181148783 después de 1 intento(s).
|
|
|
|
[2025-01-25 16:11:44.000235] [debug] Valor de $installerWhatsApp en verifyJobActionToDo: 4181878106
|
|
|
|
[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-25 16:11:44.036245] [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":"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*"}
|
|
|
|
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",
|
|
"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
|
|
|
|
Enviando mensaje de tarea al instalador
|
|
|
|
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"}
|
|
|
|
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": ["Á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-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
|
|
|
|
[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":[]}}}
|
|
|
|
[2025-01-25 16:32:16.642365] [debug] Se actualiza un trabajo
|
|
|
|
[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":[]}}}
|
|
|
|
[2025-01-25 16:32:16.642644] [debug] Valor de $clientId en verifyJobActionToDo: 2
|
|
|
|
[2025-01-25 16:32:16.642678] [debug] Valor de $installerId en verifyJobActionToDo: 1019
|
|
|
|
[2025-01-25 16:32:16.642712] [debug] Valor de $jobId en verifyJobActionToDo: 23
|
|
|
|
[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-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-25 16:32:16.688842] [debug] tipo de dato de installerWhatsApp: string
|
|
|
|
[2025-01-25 16:32:16.688885] [debug] Número de WhatsApp del Instalador: 4181878106
|
|
|
|
[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-25 16:32:16.730830] [debug] Valor de $installerFullName: Mucio Robledo Villegas
|
|
|
|
[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}
|
|
|
|
[2025-01-25 16:32:16.842426] [debug] Dirección completa: Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México
|
|
|
|
[2025-01-25 16:32:16.842494] [debug] URL de Google Maps: https://www.google.com/maps?q=21.1564209,-100.9384185
|
|
|
|
[2025-01-25 16:32:16.842602] [debug] Valor de $arrayPhones en verifyJobActionToDo: {"WhatsNotifica":"4181148783"}
|
|
|
|
[2025-01-25 16:32:16.842647] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,4181148783
|
|
|
|
[2025-01-25 16:32:16.842684] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","4181148783"]
|
|
|
|
[2025-01-25 16:32:16.842849] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
|
|
|
|
[2025-01-25 16:32:16.842905] [debug] Valor de $resultadoFinalNumerosCliente en verifyJobActionToDo: 5214181878106, 5214181148783
|
|
|
|
[2025-01-25 16:32:16.842974] [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 Test","jobId":"23","date":"07\/02\/2025 a las 12:00 PM aproximadamente","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",
|
|
"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-25 16:32:17.728960] [info] Notificación enviada correctamente al contacto 4181148783 después de 1 intento(s).
|
|
|
|
[2025-01-25 16:32:17.729016] [debug] Valor de $installerWhatsApp en verifyJobActionToDo: 4181878106
|
|
|
|
[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ó
|
|
|
|
[2025-01-25 16:32:17.757659] [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 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",
|
|
"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
|
|
|
|
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
|
|
|