@connection-hub/sdk 0.0.11 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -108
- package/dist/client.d.ts +0 -2
- package/dist/client.js +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/auth/index.js +1 -1
- package/dist/lib/connections/index.js +1 -1
- package/dist/lib/messaging/index.d.ts +79 -6
- package/dist/lib/messaging/index.js +1 -1
- package/dist/lib/webhooks/index.js +1 -1
- package/dist/types/index.d.ts +137 -10
- package/dist/types/index.js +1 -1
- package/package.json +4 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x598e17=_0x55dc;(function(_0x4743ef,_0x1e3793){const _0x2a759c=_0x55dc,_0x3b51b4=_0x4743ef();while(!![]){try{const _0x339347=parseInt(_0x2a759c(0xa5))/(-0x2396+-0x5ea+-0x5*-0x84d)+-parseInt(_0x2a759c(0x8c))/(0x1*-0x1d2a+0x1*-0x6ef+-0xc09*-0x3)+-parseInt(_0x2a759c(0xad))/(-0x2620+-0xa*-0x3b2+0x12f)*(parseInt(_0x2a759c(0x9b))/(0x17a*0x17+0x84+0x2276*-0x1))+-parseInt(_0x2a759c(0x9c))/(0x1b62+-0x129c+0x9*-0xf9)*(-parseInt(_0x2a759c(0x92))/(0x4ce+-0x1*-0x266f+-0x2b37))+parseInt(_0x2a759c(0xab))/(0x35*0x53+0x17bd+-0x1d*0x169)+-parseInt(_0x2a759c(0x91))/(0xcc0*0x1+0x1559*0x1+0x2211*-0x1)*(parseInt(_0x2a759c(0xa3))/(0x1*-0xfee+-0x2452*0x1+-0x1*-0x3449))+parseInt(_0x2a759c(0xa7))/(0xe63+0x5*0x3d7+0xe2*-0x26)*(parseInt(_0x2a759c(0x8f))/(0x4da+0x13f4+-0x18c3));if(_0x339347===_0x1e3793)break;else _0x3b51b4['push'](_0x3b51b4['shift']());}catch(_0xf2e1d3){_0x3b51b4['push'](_0x3b51b4['shift']());}}}(_0x4e7a,0x675d6+0x2*-0x1a151+0xe0f3));function _0x55dc(_0x596dc1,_0x2ded5f){_0x596dc1=_0x596dc1-(0x1bc*-0x6+0x977+0x176*0x1);const _0x1a8db0=_0x4e7a();let _0x3f99cb=_0x1a8db0[_0x596dc1];return _0x3f99cb;}function _0x4e7a(){const _0x2a3600=['84PvBBdu','tions','LaAcp','isCredenti','data','ção\x20ou\x20cha','alsValidat','exports','As\x20credenc','73468EIMpaK','56105kvvNgS','getConnect','dadas\x20ou\x20s','Service','ion','/channels/','get','20376mSwqba','me\x20waitFor','122634OtSlIp','iente\x20não\x20','134210XemApA','client','iais\x20do\x20cl','UOXnm','1894942KwSGZW','ntials','42GlXkvC','listConnec','checkCrede','ão\x20inválid','api','e\x20a\x20valida','foram\x20vali','Connection','as.\x20Aguard','458782ySSjzI','/channels','()\x20primeir','330otCHtT','Validation','704sBbcsm'];_0x4e7a=function(){return _0x2a3600;};return _0x4e7a();}class ConnectionService{constructor(_0x21e44e,_0x5305d1){const _0x539d06=_0x55dc;this[_0x539d06(0x87)]=_0x21e44e,this[_0x539d06(0xa8)]=_0x5305d1;}[_0x598e17(0x85)+_0x598e17(0xac)](_0x2a4669=!![]){const _0x2bad2d=_0x598e17,_0x10ffa5={};_0x10ffa5[_0x2bad2d(0x94)]=_0x2bad2d(0x9a)+_0x2bad2d(0xa9)+_0x2bad2d(0xa6)+_0x2bad2d(0x89)+_0x2bad2d(0x9e)+_0x2bad2d(0x86)+_0x2bad2d(0x8b)+_0x2bad2d(0x88)+_0x2bad2d(0x97)+_0x2bad2d(0xa4)+_0x2bad2d(0x90)+_0x2bad2d(0x8e)+'o.';const _0x214369=_0x10ffa5;if(this[_0x2bad2d(0xa8)]&&!this[_0x2bad2d(0xa8)][_0x2bad2d(0x95)+_0x2bad2d(0x98)+'ed']()&&_0x2a4669)throw new Error(_0x214369[_0x2bad2d(0x94)]);}async[_0x598e17(0xae)+_0x598e17(0x93)](){const _0x11f864=_0x598e17,_0x5293f5={};_0x5293f5[_0x11f864(0xaa)]=_0x11f864(0x8d);const _0x21a5f1=_0x5293f5;this[_0x11f864(0x85)+_0x11f864(0xac)]();try{const _0x689df9=await this[_0x11f864(0x87)][_0x11f864(0xa2)](_0x21a5f1[_0x11f864(0xaa)]);return _0x689df9[_0x11f864(0x96)];}catch(_0x467657){return[];}}async[_0x598e17(0x9d)+_0x598e17(0xa0)](_0x2da70f){const _0x2feac9=_0x598e17;this[_0x2feac9(0x85)+_0x2feac9(0xac)]();try{const _0xd5583c=await this[_0x2feac9(0x87)][_0x2feac9(0xa2)](_0x2feac9(0xa1)+_0x2da70f);return _0xd5583c[_0x2feac9(0x96)];}catch(_0x25a678){return null;}}}const _0x328db4={};_0x328db4[_0x598e17(0x8a)+_0x598e17(0x9f)]=ConnectionService,module[_0x598e17(0x99)]=_0x328db4;
|
|
@@ -69,13 +69,86 @@ declare class MessagingService {
|
|
|
69
69
|
* @param attachments Anexos (opcional)
|
|
70
70
|
*/
|
|
71
71
|
sendEmail(channelToken: string, subject: string, body: string, to: string, attachments?: any[]): Promise<any>;
|
|
72
|
+
getProfileFacebook(channelToken: string, recipientId: string): Promise<any>;
|
|
73
|
+
getProfileInstagram(channelToken: string, recipientId: string): Promise<any>;
|
|
72
74
|
/**
|
|
73
|
-
* Envia uma mensagem
|
|
75
|
+
* Envia uma mensagem de texto via WhatsApp Cloud API.
|
|
76
|
+
* Só funciona dentro da janela de 24h após contato do destinatário.
|
|
77
|
+
* Para iniciar conversa ou fora de janela, use sendTemplateToWhatsapp.
|
|
74
78
|
* @param channelToken Token do canal
|
|
75
|
-
* @param
|
|
76
|
-
* @param
|
|
79
|
+
* @param to Número do destinatário em E.164 sem '+' (ex.: "5511999999999")
|
|
80
|
+
* @param text Texto da mensagem
|
|
77
81
|
*/
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
82
|
+
sendTextToWhatsapp(channelToken: string, to: string, text: string): Promise<any>;
|
|
83
|
+
/**
|
|
84
|
+
* Envia um arquivo (imagem, áudio, vídeo ou documento) via WhatsApp.
|
|
85
|
+
* Limites Cloud API: imagem 5MB; áudio 16MB; vídeo 16MB; documento 100MB.
|
|
86
|
+
* Só funciona dentro da janela de 24h.
|
|
87
|
+
* @param channelToken Token do canal
|
|
88
|
+
* @param to Número do destinatário em E.164 sem '+'
|
|
89
|
+
* @param attachmentUrl URL pública do arquivo
|
|
90
|
+
* @param type "image" | "audio" | "video" | "document"
|
|
91
|
+
* @param options.caption legenda (image, video, document)
|
|
92
|
+
* @param options.filename nome do arquivo (document)
|
|
93
|
+
*/
|
|
94
|
+
sendFileToWhatsapp(channelToken: string, to: string, attachmentUrl: string, type: "image" | "audio" | "video" | "document", options?: {
|
|
95
|
+
caption?: string;
|
|
96
|
+
filename?: string;
|
|
97
|
+
}): Promise<any>;
|
|
98
|
+
/**
|
|
99
|
+
* Envia uma mensagem template (HSM) via WhatsApp. Necessária para iniciar
|
|
100
|
+
* conversa ou enviar fora da janela de 24h. O template precisa estar
|
|
101
|
+
* aprovado na Meta.
|
|
102
|
+
* @param channelToken Token do canal
|
|
103
|
+
* @param to Número do destinatário em E.164 sem '+'
|
|
104
|
+
* @param name Nome do template aprovado (ex.: "hello_world")
|
|
105
|
+
* @param language Código do idioma (ex.: "pt_BR", "en_US")
|
|
106
|
+
* @param components Componentes do template (header/body/buttons params)
|
|
107
|
+
*/
|
|
108
|
+
sendTemplateToWhatsapp(channelToken: string, to: string, name: string, language: string, components?: unknown[]): Promise<any>;
|
|
109
|
+
/**
|
|
110
|
+
* Marca uma mensagem WhatsApp como lida (azul duplo).
|
|
111
|
+
* @param channelToken Token do canal
|
|
112
|
+
* @param messageId mid da mensagem recebida (campo `message.mid` no webhook)
|
|
113
|
+
*/
|
|
114
|
+
markWhatsappMessageAsRead(channelToken: string, messageId: string): Promise<any>;
|
|
115
|
+
/**
|
|
116
|
+
* Envia mensagem pós-venda em uma conversa do Mercado Livre.
|
|
117
|
+
* Usa a Messaging API do ML (`/messages/packs/{packId}/sellers/{sellerId}`).
|
|
118
|
+
* @param channelToken Token do canal
|
|
119
|
+
* @param packId ID da conversa (`pack_id`) — vem no webhook de `messages`
|
|
120
|
+
* @param buyerId ID do comprador (`user_id` destinatário) — vem no payload da mensagem recebida
|
|
121
|
+
* @param text Texto da mensagem
|
|
122
|
+
* @param sellerId (opcional) ID do vendedor; se omitido, o backend usa o `pageId` do canal
|
|
123
|
+
*/
|
|
124
|
+
sendMercadoLivreMessage(channelToken: string, packId: string | number, buyerId: string | number, text: string, sellerId?: string | number): Promise<any>;
|
|
125
|
+
/**
|
|
126
|
+
* Responde a uma pergunta de produto no Mercado Livre.
|
|
127
|
+
* Usa o endpoint `/answers` da API do ML.
|
|
128
|
+
* @param channelToken Token do canal
|
|
129
|
+
* @param questionId ID da pergunta (vem no webhook de `questions`)
|
|
130
|
+
* @param text Texto da resposta
|
|
131
|
+
*/
|
|
132
|
+
answerMercadoLivreQuestion(channelToken: string, questionId: string | number, text: string): Promise<any>;
|
|
133
|
+
/**
|
|
134
|
+
* Envia uma mensagem de texto via Telegram Bot API.
|
|
135
|
+
* @param channelToken Token do canal
|
|
136
|
+
* @param chatId ID do chat de destino (numérico do Telegram, aceita string ou number)
|
|
137
|
+
* @param text Texto da mensagem
|
|
138
|
+
*/
|
|
139
|
+
sendTextToTelegram(channelToken: string, chatId: string | number, text: string): Promise<any>;
|
|
140
|
+
/**
|
|
141
|
+
* Envia um arquivo via Telegram (foto, vídeo ou documento).
|
|
142
|
+
* @param channelToken Token do canal
|
|
143
|
+
* @param chatId ID do chat de destino
|
|
144
|
+
* @param attachmentUrl URL pública do arquivo
|
|
145
|
+
* @param options.type "photo" | "video" | "document". Se omitido, o backend infere pela extensão da URL.
|
|
146
|
+
* @param options.caption Legenda (photo/video/document)
|
|
147
|
+
* @param options.filename Nome do arquivo (document)
|
|
148
|
+
*/
|
|
149
|
+
sendFileToTelegram(channelToken: string, chatId: string | number, attachmentUrl: string, options?: {
|
|
150
|
+
type?: "photo" | "video" | "document";
|
|
151
|
+
caption?: string;
|
|
152
|
+
filename?: string;
|
|
153
|
+
}): Promise<any>;
|
|
81
154
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x1404c2=_0x21a9;(function(_0x103195,_0x29c299){const _0x3ef8be=_0x21a9,_0x1f01ac=_0x103195();while(!![]){try{const _0x5e349c=parseInt(_0x3ef8be(0xbf))/(-0x1729+0x1492+0x298)*(parseInt(_0x3ef8be(0xb6))/(-0x2*0x6ae+-0x53*-0x6e+0x4*-0x593))+parseInt(_0x3ef8be(0x91))/(-0x36a*-0x6+0x67*-0x25+-0x596)+parseInt(_0x3ef8be(0x11c))/(0xd2a+-0x18cd+0x9d*0x13)+-parseInt(_0x3ef8be(0x124))/(0x8a4+-0x1afa+-0x1*-0x125b)+-parseInt(_0x3ef8be(0x9f))/(0xa8c+-0x4*0x707+0x1196)+-parseInt(_0x3ef8be(0x122))/(-0x20d9+-0x11c9+0x32a9)*(-parseInt(_0x3ef8be(0xdb))/(0x21f3+-0x1b19+0x6d2*-0x1))+-parseInt(_0x3ef8be(0x99))/(0x8cb*-0x1+0x1*-0x1b02+-0xb*-0x342)*(parseInt(_0x3ef8be(0xaa))/(-0x1*0x307+-0xbec+0xefd));if(_0x5e349c===_0x29c299)break;else _0x1f01ac['push'](_0x1f01ac['shift']());}catch(_0xd71683){_0x1f01ac['push'](_0x1f01ac['shift']());}}}(_0x1385,-0x2f1cf+0xac3ab+0x1ae13));class MessagingService{constructor(_0x17b8ab,_0x3bc377){const _0x31d0c0=_0x21a9;this[_0x31d0c0(0xf4)]=_0x17b8ab,this[_0x31d0c0(0xa5)]=_0x3bc377;}[_0x1404c2(0xe1)+_0x1404c2(0xcb)](_0x1b7eea=!![]){const _0x4eb956=_0x1404c2,_0xc9a47={};_0xc9a47[_0x4eb956(0xa8)]=_0x4eb956(0x110)+_0x4eb956(0x9c)+_0x4eb956(0x9a)+_0x4eb956(0xb7)+_0x4eb956(0xc7)+_0x4eb956(0xe8)+_0x4eb956(0x105);const _0x1ffa25=_0xc9a47;if(this[_0x4eb956(0xa5)]&&!this[_0x4eb956(0xa5)][_0x4eb956(0xc8)+_0x4eb956(0x10e)+'ed']()&&_0x1b7eea)throw new Error(_0x1ffa25[_0x4eb956(0xa8)]);}[_0x1404c2(0xe7)+_0x1404c2(0xee)](_0x84c0cb){const _0xa89c0e=_0x1404c2,_0x578830={};_0x578830[_0xa89c0e(0x92)]=_0xa89c0e(0xd0),_0x578830[_0xa89c0e(0xac)]=_0xa89c0e(0xe5),_0x578830[_0xa89c0e(0x123)]=_0xa89c0e(0xbe),_0x578830[_0xa89c0e(0xb3)]=_0xa89c0e(0xb8),_0x578830[_0xa89c0e(0xcf)]=_0xa89c0e(0xda),_0x578830[_0xa89c0e(0x103)]=_0xa89c0e(0xc9),_0x578830[_0xa89c0e(0xdd)]=_0xa89c0e(0xeb),_0x578830[_0xa89c0e(0xdc)]=_0xa89c0e(0xab),_0x578830[_0xa89c0e(0x9e)]=_0xa89c0e(0x97),_0x578830[_0xa89c0e(0xb4)]=_0xa89c0e(0xa1),_0x578830[_0xa89c0e(0xc1)]=_0xa89c0e(0x95),_0x578830[_0xa89c0e(0xf1)]=_0xa89c0e(0xa9),_0x578830[_0xa89c0e(0xba)]=_0xa89c0e(0x113),_0x578830[_0xa89c0e(0x11d)]=_0xa89c0e(0x115),_0x578830[_0xa89c0e(0x108)]=_0xa89c0e(0x101),_0x578830[_0xa89c0e(0x111)]=_0xa89c0e(0x120),_0x578830[_0xa89c0e(0x100)]=_0xa89c0e(0xd1),_0x578830[_0xa89c0e(0xc3)]=_0xa89c0e(0xa7),_0x578830[_0xa89c0e(0xa0)]=_0xa89c0e(0xde),_0x578830[_0xa89c0e(0xe9)]=_0xa89c0e(0xef),_0x578830[_0xa89c0e(0x10f)]=_0xa89c0e(0xc4),_0x578830[_0xa89c0e(0xa4)]=_0xa89c0e(0xbc),_0x578830[_0xa89c0e(0x9d)]=_0xa89c0e(0xd9),_0x578830[_0xa89c0e(0xa3)]=_0xa89c0e(0xb5);const _0xd4a7b6=_0x578830,_0x5ec1a4=this[_0xa89c0e(0x10c)+_0xa89c0e(0x121)](_0x84c0cb),_0x2a0203=[_0xd4a7b6[_0xa89c0e(0x92)],_0xd4a7b6[_0xa89c0e(0xac)],_0xd4a7b6[_0xa89c0e(0x123)],_0xd4a7b6[_0xa89c0e(0xb3)],_0xd4a7b6[_0xa89c0e(0xcf)],_0xd4a7b6[_0xa89c0e(0x103)],_0xd4a7b6[_0xa89c0e(0xdd)],_0xd4a7b6[_0xa89c0e(0xdc)]],_0xea6c81=[_0xd4a7b6[_0xa89c0e(0x9e)],_0xd4a7b6[_0xa89c0e(0xb4)],_0xd4a7b6[_0xa89c0e(0xdc)],_0xd4a7b6[_0xa89c0e(0xc1)],_0xd4a7b6[_0xa89c0e(0xf1)],_0xd4a7b6[_0xa89c0e(0xba)]],_0x4b330e=[_0xd4a7b6[_0xa89c0e(0x11d)],_0xd4a7b6[_0xa89c0e(0x108)],_0xd4a7b6[_0xa89c0e(0x111)],_0xd4a7b6[_0xa89c0e(0x100)],_0xd4a7b6[_0xa89c0e(0xc3)],_0xd4a7b6[_0xa89c0e(0xa0)],_0xd4a7b6[_0xa89c0e(0xe9)]];if(_0x2a0203[_0xa89c0e(0xca)](_0x5ec1a4))return _0xd4a7b6[_0xa89c0e(0x10f)];if(_0xea6c81[_0xa89c0e(0xca)](_0x5ec1a4))return _0xd4a7b6[_0xa89c0e(0xa4)];if(_0x4b330e[_0xa89c0e(0xca)](_0x5ec1a4))return _0xd4a7b6[_0xa89c0e(0x9d)];return _0xd4a7b6[_0xa89c0e(0xa3)];}[_0x1404c2(0x10c)+_0x1404c2(0x121)](_0x5358b1){const _0x5cf464=_0x1404c2,_0x35c6fd=_0x5358b1[_0x5cf464(0x98)]('?')[0x6b*-0x4a+-0x143b*-0x1+0xab3*0x1][_0x5cf464(0x98)]('#')[-0x25*0x68+-0x325+-0x60f*-0x3];return _0x35c6fd[_0x5cf464(0x98)]('.')[_0x5cf464(0x10a)]()?.[_0x5cf464(0x11f)+'e']()||'';}[_0x1404c2(0xfd)+_0x1404c2(0xd8)+'nt'](_0x1ce06d,_0x6c8548){const _0x4666e3=_0x1404c2,_0x52ee84={};_0x52ee84[_0x4666e3(0x10d)]=function(_0x56e400,_0x5f02e3){return _0x56e400===_0x5f02e3;},_0x52ee84[_0x4666e3(0x117)]=_0x4666e3(0xbc),_0x52ee84[_0x4666e3(0xd5)]=function(_0x218af5,_0x494ca9){return _0x218af5===_0x494ca9;},_0x52ee84[_0x4666e3(0xf0)]=_0x4666e3(0xc4),_0x52ee84[_0x4666e3(0xe3)]=_0x4666e3(0xd9);const _0x12b819=_0x52ee84,_0x4f8acb=this[_0x4666e3(0x10c)+_0x4666e3(0x121)](_0x1ce06d);let _0x5a803c=null;if(_0x12b819[_0x4666e3(0x10d)](_0x6c8548,_0x12b819[_0x4666e3(0x117)]))_0x5a803c=MessagingService[_0x4666e3(0xfc)+_0x4666e3(0xff)];else{if(_0x12b819[_0x4666e3(0xd5)](_0x6c8548,_0x12b819[_0x4666e3(0xf0)]))_0x5a803c=MessagingService[_0x4666e3(0xed)+_0x4666e3(0xff)];else _0x12b819[_0x4666e3(0xd5)](_0x6c8548,_0x12b819[_0x4666e3(0xe3)])&&(_0x5a803c=MessagingService[_0x4666e3(0xc6)+_0x4666e3(0xff)]);}if(_0x5a803c&&!_0x5a803c[_0x4666e3(0xca)](_0x4f8acb))return{'success':![],'error':_0x4666e3(0xd4)+'\x20'+_0x6c8548+_0x4666e3(0x109)+_0x4f8acb+(_0x4666e3(0xf5)+_0x4666e3(0xb1)+_0x4666e3(0xf2)+_0x4666e3(0xf9)+_0x4666e3(0x119))+_0x5a803c[_0x4666e3(0x112)](',\x20')+'.','acceptedFormats':_0x5a803c};return null;}async[_0x1404c2(0xfa)+_0x1404c2(0x96)](_0x462d75,_0x1b21e6,_0x26cf4b){const _0x4fae30=_0x1404c2,_0x436efb={};_0x436efb[_0x4fae30(0x125)]=_0x4fae30(0xe2)+_0x4fae30(0x104)+_0x4fae30(0xbb)+_0x4fae30(0x94);const _0x3c99bd=_0x436efb;this[_0x4fae30(0xe1)+_0x4fae30(0xcb)]();try{const _0x2a0c34={};_0x2a0c34[_0x4fae30(0x114)+'en']=_0x462d75,_0x2a0c34[_0x4fae30(0xea)+'d']=_0x1b21e6,_0x2a0c34[_0x4fae30(0x11b)]=_0x26cf4b;const _0x3f25c5=await this[_0x4fae30(0xf4)][_0x4fae30(0x93)](_0x3c99bd[_0x4fae30(0x125)],_0x2a0c34);return _0x3f25c5[_0x4fae30(0xf8)];}catch(_0x38d879){const _0x4187aa={};return _0x4187aa[_0x4fae30(0x107)]=![],_0x4187aa[_0x4fae30(0xcc)]=_0x38d879[_0x4fae30(0xd3)]?.[_0x4fae30(0xf8)]?.[_0x4fae30(0x11b)]||_0x38d879[_0x4fae30(0x11b)],_0x4187aa;}}async[_0x1404c2(0xad)+_0x1404c2(0x96)](_0x1020f6,_0x510890,_0x3de8d6){const _0xc5581c=_0x1404c2,_0x1025a6={};_0x1025a6[_0xc5581c(0xb0)]=_0xc5581c(0xe2)+_0xc5581c(0x104)+_0xc5581c(0xf3)+_0xc5581c(0x94);const _0x163174=_0x1025a6;this[_0xc5581c(0xe1)+_0xc5581c(0xcb)]();try{const _0x536d76=this[_0xc5581c(0xe7)+_0xc5581c(0xee)](_0x3de8d6),_0x15c1c0=this[_0xc5581c(0xfd)+_0xc5581c(0xd8)+'nt'](_0x3de8d6,_0x536d76);if(_0x15c1c0)return _0x15c1c0;const _0x3a5348={};_0x3a5348[_0xc5581c(0x114)+'en']=_0x1020f6,_0x3a5348[_0xc5581c(0xea)+'d']=_0x510890,_0x3a5348[_0xc5581c(0xfe)+_0xc5581c(0x10b)]=_0x3de8d6,_0x3a5348[_0xc5581c(0xae)]=_0x536d76;const _0x1d9428=await this[_0xc5581c(0xf4)][_0xc5581c(0x93)](_0x163174[_0xc5581c(0xb0)],_0x3a5348);return _0x1d9428[_0xc5581c(0xf8)];}catch(_0x556d11){const _0x191ed8={};return _0x191ed8[_0xc5581c(0x107)]=![],_0x191ed8[_0xc5581c(0xcc)]=_0x556d11[_0xc5581c(0xd3)]?.[_0xc5581c(0xf8)]?.[_0xc5581c(0x11b)]||_0x556d11[_0xc5581c(0x11b)],_0x191ed8;}}async[_0x1404c2(0xfa)+_0x1404c2(0xfb)](_0x485de9,_0x9e74d8,_0x261b95){const _0x432dd2=_0x1404c2,_0x5844c8={};_0x5844c8[_0x432dd2(0xbd)]=_0x432dd2(0xe2)+_0x432dd2(0xd2)+_0x432dd2(0x106)+_0x432dd2(0xec);const _0xce7524=_0x5844c8;this[_0x432dd2(0xe1)+_0x432dd2(0xcb)]();try{const _0x130133={};_0x130133[_0x432dd2(0x114)+'en']=_0x485de9,_0x130133[_0x432dd2(0xea)+'d']=_0x9e74d8,_0x130133[_0x432dd2(0xa6)]=_0x261b95;const _0x3affa1=await this[_0x432dd2(0xf4)][_0x432dd2(0x93)](_0xce7524[_0x432dd2(0xbd)],_0x130133);return _0x3affa1[_0x432dd2(0xf8)];}catch(_0x2ca4c3){const _0x13f670={};return _0x13f670[_0x432dd2(0x107)]=![],_0x13f670[_0x432dd2(0xcc)]=_0x2ca4c3[_0x432dd2(0xd3)]?.[_0x432dd2(0xf8)]?.[_0x432dd2(0x11b)]||_0x2ca4c3[_0x432dd2(0x11b)],_0x13f670;}}async[_0x1404c2(0xad)+_0x1404c2(0xfb)](_0x16b483,_0x222c2c,_0x1ce2b0){const _0x11435f=_0x1404c2,_0x2404bd={};_0x2404bd[_0x11435f(0x9b)]=_0x11435f(0xe2)+_0x11435f(0xd2)+_0x11435f(0xdf)+_0x11435f(0xaf);const _0x3005df=_0x2404bd;this[_0x11435f(0xe1)+_0x11435f(0xcb)]();try{const _0x400357=this[_0x11435f(0xe7)+_0x11435f(0xee)](_0x1ce2b0),_0xe59e3d=this[_0x11435f(0xfd)+_0x11435f(0xd8)+'nt'](_0x1ce2b0,_0x400357);if(_0xe59e3d)return _0xe59e3d;const _0x3d4583={};_0x3d4583[_0x11435f(0x114)+'en']=_0x16b483,_0x3d4583[_0x11435f(0xea)+'d']=_0x222c2c,_0x3d4583[_0x11435f(0xfe)+_0x11435f(0x10b)]=_0x1ce2b0,_0x3d4583[_0x11435f(0xae)]=_0x400357;const _0x19908f=await this[_0x11435f(0xf4)][_0x11435f(0x93)](_0x3005df[_0x11435f(0x9b)],_0x3d4583);return _0x19908f[_0x11435f(0xf8)];}catch(_0xce0f2d){const _0x550bc0={};return _0x550bc0[_0x11435f(0x107)]=![],_0x550bc0[_0x11435f(0xcc)]=_0xce0f2d[_0x11435f(0xd3)]?.[_0x11435f(0xf8)]?.[_0x11435f(0x11b)]||_0xce0f2d[_0x11435f(0x11b)],_0x550bc0;}}async[_0x1404c2(0x102)](_0x2390eb,_0x21d2d5,_0x5038a5,_0x2ff2a3,_0x4b2cf1){const _0x23c2de=_0x1404c2,_0x25d73c={};_0x25d73c[_0x23c2de(0x11a)]=_0x23c2de(0xe6)+_0x23c2de(0xc2);const _0x460973=_0x25d73c;this[_0x23c2de(0xe1)+_0x23c2de(0xcb)]();try{const _0x336660={};_0x336660[_0x23c2de(0x114)+'en']=_0x2390eb,_0x336660[_0x23c2de(0xf7)]=_0x21d2d5,_0x336660[_0x23c2de(0xd6)]=_0x5038a5,_0x336660['to']=_0x2ff2a3,_0x336660[_0x23c2de(0xfe)+'s']=_0x4b2cf1;const _0xf7ef28=await this[_0x23c2de(0xf4)][_0x23c2de(0x93)](_0x460973[_0x23c2de(0x11a)],_0x336660);return _0xf7ef28[_0x23c2de(0xf8)];}catch(_0x5da773){const _0x34f696={};return _0x34f696[_0x23c2de(0x107)]=![],_0x34f696[_0x23c2de(0xcc)]=_0x5da773[_0x23c2de(0xd3)]?.[_0x23c2de(0xf8)]?.[_0x23c2de(0x11b)]||_0x5da773[_0x23c2de(0x11b)],_0x34f696;}}async[_0x1404c2(0x116)+_0x1404c2(0x118)](_0x5effa1,_0x25b95b,_0x2a317b){const _0x5df361=_0x1404c2,_0x94d96a={};_0x94d96a[_0x5df361(0x126)]=_0x5df361(0xe2)+_0x5df361(0xa2)+_0x5df361(0xf6)+_0x5df361(0xce)+'e';const _0x30cb1d=_0x94d96a;this[_0x5df361(0xe1)+_0x5df361(0xcb)]();try{const _0x191b64={};_0x191b64[_0x5df361(0x114)+'en']=_0x5effa1,_0x191b64[_0x5df361(0xea)+'d']=_0x25b95b,_0x191b64[_0x5df361(0x11b)]=_0x2a317b;const _0x2759b8=await this[_0x5df361(0xf4)][_0x5df361(0x93)](_0x30cb1d[_0x5df361(0x126)],_0x191b64);return _0x2759b8[_0x5df361(0xf8)];}catch(_0x55ea56){const _0xb4c33d={};return _0xb4c33d[_0x5df361(0x107)]=![],_0xb4c33d[_0x5df361(0xcc)]=_0x55ea56[_0x5df361(0xd3)]?.[_0x5df361(0xf8)]?.[_0x5df361(0x11b)]||_0x55ea56[_0x5df361(0x11b)],_0xb4c33d;}}async[_0x1404c2(0xc5)+_0x1404c2(0x96)](_0x17a487,_0x568a30){const _0x5e14c2=_0x1404c2;this[_0x5e14c2(0xe1)+_0x5e14c2(0xcb)]();try{const _0x5903d6={};_0x5903d6[_0x5e14c2(0x114)+'en']=_0x17a487,_0x5903d6[_0x5e14c2(0xea)+'d']=_0x568a30;const _0xf8fd8e={};_0xf8fd8e[_0x5e14c2(0xcd)]=_0x5903d6;const _0x876614=await this[_0x5e14c2(0xf4)][_0x5e14c2(0xb2)](_0x5e14c2(0xe2)+_0x5e14c2(0x104)+_0x5e14c2(0xb9)+'le',_0xf8fd8e);return _0x876614[_0x5e14c2(0xf8)];}catch(_0x448aa5){const _0x4637fc={};return _0x4637fc[_0x5e14c2(0x107)]=![],_0x4637fc[_0x5e14c2(0xcc)]=_0x448aa5[_0x5e14c2(0xd3)]?.[_0x5e14c2(0xf8)]?.[_0x5e14c2(0x11b)]||_0x448aa5[_0x5e14c2(0x11b)],_0x4637fc;}}async[_0x1404c2(0xc5)+_0x1404c2(0xfb)](_0x5dd397,_0x173015){const _0xe80c95=_0x1404c2;this[_0xe80c95(0xe1)+_0xe80c95(0xcb)]();try{const _0x27b9df={};_0x27b9df[_0xe80c95(0x114)+'en']=_0x5dd397,_0x27b9df[_0xe80c95(0xea)+'d']=_0x173015;const _0x27f8a6={};_0x27f8a6[_0xe80c95(0xcd)]=_0x27b9df;const _0x3f4cfe=await this[_0xe80c95(0xf4)][_0xe80c95(0xb2)](_0xe80c95(0xe2)+_0xe80c95(0xd2)+_0xe80c95(0xe4)+_0xe80c95(0x11e),_0x27f8a6);return _0x3f4cfe[_0xe80c95(0xf8)];}catch(_0x42c9cf){const _0x480fb7={};return _0x480fb7[_0xe80c95(0x107)]=![],_0x480fb7[_0xe80c95(0xcc)]=_0x42c9cf[_0xe80c95(0xd3)]?.[_0xe80c95(0xf8)]?.[_0xe80c95(0x11b)]||_0x42c9cf[_0xe80c95(0x11b)],_0x480fb7;}}}function _0x1385(){const _0x29ec38=['mp4','gif','ge/instagr','response','Formato\x20de','rNoWU','body','MessagingS','taAttachme','image','flv','10936cXgOkJ','AfEXz','gNuDV','webp','am/sendFil','exports','checkCrede','/hub/messa','lDYLJ','am/getProf','mov','/hub/email','getFileTyp','ão\x20inválid','zgRmB','recipientI','webm','tMessage','META_VIDEO','eFromUrl','tiff','KpoId','tCUpE','Meta.\x20Form','k/sendFile','api','\x22\x20não\x20é\x20ac','livre/send','subject','data','atos\x20aceit','sendTextTo','Instagram','META_AUDIO','validateMe','attachment','_FORMATS','QsBRQ','jpeg','sendEmail','daudd','ge/faceboo','as.','am/sendTex','success','ZXXKz','\x20\x22.','pop','Url','getExtensi','oBpen','alsValidat','geSPM','As\x20credenc','sqHjs','join','wma','channelTok','jpg','sendToMerc','kkWUG','adoLivre','os:\x20','KSkqr','message','1992488QOMacp','OupbV','ile','toLowerCas','png','onFromUrl','2534zJteks','eewmn','5668800tDwoJO','mJxKi','DwmEI','2344986PwvgVT','xoXRW','post','Message','aac','Facebook','mp3','split','9iaveEV','iente\x20não\x20','HxrWj','iais\x20do\x20cl','vWkPr','Vtrij','1245834xhRnJi','Gcwzp','wav','ge/mercado','gQIax','dcgiV','client','text','bmp','NKzhN','m4a','4993630kxGZvL','ogg','fkyls','sendFileTo','type','eMessage','GUNQZ','eito\x20pela\x20','get','DYqGM','ELRBU','file','22SYlfmh','foram\x20vali','wmv','k/getProfi','WVqhc','k/sendText','audio','MumhE','avi','62609HDxIPQ','ervice','nQrgZ','/send','YovOq','video','getProfile','META_IMAGE','dadas\x20ou\x20s','isCredenti','mkv','includes','ntials','error','params','TextMessag','vDAAR'];_0x1385=function(){return _0x29ec38;};return _0x1385();}function _0x21a9(_0x5ac7a4,_0x1cb005){_0x5ac7a4=_0x5ac7a4-(-0x1401+0x21fa+0x84*-0x1a);const _0x2e6256=_0x1385();let _0x469f5a=_0x2e6256[_0x5ac7a4];return _0x469f5a;}MessagingService[_0x1404c2(0xfc)+_0x1404c2(0xff)]=[_0x1404c2(0x95),_0x1404c2(0xa9),_0x1404c2(0xa1),_0x1404c2(0xd0)],MessagingService[_0x1404c2(0xed)+_0x1404c2(0xff)]=[_0x1404c2(0xd0),_0x1404c2(0xab),_0x1404c2(0xbe),_0x1404c2(0xe5),_0x1404c2(0xeb)],MessagingService[_0x1404c2(0xc6)+_0x1404c2(0xff)]=[_0x1404c2(0x115),_0x1404c2(0x101),_0x1404c2(0x120),_0x1404c2(0xd1)];const _0x355ca6={};_0x355ca6[_0x1404c2(0xd7)+_0x1404c2(0xc0)]=MessagingService,module[_0x1404c2(0xe0)]=_0x355ca6;
|
|
1
|
+
'use strict';const _0x805ab9=_0x22a7;(function(_0x2e6fcb,_0x47db04){const _0x1425c3=_0x22a7,_0x9ae685=_0x2e6fcb();while(!![]){try{const _0x222969=parseInt(_0x1425c3(0x1ad))/(-0x10e7+-0x684+0x176c)+-parseInt(_0x1425c3(0x10a))/(-0x11*-0x1b+-0xee*-0x1+-0x2b7)*(-parseInt(_0x1425c3(0x18e))/(-0x1*0x64d+-0x1117+0x1767))+-parseInt(_0x1425c3(0x1b0))/(0x86*-0x22+-0x1a3b+0x2c0b)*(-parseInt(_0x1425c3(0x16c))/(-0x23e7+-0x92d+0x2d19))+-parseInt(_0x1425c3(0x113))/(0x1030*-0x2+0x1*-0xffd+-0x3063*-0x1)+-parseInt(_0x1425c3(0x169))/(-0xb*0x8d+0xb19+-0x503)+-parseInt(_0x1425c3(0x13a))/(-0x20ae+-0x1*-0x2345+-0x28f)*(parseInt(_0x1425c3(0x148))/(-0x137b+0x1ca+-0x8dd*-0x2))+parseInt(_0x1425c3(0x198))/(-0x7f9+0x1a07*-0x1+0x220a)*(parseInt(_0x1425c3(0x14a))/(-0x1*0x2456+-0x442+0x28a3));if(_0x222969===_0x47db04)break;else _0x9ae685['push'](_0x9ae685['shift']());}catch(_0x141925){_0x9ae685['push'](_0x9ae685['shift']());}}}(_0x1c90,0x2af13*0x7+0xf27a2+-0x13acef));function _0x22a7(_0xb2a214,_0x39ac25){_0xb2a214=_0xb2a214-(-0x9fe+-0x23be+0x2eae);const _0xf2f94c=_0x1c90();let _0x430837=_0xf2f94c[_0xb2a214];return _0x430837;}class MessagingService{constructor(_0x7bd9c1,_0x449420){const _0x30f2e7=_0x22a7;this[_0x30f2e7(0xfa)]=_0x7bd9c1,this[_0x30f2e7(0x10b)]=_0x449420;}[_0x805ab9(0x13e)+_0x805ab9(0x185)](_0x14e555=!![]){const _0x4401f6=_0x805ab9,_0x821dd4={};_0x821dd4[_0x4401f6(0x17a)]=_0x4401f6(0x12b)+_0x4401f6(0x162)+_0x4401f6(0x13d)+_0x4401f6(0x11c)+_0x4401f6(0x180)+_0x4401f6(0xff)+_0x4401f6(0xf7);const _0x5a70e1=_0x821dd4;if(this[_0x4401f6(0x10b)]&&!this[_0x4401f6(0x10b)][_0x4401f6(0x167)+_0x4401f6(0x192)+'ed']()&&_0x14e555)throw new Error(_0x5a70e1[_0x4401f6(0x17a)]);}[_0x805ab9(0x105)+_0x805ab9(0x10e)](_0x1b4557){const _0x2a6765=_0x805ab9,_0x94e9d7={};_0x94e9d7[_0x2a6765(0x124)]=_0x2a6765(0x129),_0x94e9d7[_0x2a6765(0x188)]=_0x2a6765(0x1a5),_0x94e9d7[_0x2a6765(0x168)]=_0x2a6765(0x161),_0x94e9d7[_0x2a6765(0x107)]=_0x2a6765(0x17b),_0x94e9d7[_0x2a6765(0x15e)]=_0x2a6765(0x111),_0x94e9d7[_0x2a6765(0x133)]=_0x2a6765(0x189),_0x94e9d7[_0x2a6765(0x154)]=_0x2a6765(0x1a1),_0x94e9d7[_0x2a6765(0x16a)]=_0x2a6765(0x11b),_0x94e9d7[_0x2a6765(0x191)]=_0x2a6765(0x135),_0x94e9d7[_0x2a6765(0x187)]=_0x2a6765(0x134),_0x94e9d7[_0x2a6765(0x12f)]=_0x2a6765(0x136),_0x94e9d7[_0x2a6765(0x163)]=_0x2a6765(0x123),_0x94e9d7[_0x2a6765(0x121)]=_0x2a6765(0x15a),_0x94e9d7[_0x2a6765(0x15d)]=_0x2a6765(0x16b),_0x94e9d7[_0x2a6765(0x102)]=_0x2a6765(0x1a6),_0x94e9d7[_0x2a6765(0x10d)]=_0x2a6765(0x177),_0x94e9d7[_0x2a6765(0x19a)]=_0x2a6765(0x164),_0x94e9d7[_0x2a6765(0x145)]=_0x2a6765(0xf8),_0x94e9d7[_0x2a6765(0x1a9)]=_0x2a6765(0x125),_0x94e9d7[_0x2a6765(0x143)]=_0x2a6765(0x12e),_0x94e9d7[_0x2a6765(0x1aa)]=_0x2a6765(0x12a),_0x94e9d7[_0x2a6765(0x160)]=_0x2a6765(0x15f),_0x94e9d7[_0x2a6765(0x108)]=_0x2a6765(0xf4),_0x94e9d7[_0x2a6765(0x10c)]=_0x2a6765(0x126);const _0x38f399=_0x94e9d7,_0x3798e5=this[_0x2a6765(0x18f)+_0x2a6765(0x128)](_0x1b4557),_0x3a6fbc=[_0x38f399[_0x2a6765(0x124)],_0x38f399[_0x2a6765(0x188)],_0x38f399[_0x2a6765(0x168)],_0x38f399[_0x2a6765(0x107)],_0x38f399[_0x2a6765(0x15e)],_0x38f399[_0x2a6765(0x133)],_0x38f399[_0x2a6765(0x154)],_0x38f399[_0x2a6765(0x16a)]],_0x45a550=[_0x38f399[_0x2a6765(0x191)],_0x38f399[_0x2a6765(0x187)],_0x38f399[_0x2a6765(0x16a)],_0x38f399[_0x2a6765(0x12f)],_0x38f399[_0x2a6765(0x163)],_0x38f399[_0x2a6765(0x121)]],_0x2f9906=[_0x38f399[_0x2a6765(0x15d)],_0x38f399[_0x2a6765(0x102)],_0x38f399[_0x2a6765(0x10d)],_0x38f399[_0x2a6765(0x19a)],_0x38f399[_0x2a6765(0x145)],_0x38f399[_0x2a6765(0x1a9)],_0x38f399[_0x2a6765(0x143)]];if(_0x3a6fbc[_0x2a6765(0x1af)](_0x3798e5))return _0x38f399[_0x2a6765(0x1aa)];if(_0x45a550[_0x2a6765(0x1af)](_0x3798e5))return _0x38f399[_0x2a6765(0x160)];if(_0x2f9906[_0x2a6765(0x1af)](_0x3798e5))return _0x38f399[_0x2a6765(0x108)];return _0x38f399[_0x2a6765(0x10c)];}[_0x805ab9(0x18f)+_0x805ab9(0x128)](_0x15449c){const _0x3eb5bc=_0x805ab9,_0x1a9bb8=_0x15449c[_0x3eb5bc(0x171)]('?')[-0x1cd*0xa+-0x1*0x13eb+0x13*0x1ff][_0x3eb5bc(0x171)]('#')[-0x5*-0x3ad+0x1231+-0x2492];return _0x1a9bb8[_0x3eb5bc(0x171)]('.')[_0x3eb5bc(0x1a7)]()?.[_0x3eb5bc(0x170)+'e']()||'';}[_0x805ab9(0x173)+_0x805ab9(0x18d)+'nt'](_0x1d8836,_0xc0ec0c){const _0x2d2583=_0x805ab9,_0x9fbf72={};_0x9fbf72[_0x2d2583(0xf5)]=function(_0x483450,_0x25592f){return _0x483450===_0x25592f;},_0x9fbf72[_0x2d2583(0x12d)]=_0x2d2583(0x15f),_0x9fbf72[_0x2d2583(0x11e)]=function(_0x2fb888,_0x5c01ba){return _0x2fb888===_0x5c01ba;},_0x9fbf72[_0x2d2583(0x140)]=_0x2d2583(0x12a),_0x9fbf72[_0x2d2583(0x104)]=function(_0x53dddb,_0x19f6ea){return _0x53dddb===_0x19f6ea;},_0x9fbf72[_0x2d2583(0xfd)]=_0x2d2583(0xf4);const _0x7b3d34=_0x9fbf72,_0x3a8e30=this[_0x2d2583(0x18f)+_0x2d2583(0x128)](_0x1d8836);let _0x5763bb=null;if(_0x7b3d34[_0x2d2583(0xf5)](_0xc0ec0c,_0x7b3d34[_0x2d2583(0x12d)]))_0x5763bb=MessagingService[_0x2d2583(0x131)+_0x2d2583(0x18a)];else{if(_0x7b3d34[_0x2d2583(0x11e)](_0xc0ec0c,_0x7b3d34[_0x2d2583(0x140)]))_0x5763bb=MessagingService[_0x2d2583(0x174)+_0x2d2583(0x18a)];else _0x7b3d34[_0x2d2583(0x104)](_0xc0ec0c,_0x7b3d34[_0x2d2583(0xfd)])&&(_0x5763bb=MessagingService[_0x2d2583(0x15c)+_0x2d2583(0x18a)]);}if(_0x5763bb&&!_0x5763bb[_0x2d2583(0x1af)](_0x3a8e30))return{'success':![],'error':_0x2d2583(0x16e)+'\x20'+_0xc0ec0c+_0x2d2583(0x118)+_0x3a8e30+(_0x2d2583(0x116)+_0x2d2583(0x181)+_0x2d2583(0x153)+_0x2d2583(0x14f)+_0x2d2583(0x183))+_0x5763bb[_0x2d2583(0x19b)](',\x20')+'.','acceptedFormats':_0x5763bb};return null;}async[_0x805ab9(0x14e)+_0x805ab9(0x1ab)](_0x54c2f3,_0x4b6599,_0x2348e9){const _0x292846=_0x805ab9,_0x265d56={};_0x265d56[_0x292846(0x1a0)]=_0x292846(0x132)+_0x292846(0x1a2)+_0x292846(0x17d)+_0x292846(0x11d);const _0x4a0651=_0x265d56;this[_0x292846(0x13e)+_0x292846(0x185)]();try{const _0x437f35={};_0x437f35[_0x292846(0x1ac)+'en']=_0x54c2f3,_0x437f35[_0x292846(0xf9)+'d']=_0x4b6599,_0x437f35[_0x292846(0xfe)]=_0x2348e9;const _0x9e5a49=await this[_0x292846(0xfa)][_0x292846(0x14d)](_0x4a0651[_0x292846(0x1a0)],_0x437f35);return _0x9e5a49[_0x292846(0x166)];}catch(_0x5b854f){const _0x1e68c5={};return _0x1e68c5[_0x292846(0x130)]=![],_0x1e68c5[_0x292846(0x147)]=_0x5b854f[_0x292846(0x141)]?.[_0x292846(0x166)]?.[_0x292846(0xfe)]||_0x5b854f[_0x292846(0xfe)],_0x1e68c5;}}async[_0x805ab9(0xfc)+_0x805ab9(0x1ab)](_0x2dedd5,_0x34dc43,_0x341c85){const _0x160b12=_0x805ab9,_0x2257d0={};_0x2257d0[_0x160b12(0x11a)]=_0x160b12(0x132)+_0x160b12(0x1a2)+_0x160b12(0x1a3)+_0x160b12(0x11d);const _0x3fdee7=_0x2257d0;this[_0x160b12(0x13e)+_0x160b12(0x185)]();try{const _0x163758=this[_0x160b12(0x105)+_0x160b12(0x10e)](_0x341c85),_0x1e7f8f=this[_0x160b12(0x173)+_0x160b12(0x18d)+'nt'](_0x341c85,_0x163758);if(_0x1e7f8f)return _0x1e7f8f;const _0x5ee478={};_0x5ee478[_0x160b12(0x1ac)+'en']=_0x2dedd5,_0x5ee478[_0x160b12(0xf9)+'d']=_0x34dc43,_0x5ee478[_0x160b12(0x199)+_0x160b12(0x1a4)]=_0x341c85,_0x5ee478[_0x160b12(0x151)]=_0x163758;const _0x4da53f=await this[_0x160b12(0xfa)][_0x160b12(0x14d)](_0x3fdee7[_0x160b12(0x11a)],_0x5ee478);return _0x4da53f[_0x160b12(0x166)];}catch(_0x2c08e7){const _0x35f302={};return _0x35f302[_0x160b12(0x130)]=![],_0x35f302[_0x160b12(0x147)]=_0x2c08e7[_0x160b12(0x141)]?.[_0x160b12(0x166)]?.[_0x160b12(0xfe)]||_0x2c08e7[_0x160b12(0xfe)],_0x35f302;}}async[_0x805ab9(0x14e)+_0x805ab9(0x155)](_0x413734,_0x4edf37,_0x11fd30){const _0x28a889=_0x805ab9,_0x5a7b2d={};_0x5a7b2d[_0x28a889(0x1a8)]=_0x28a889(0x132)+_0x28a889(0x172)+_0x28a889(0x159)+_0x28a889(0x19c);const _0x54bb57=_0x5a7b2d;this[_0x28a889(0x13e)+_0x28a889(0x185)]();try{const _0x1c2ff5={};_0x1c2ff5[_0x28a889(0x1ac)+'en']=_0x413734,_0x1c2ff5[_0x28a889(0xf9)+'d']=_0x4edf37,_0x1c2ff5[_0x28a889(0x110)]=_0x11fd30;const _0x1736d6=await this[_0x28a889(0xfa)][_0x28a889(0x14d)](_0x54bb57[_0x28a889(0x1a8)],_0x1c2ff5);return _0x1736d6[_0x28a889(0x166)];}catch(_0x459b36){const _0x17dbdf={};return _0x17dbdf[_0x28a889(0x130)]=![],_0x17dbdf[_0x28a889(0x147)]=_0x459b36[_0x28a889(0x141)]?.[_0x28a889(0x166)]?.[_0x28a889(0xfe)]||_0x459b36[_0x28a889(0xfe)],_0x17dbdf;}}async[_0x805ab9(0xfc)+_0x805ab9(0x155)](_0xf71e38,_0x4ebdcb,_0x9978c6){const _0x643c02=_0x805ab9,_0x4d26b6={};_0x4d26b6[_0x643c02(0x117)]=_0x643c02(0x132)+_0x643c02(0x172)+_0x643c02(0x101)+_0x643c02(0x156);const _0x208781=_0x4d26b6;this[_0x643c02(0x13e)+_0x643c02(0x185)]();try{const _0x576338=this[_0x643c02(0x105)+_0x643c02(0x10e)](_0x9978c6),_0x4c0cab=this[_0x643c02(0x173)+_0x643c02(0x18d)+'nt'](_0x9978c6,_0x576338);if(_0x4c0cab)return _0x4c0cab;const _0x2a0f69={};_0x2a0f69[_0x643c02(0x1ac)+'en']=_0xf71e38,_0x2a0f69[_0x643c02(0xf9)+'d']=_0x4ebdcb,_0x2a0f69[_0x643c02(0x199)+_0x643c02(0x1a4)]=_0x9978c6,_0x2a0f69[_0x643c02(0x151)]=_0x576338;const _0x5d2923=await this[_0x643c02(0xfa)][_0x643c02(0x14d)](_0x208781[_0x643c02(0x117)],_0x2a0f69);return _0x5d2923[_0x643c02(0x166)];}catch(_0x4af035){const _0x3191c0={};return _0x3191c0[_0x643c02(0x130)]=![],_0x3191c0[_0x643c02(0x147)]=_0x4af035[_0x643c02(0x141)]?.[_0x643c02(0x166)]?.[_0x643c02(0xfe)]||_0x4af035[_0x643c02(0xfe)],_0x3191c0;}}async[_0x805ab9(0xfb)](_0x18726d,_0x520d80,_0x2f31f7,_0x2b3467,_0x2cbd41){const _0xb3bd23=_0x805ab9,_0x487418={};_0x487418[_0xb3bd23(0x138)]=_0xb3bd23(0x19e)+_0xb3bd23(0x16f);const _0x51b415=_0x487418;this[_0xb3bd23(0x13e)+_0xb3bd23(0x185)]();try{const _0x49fd19={};_0x49fd19[_0xb3bd23(0x1ac)+'en']=_0x18726d,_0x49fd19[_0xb3bd23(0x196)]=_0x520d80,_0x49fd19[_0xb3bd23(0x190)]=_0x2f31f7,_0x49fd19['to']=_0x2b3467,_0x49fd19[_0xb3bd23(0x199)+'s']=_0x2cbd41;const _0x54fbc0=await this[_0xb3bd23(0xfa)][_0xb3bd23(0x14d)](_0x51b415[_0xb3bd23(0x138)],_0x49fd19);return _0x54fbc0[_0xb3bd23(0x166)];}catch(_0xf6bad9){const _0x1917c8={};return _0x1917c8[_0xb3bd23(0x130)]=![],_0x1917c8[_0xb3bd23(0x147)]=_0xf6bad9[_0xb3bd23(0x141)]?.[_0xb3bd23(0x166)]?.[_0xb3bd23(0xfe)]||_0xf6bad9[_0xb3bd23(0xfe)],_0x1917c8;}}async[_0x805ab9(0x182)+_0x805ab9(0x1ab)](_0x42bd70,_0x1e7ffb){const _0x31ccef=_0x805ab9;this[_0x31ccef(0x13e)+_0x31ccef(0x185)]();try{const _0x1b93f0={};_0x1b93f0[_0x31ccef(0x1ac)+'en']=_0x42bd70,_0x1b93f0[_0x31ccef(0xf9)+'d']=_0x1e7ffb;const _0x4786e2={};_0x4786e2[_0x31ccef(0x175)]=_0x1b93f0;const _0x4b0112=await this[_0x31ccef(0xfa)][_0x31ccef(0x19d)](_0x31ccef(0x132)+_0x31ccef(0x1a2)+_0x31ccef(0x17e)+'le',_0x4786e2);return _0x4b0112[_0x31ccef(0x166)];}catch(_0x2de121){const _0x482764={};return _0x482764[_0x31ccef(0x130)]=![],_0x482764[_0x31ccef(0x147)]=_0x2de121[_0x31ccef(0x141)]?.[_0x31ccef(0x166)]?.[_0x31ccef(0xfe)]||_0x2de121[_0x31ccef(0xfe)],_0x482764;}}async[_0x805ab9(0x182)+_0x805ab9(0x155)](_0x5a973b,_0x1a3708){const _0x331297=_0x805ab9;this[_0x331297(0x13e)+_0x331297(0x185)]();try{const _0x57242f={};_0x57242f[_0x331297(0x1ac)+'en']=_0x5a973b,_0x57242f[_0x331297(0xf9)+'d']=_0x1a3708;const _0xb52474={};_0xb52474[_0x331297(0x175)]=_0x57242f;const _0xf0b28=await this[_0x331297(0xfa)][_0x331297(0x19d)](_0x331297(0x132)+_0x331297(0x172)+_0x331297(0xf6)+_0x331297(0x17c),_0xb52474);return _0xf0b28[_0x331297(0x166)];}catch(_0x163eb3){const _0x1d6e6d={};return _0x1d6e6d[_0x331297(0x130)]=![],_0x1d6e6d[_0x331297(0x147)]=_0x163eb3[_0x331297(0x141)]?.[_0x331297(0x166)]?.[_0x331297(0xfe)]||_0x163eb3[_0x331297(0xfe)],_0x1d6e6d;}}async[_0x805ab9(0x14e)+_0x805ab9(0x12c)](_0x339359,_0x208882,_0x4a01a4){const _0xbd95bb=_0x805ab9,_0x5b5402={};_0x5b5402[_0xbd95bb(0x165)]=_0xbd95bb(0x132)+_0xbd95bb(0x14c)+_0xbd95bb(0x19f)+_0xbd95bb(0x11d);const _0x12e5e7=_0x5b5402;this[_0xbd95bb(0x13e)+_0xbd95bb(0x185)]();try{const _0x1befa2={};_0x1befa2[_0xbd95bb(0x1ac)+'en']=_0x339359,_0x1befa2['to']=_0x208882,_0x1befa2[_0xbd95bb(0x110)]=_0x4a01a4;const _0x4320f9=await this[_0xbd95bb(0xfa)][_0xbd95bb(0x14d)](_0x12e5e7[_0xbd95bb(0x165)],_0x1befa2);return _0x4320f9[_0xbd95bb(0x166)];}catch(_0x5f088a){const _0x5acf34={};return _0x5acf34[_0xbd95bb(0x130)]=![],_0x5acf34[_0xbd95bb(0x147)]=_0x5f088a[_0xbd95bb(0x141)]?.[_0xbd95bb(0x166)]?.[_0xbd95bb(0xfe)]||_0x5f088a[_0xbd95bb(0xfe)],_0x5acf34;}}async[_0x805ab9(0xfc)+_0x805ab9(0x12c)](_0x4e4cdb,_0x4b895d,_0x56fd21,_0x224219,_0x18ea1f){const _0x427be5=_0x805ab9,_0x367e28={};_0x367e28[_0x427be5(0x11f)]=_0x427be5(0x132)+_0x427be5(0x14c)+_0x427be5(0x176)+_0x427be5(0x11d);const _0x195d94=_0x367e28;this[_0x427be5(0x13e)+_0x427be5(0x185)]();try{const _0x522495={};_0x522495[_0x427be5(0x1ac)+'en']=_0x4e4cdb,_0x522495['to']=_0x4b895d,_0x522495[_0x427be5(0x199)+_0x427be5(0x1a4)]=_0x56fd21,_0x522495[_0x427be5(0x151)]=_0x224219,_0x522495[_0x427be5(0x152)]=_0x18ea1f?.[_0x427be5(0x152)],_0x522495[_0x427be5(0x178)]=_0x18ea1f?.[_0x427be5(0x178)];const _0x4b74c4=await this[_0x427be5(0xfa)][_0x427be5(0x14d)](_0x195d94[_0x427be5(0x11f)],_0x522495);return _0x4b74c4[_0x427be5(0x166)];}catch(_0x981ae5){const _0x25dd3c={};return _0x25dd3c[_0x427be5(0x130)]=![],_0x25dd3c[_0x427be5(0x147)]=_0x981ae5[_0x427be5(0x141)]?.[_0x427be5(0x166)]?.[_0x427be5(0xfe)]||_0x981ae5[_0x427be5(0xfe)],_0x25dd3c;}}async[_0x805ab9(0x186)+_0x805ab9(0x194)+'pp'](_0x55653b,_0x30eb8d,_0x37f1e7,_0x37fbd6,_0x584488){const _0x18bb99=_0x805ab9,_0x23a2c3={};_0x23a2c3[_0x18bb99(0x137)]=_0x18bb99(0x132)+_0x18bb99(0x14c)+_0x18bb99(0x100)+_0x18bb99(0x142)+'e';const _0x54cc3f=_0x23a2c3;this[_0x18bb99(0x13e)+_0x18bb99(0x185)]();try{const _0x570460={};_0x570460[_0x18bb99(0x1ac)+'en']=_0x55653b,_0x570460['to']=_0x30eb8d,_0x570460[_0x18bb99(0x197)]=_0x37f1e7,_0x570460[_0x18bb99(0x150)]=_0x37fbd6,_0x570460[_0x18bb99(0xf3)]=_0x584488;const _0x2c76da=await this[_0x18bb99(0xfa)][_0x18bb99(0x14d)](_0x54cc3f[_0x18bb99(0x137)],_0x570460);return _0x2c76da[_0x18bb99(0x166)];}catch(_0x54d566){const _0x3d3fdb={};return _0x3d3fdb[_0x18bb99(0x130)]=![],_0x3d3fdb[_0x18bb99(0x147)]=_0x54d566[_0x18bb99(0x141)]?.[_0x18bb99(0x166)]?.[_0x18bb99(0xfe)]||_0x54d566[_0x18bb99(0xfe)],_0x3d3fdb;}}async[_0x805ab9(0xf2)+_0x805ab9(0x120)+_0x805ab9(0x146)](_0x3cfae9,_0x1b2e69){const _0x52c324=_0x805ab9,_0x539f4b={};_0x539f4b[_0x52c324(0x103)]=_0x52c324(0x132)+_0x52c324(0x14c)+_0x52c324(0x13f)+'ad';const _0x4d512d=_0x539f4b;this[_0x52c324(0x13e)+_0x52c324(0x185)]();try{const _0x4731eb={};_0x4731eb[_0x52c324(0x1ac)+'en']=_0x3cfae9,_0x4731eb[_0x52c324(0x157)]=_0x1b2e69;const _0x48c0e0=await this[_0x52c324(0xfa)][_0x52c324(0x14d)](_0x4d512d[_0x52c324(0x103)],_0x4731eb);return _0x48c0e0[_0x52c324(0x166)];}catch(_0x5238ef){const _0x86174a={};return _0x86174a[_0x52c324(0x130)]=![],_0x86174a[_0x52c324(0x147)]=_0x5238ef[_0x52c324(0x141)]?.[_0x52c324(0x166)]?.[_0x52c324(0xfe)]||_0x5238ef[_0x52c324(0xfe)],_0x86174a;}}async[_0x805ab9(0x119)+_0x805ab9(0x17f)+_0x805ab9(0x14b)](_0xcaeab1,_0x30e291,_0x486489,_0x54c052,_0xe0d52b){const _0x201fbb=_0x805ab9,_0x3ab36a={};_0x3ab36a[_0x201fbb(0x179)]=_0x201fbb(0x132)+_0x201fbb(0x144)+_0x201fbb(0x158)+_0x201fbb(0x122)+'e';const _0x5a6a42=_0x3ab36a;this[_0x201fbb(0x13e)+_0x201fbb(0x185)]();try{const _0x45fc1d={};_0x45fc1d[_0x201fbb(0x1ac)+'en']=_0xcaeab1,_0x45fc1d[_0x201fbb(0x16d)]=_0x30e291,_0x45fc1d[_0x201fbb(0x106)]=_0xe0d52b,_0x45fc1d[_0x201fbb(0x114)]=_0x486489,_0x45fc1d[_0x201fbb(0x110)]=_0x54c052;const _0x2964e6=await this[_0x201fbb(0xfa)][_0x201fbb(0x14d)](_0x5a6a42[_0x201fbb(0x179)],_0x45fc1d);return _0x2964e6[_0x201fbb(0x166)];}catch(_0xeb9257){const _0x6b085a={};return _0x6b085a[_0x201fbb(0x130)]=![],_0x6b085a[_0x201fbb(0x147)]=_0xeb9257[_0x201fbb(0x141)]?.[_0x201fbb(0x166)]?.[_0x201fbb(0xfe)]||_0xeb9257[_0x201fbb(0xfe)],_0x6b085a;}}async[_0x805ab9(0x1b1)+_0x805ab9(0x127)+_0x805ab9(0x195)](_0x2f8303,_0x59cac5,_0xa1bcb7){const _0x1ebbde=_0x805ab9,_0x4c7b0e={};_0x4c7b0e[_0x1ebbde(0x112)]=_0x1ebbde(0x132)+_0x1ebbde(0x144)+_0x1ebbde(0x13b)+_0x1ebbde(0x10f);const _0x20ec8e=_0x4c7b0e;this[_0x1ebbde(0x13e)+_0x1ebbde(0x185)]();try{const _0x1c0f8c={};_0x1c0f8c[_0x1ebbde(0x1ac)+'en']=_0x2f8303,_0x1c0f8c[_0x1ebbde(0x18b)]=_0x59cac5,_0x1c0f8c[_0x1ebbde(0x110)]=_0xa1bcb7;const _0x3d2689=await this[_0x1ebbde(0xfa)][_0x1ebbde(0x14d)](_0x20ec8e[_0x1ebbde(0x112)],_0x1c0f8c);return _0x3d2689[_0x1ebbde(0x166)];}catch(_0x900bd4){const _0x4a4d8={};return _0x4a4d8[_0x1ebbde(0x130)]=![],_0x4a4d8[_0x1ebbde(0x147)]=_0x900bd4[_0x1ebbde(0x141)]?.[_0x1ebbde(0x166)]?.[_0x1ebbde(0xfe)]||_0x900bd4[_0x1ebbde(0xfe)],_0x4a4d8;}}async[_0x805ab9(0x14e)+_0x805ab9(0x1ae)](_0x5250d2,_0x13fb7c,_0x535d2e){const _0x1b2e67=_0x805ab9,_0x2ec4b6={};_0x2ec4b6[_0x1b2e67(0x149)]=_0x1b2e67(0x132)+_0x1b2e67(0x184)+_0x1b2e67(0x109)+_0x1b2e67(0x11d);const _0xcaaa7d=_0x2ec4b6;this[_0x1b2e67(0x13e)+_0x1b2e67(0x185)]();try{const _0x6c27db={};_0x6c27db[_0x1b2e67(0x1ac)+'en']=_0x5250d2,_0x6c27db[_0x1b2e67(0x15b)]=_0x13fb7c,_0x6c27db[_0x1b2e67(0x110)]=_0x535d2e;const _0x5c7b3e=await this[_0x1b2e67(0xfa)][_0x1b2e67(0x14d)](_0xcaaa7d[_0x1b2e67(0x149)],_0x6c27db);return _0x5c7b3e[_0x1b2e67(0x166)];}catch(_0x51136b){const _0x2ef9c3={};return _0x2ef9c3[_0x1b2e67(0x130)]=![],_0x2ef9c3[_0x1b2e67(0x147)]=_0x51136b[_0x1b2e67(0x141)]?.[_0x1b2e67(0x166)]?.[_0x1b2e67(0xfe)]||_0x51136b[_0x1b2e67(0xfe)],_0x2ef9c3;}}async[_0x805ab9(0xfc)+_0x805ab9(0x1ae)](_0x9b0694,_0xd86411,_0x5621d9,_0x1f898f){const _0x21a771=_0x805ab9,_0x1167c9={};_0x1167c9[_0x21a771(0x193)]=_0x21a771(0x132)+_0x21a771(0x184)+_0x21a771(0x115)+_0x21a771(0x11d);const _0x15bc67=_0x1167c9;this[_0x21a771(0x13e)+_0x21a771(0x185)]();try{const _0x3366f5={};_0x3366f5[_0x21a771(0x1ac)+'en']=_0x9b0694,_0x3366f5[_0x21a771(0x15b)]=_0xd86411,_0x3366f5[_0x21a771(0x199)+_0x21a771(0x1a4)]=_0x5621d9,_0x3366f5[_0x21a771(0x151)]=_0x1f898f?.[_0x21a771(0x151)],_0x3366f5[_0x21a771(0x152)]=_0x1f898f?.[_0x21a771(0x152)],_0x3366f5[_0x21a771(0x178)]=_0x1f898f?.[_0x21a771(0x178)];const _0x1f3114=await this[_0x21a771(0xfa)][_0x21a771(0x14d)](_0x15bc67[_0x21a771(0x193)],_0x3366f5);return _0x1f3114[_0x21a771(0x166)];}catch(_0x162d30){const _0x5a6010={};return _0x5a6010[_0x21a771(0x130)]=![],_0x5a6010[_0x21a771(0x147)]=_0x162d30[_0x21a771(0x141)]?.[_0x21a771(0x166)]?.[_0x21a771(0xfe)]||_0x162d30[_0x21a771(0xfe)],_0x5a6010;}}}function _0x1c90(){const _0x579fa1=['onFromUrl','mp4','video','As\x20credenc','Whatsapp','PEkBV','tiff','IoPAJ','success','META_AUDIO','/hub/messa','WtFDa','wav','mp3','aac','zmwDb','ldkTb','ervice','12064MrqZji','livre/answ','MessagingS','iente\x20não\x20','checkCrede','p/markAsRe','Vqwcr','response','lateMessag','XhtuC','ge/mercado','ogjgC','sRead','error','2124cXlsuO','MGnbH','297WBZfTh','age','ge/whatsap','post','sendTextTo','atos\x20aceit','language','type','caption','Meta.\x20Form','DCWEr','Instagram','eMessage','messageId','livre/send','am/sendTex','wma','chatId','META_IMAGE','cJsxf','KMEvE','audio','bishj','avi','iais\x20do\x20cl','SXXYD','gif','xfgIS','data','isCredenti','NiqZk','5295717rrDbeF','aNoOE','jpg','5YFQCEb','packId','Formato\x20de','/send','toLowerCas','split','ge/instagr','validateMe','META_VIDEO','params','p/sendFile','png','filename','kaJfz','GgFgr','wmv','ile','k/sendText','k/getProfi','oLivreMess','dadas\x20ou\x20s','eito\x20pela\x20','getProfile','os:\x20','ge/telegra','ntials','sendTempla','IdVkJ','xSjcK','mkv','_FORMATS','questionId','exports','taAttachme','1727679HZApBM','getExtensi','body','Gfgqe','alsValidat','drNmC','teToWhatsa','estion','subject','name','382290UHbjDM','attachment','MLHsl','join','tMessage','get','/hub/email','p/sendText','aPwFd','webm','ge/faceboo','k/sendFile','Url','mov','jpeg','pop','SBArb','aeTnh','oLcuq','Facebook','channelTok','1792673RXLeNK','Telegram','includes','1019488UgDmBW','answerMerc','markWhatsa','components','image','VQEQz','am/getProf','as.','bmp','recipientI','api','sendEmail','sendFileTo','yYizF','message','ão\x20inválid','p/sendTemp','am/sendFil','Lkygp','QFBwa','JxuzD','getFileTyp','sellerId','ZzlPM','XtIYC','m/sendText','2aEvDzS','client','ozfaR','XSEpQ','eFromUrl','erQuestion','text','flv','cDINM','9649404VVcmpN','buyerId','m/sendFile','\x22\x20não\x20é\x20ac','xinzK','\x20\x22.','sendMercad','RFmqr','ogg','foram\x20vali','Message','SWYEB','BZVbo','ppMessageA','mdzls','TextMessag','m4a','JabQI','webp','file','adoLivreQu'];_0x1c90=function(){return _0x579fa1;};return _0x1c90();}MessagingService[_0x805ab9(0x131)+_0x805ab9(0x18a)]=[_0x805ab9(0x136),_0x805ab9(0x123),_0x805ab9(0x134),_0x805ab9(0x129)],MessagingService[_0x805ab9(0x174)+_0x805ab9(0x18a)]=[_0x805ab9(0x129),_0x805ab9(0x11b),_0x805ab9(0x161),_0x805ab9(0x1a5),_0x805ab9(0x1a1)],MessagingService[_0x805ab9(0x15c)+_0x805ab9(0x18a)]=[_0x805ab9(0x16b),_0x805ab9(0x1a6),_0x805ab9(0x177),_0x805ab9(0x164)];const _0x17ac02={};_0x17ac02[_0x805ab9(0x13c)+_0x805ab9(0x139)]=MessagingService,module[_0x805ab9(0x18c)]=_0x17ac02;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x1ead(_0x343686,_0x5b4a2f){_0x343686=_0x343686-(-0x2357+-0x6ae+0x2aa4);const _0x508f13=_0x296b();let _0x3fa4fc=_0x508f13[_0x343686];return _0x3fa4fc;}const _0x45117a=_0x1ead;(function(_0x13da39,_0x45b10b){const _0x3ca60c=_0x1ead,_0x22d6f9=_0x13da39();while(!![]){try{const _0x507b94=-parseInt(_0x3ca60c(0xc8))/(0x1ba5+0x20f1+-0x3c95)+parseInt(_0x3ca60c(0xa4))/(-0x1*0x2176+-0x1*0xf53+-0x30cb*-0x1)*(parseInt(_0x3ca60c(0xa5))/(0x115c+0x2*-0xa6b+-0x2f*-0x13))+parseInt(_0x3ca60c(0xbd))/(0x35*0x61+-0x3c8+-0x1*0x1049)+-parseInt(_0x3ca60c(0xca))/(-0xbaa*0x3+-0x1*-0x61+0x22a2)+parseInt(_0x3ca60c(0xb8))/(0x2b*-0xa6+0xa16+0x11d2)+parseInt(_0x3ca60c(0xc5))/(-0x1*0x11b1+0x21ae+-0xff6)+parseInt(_0x3ca60c(0xb3))/(0x24b0+0x115f+0x1*-0x3607)*(-parseInt(_0x3ca60c(0xc4))/(-0x157f+0x38b*0xa+-0x4a2*0x3));if(_0x507b94===_0x45b10b)break;else _0x22d6f9['push'](_0x22d6f9['shift']());}catch(_0x224a73){_0x22d6f9['push'](_0x22d6f9['shift']());}}}(_0x296b,0x298d6*-0x1+0x662*0x13+0x1*0x3c5f3));class WebhookService{constructor(_0x565f7c,_0x5aaf0c){const _0x5e2dac=_0x1ead;this[_0x5e2dac(0xaf)]=_0x565f7c,this[_0x5e2dac(0xbc)]=_0x5aaf0c;}[_0x45117a(0xbe)+_0x45117a(0xc3)](_0x175cce=!![]){const _0x5489b2=_0x45117a,_0x252e91={};_0x252e91[_0x5489b2(0xa2)]=_0x5489b2(0xcc)+_0x5489b2(0xb0)+_0x5489b2(0xba)+_0x5489b2(0xcd)+_0x5489b2(0xc0)+_0x5489b2(0xb7)+_0x5489b2(0xb5)+_0x5489b2(0xce)+_0x5489b2(0xaa)+_0x5489b2(0xab)+_0x5489b2(0xc1)+_0x5489b2(0xb2)+'o.';const _0x34be7a=_0x252e91;if(this[_0x5489b2(0xbc)]&&!this[_0x5489b2(0xbc)][_0x5489b2(0xbb)+_0x5489b2(0xa0)+'ed']()&&_0x175cce)throw new Error(_0x34be7a[_0x5489b2(0xa2)]);}async[_0x45117a(0xb9)+'ok'](_0x41c950,_0x3b7397){const _0xe7b1fa=_0x45117a,_0x23e5f2={};_0x23e5f2[_0xe7b1fa(0xc6)]=_0xe7b1fa(0xbf)+_0xe7b1fa(0xcb);const _0x479ef9=_0x23e5f2;this[_0xe7b1fa(0xbe)+_0xe7b1fa(0xc3)]();try{const _0x533861={};_0x533861[_0xe7b1fa(0xa6)]=_0x41c950,_0x533861[_0xe7b1fa(0xb6)+'en']=_0x3b7397;const _0x2dcd93=await this[_0xe7b1fa(0xaf)][_0xe7b1fa(0xa3)](_0x479ef9[_0xe7b1fa(0xc6)],_0x533861);return _0x2dcd93[_0xe7b1fa(0xc9)][_0xe7b1fa(0xad)];}catch(_0x20f45c){return![];}}async[_0x45117a(0xb4)+_0x45117a(0xa8)](_0x30486e){const _0x4cd54c=_0x45117a;this[_0x4cd54c(0xbe)+_0x4cd54c(0xc3)]();try{const _0x216580=await this[_0x4cd54c(0xaf)][_0x4cd54c(0xae)](_0x4cd54c(0xa9)+_0x4cd54c(0xa7)+_0x30486e);return _0x216580[_0x4cd54c(0xc9)][_0x4cd54c(0xad)];}catch(_0x3b8540){return![];}}[_0x45117a(0xac)+_0x45117a(0xc2)](_0x5f3b7e,_0x46a508){const _0x229585=_0x45117a,_0x541f6d={};_0x541f6d[_0x229585(0xb1)]=function(_0x536ccb,_0x5a761d){return _0x536ccb===_0x5a761d;};const _0x452857=_0x541f6d;return _0x452857[_0x229585(0xb1)](_0x5f3b7e,_0x46a508);}}const _0x19680e={};function _0x296b(){const _0x26268a=['webhookUrl','emove/','ook','/webhook/r','ção\x20ou\x20cha','me\x20waitFor','verifyWebh','success','delete','api','iais\x20do\x20cl','Ipdbk','()\x20primeir','8uHmZhU','removeWebh','as.\x20Aguard','channelTok','ão\x20inválid','293406HszDSa','setupWebho','iente\x20não\x20','isCredenti','client','789560VrDyHy','checkCrede','/webhook/s','dadas\x20ou\x20s','Validation','ookToken','ntials','2606238sSpZcL','1479072yYmryc','stcJb','vice','67294VKeTRc','data','533430FoyZBb','etup','As\x20credenc','foram\x20vali','e\x20a\x20valida','WebhookSer','alsValidat','exports','IDJpT','post','228212ACArdd','3biXBlu'];_0x296b=function(){return _0x26268a;};return _0x296b();}_0x19680e[_0x45117a(0x9f)+_0x45117a(0xc7)]=WebhookService,module[_0x45117a(0xa1)]=_0x19680e;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ interface ConnectionData {
|
|
|
12
12
|
pageAccessToken: string;
|
|
13
13
|
clientBackURL: string;
|
|
14
14
|
clientFrontURL: string;
|
|
15
|
-
type: "facebook" | "instagram" | "email" | "mercadolivre";
|
|
15
|
+
type: "facebook" | "instagram" | "email" | "mercadolivre" | "whatsapp" | "telegram";
|
|
16
16
|
active: boolean;
|
|
17
17
|
emailUser?: string;
|
|
18
18
|
emailPassword?: string;
|
|
@@ -24,9 +24,14 @@ interface ConnectionData {
|
|
|
24
24
|
emailSmtpTls?: boolean;
|
|
25
25
|
accessToken?: string;
|
|
26
26
|
channelToken?: string;
|
|
27
|
+
wabaId?: string;
|
|
28
|
+
businessAccountId?: string;
|
|
29
|
+
whatsappPhoneNumber?: string;
|
|
30
|
+
telegramBotUsername?: string;
|
|
27
31
|
}
|
|
28
32
|
interface MessageData {
|
|
29
33
|
mid: string;
|
|
34
|
+
fromMe?: boolean;
|
|
30
35
|
from: {
|
|
31
36
|
id: string;
|
|
32
37
|
name?: string;
|
|
@@ -56,19 +61,141 @@ interface MessageData {
|
|
|
56
61
|
};
|
|
57
62
|
}>;
|
|
58
63
|
};
|
|
59
|
-
|
|
64
|
+
reaction?: {
|
|
65
|
+
mid: string;
|
|
66
|
+
action?: string;
|
|
67
|
+
reaction?: string;
|
|
68
|
+
emoji?: string;
|
|
69
|
+
};
|
|
70
|
+
read?: {
|
|
71
|
+
mid: string;
|
|
72
|
+
};
|
|
73
|
+
comment?: {
|
|
74
|
+
commentId: string;
|
|
75
|
+
parentId?: string;
|
|
76
|
+
postId?: string;
|
|
77
|
+
text?: string;
|
|
78
|
+
from?: {
|
|
79
|
+
id?: string;
|
|
80
|
+
name?: string;
|
|
81
|
+
};
|
|
82
|
+
verb?: string;
|
|
83
|
+
mediaType?: string;
|
|
84
|
+
};
|
|
85
|
+
postReaction?: {
|
|
86
|
+
postId?: string;
|
|
87
|
+
reactionType?: string;
|
|
88
|
+
from?: {
|
|
89
|
+
id?: string;
|
|
90
|
+
name?: string;
|
|
91
|
+
};
|
|
92
|
+
verb?: string;
|
|
93
|
+
};
|
|
94
|
+
storyMention?: {
|
|
95
|
+
storyId?: string;
|
|
96
|
+
storyUrl?: string;
|
|
97
|
+
from?: {
|
|
98
|
+
id?: string;
|
|
99
|
+
name?: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
storyReply?: {
|
|
103
|
+
storyId?: string;
|
|
104
|
+
storyUrl?: string;
|
|
105
|
+
text?: string;
|
|
106
|
+
from?: {
|
|
107
|
+
id?: string;
|
|
108
|
+
name?: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
liveComment?: {
|
|
112
|
+
liveId?: string;
|
|
113
|
+
commentId?: string;
|
|
114
|
+
text?: string;
|
|
115
|
+
from?: {
|
|
116
|
+
id?: string;
|
|
117
|
+
name?: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
mention?: {
|
|
121
|
+
mediaId?: string;
|
|
122
|
+
commentId?: string;
|
|
123
|
+
text?: string;
|
|
124
|
+
from?: {
|
|
125
|
+
id?: string;
|
|
126
|
+
name?: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
status?: {
|
|
130
|
+
mid: string;
|
|
131
|
+
status: "sent" | "delivered" | "read" | "failed";
|
|
132
|
+
recipientId?: string;
|
|
133
|
+
conversation?: {
|
|
134
|
+
id?: string;
|
|
135
|
+
origin?: {
|
|
136
|
+
type?: string;
|
|
137
|
+
};
|
|
138
|
+
expirationTimestamp?: string;
|
|
139
|
+
};
|
|
140
|
+
pricing?: {
|
|
141
|
+
billable?: boolean;
|
|
142
|
+
category?: string;
|
|
143
|
+
pricingModel?: string;
|
|
144
|
+
};
|
|
145
|
+
errors?: Array<{
|
|
146
|
+
code?: number;
|
|
147
|
+
title?: string;
|
|
148
|
+
message?: string;
|
|
149
|
+
errorData?: {
|
|
150
|
+
details?: string;
|
|
151
|
+
};
|
|
152
|
+
}>;
|
|
153
|
+
};
|
|
154
|
+
template?: {
|
|
155
|
+
name?: string;
|
|
156
|
+
language?: string;
|
|
157
|
+
};
|
|
158
|
+
location?: {
|
|
159
|
+
latitude: number;
|
|
160
|
+
longitude: number;
|
|
161
|
+
name?: string;
|
|
162
|
+
address?: string;
|
|
163
|
+
};
|
|
164
|
+
contacts?: Array<{
|
|
165
|
+
name?: {
|
|
166
|
+
formattedName?: string;
|
|
167
|
+
firstName?: string;
|
|
168
|
+
lastName?: string;
|
|
169
|
+
};
|
|
170
|
+
phones?: Array<{
|
|
171
|
+
phone?: string;
|
|
172
|
+
waId?: string;
|
|
173
|
+
type?: string;
|
|
174
|
+
}>;
|
|
175
|
+
}>;
|
|
176
|
+
interactive?: {
|
|
177
|
+
type: "button_reply" | "list_reply";
|
|
178
|
+
id: string;
|
|
179
|
+
title: string;
|
|
180
|
+
description?: string;
|
|
181
|
+
};
|
|
182
|
+
source: "facebook" | "instagram" | "email" | "telegram" | "mercadolivre" | "whatsapp" | string;
|
|
60
183
|
}
|
|
61
|
-
interface
|
|
184
|
+
interface HubWebhookPayload {
|
|
62
185
|
pageId: string;
|
|
63
|
-
|
|
186
|
+
type: "facebook" | "instagram" | "whatsapp" | "telegram";
|
|
64
187
|
messageData: MessageData[];
|
|
65
|
-
metadata?: {
|
|
66
|
-
platform: string;
|
|
67
|
-
accountName?: string;
|
|
68
|
-
externalThreadId?: string;
|
|
69
|
-
clientId?: string;
|
|
70
|
-
};
|
|
71
188
|
}
|
|
189
|
+
interface EmailWebhookPayload {
|
|
190
|
+
type: "email";
|
|
191
|
+
channelToken: string;
|
|
192
|
+
messageData: MessageData[];
|
|
193
|
+
}
|
|
194
|
+
interface MercadoLivreWebhookPayload {
|
|
195
|
+
pageId: string;
|
|
196
|
+
messageData: any;
|
|
197
|
+
}
|
|
198
|
+
type WebhookPayload = HubWebhookPayload | EmailWebhookPayload | MercadoLivreWebhookPayload;
|
|
72
199
|
interface AuthResponse {
|
|
73
200
|
success: boolean;
|
|
74
201
|
token?: string;
|
package/dist/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x311bfb=_0x4866;function _0x5653(){var _0xab5e5d=['1122368SljLqr','9cAISea','10742rfQqzQ','56KANbPc','7VHeKrn','exports','1504158ntWGoK','3583570thdqvP','21349328DQvilC','87zBaIya','66104AxkGWE','2745600guqyPI'];_0x5653=function(){return _0xab5e5d;};return _0x5653();}(function(_0x834483,_0x1b2e2d){var _0x11115f=_0x4866,_0x46cfcf=_0x834483();while(!![]){try{var _0x5044ba=-parseInt(_0x11115f(0x9d))/(-0x26*0x56+-0x809+0x14ce)*(parseInt(_0x11115f(0x9c))/(0xfe4+0xafe+-0xa0*0x2b))+parseInt(_0x11115f(0x97))/(0x1*-0x648+-0x9*-0x1a+-0x51*-0x11)*(-parseInt(_0x11115f(0x98))/(0x5c9*0x2+0x15cc+-0x215a))+-parseInt(_0x11115f(0x99))/(-0xc8b*-0x3+-0xef3+-0x16a9)+-parseInt(_0x11115f(0xa0))/(0x16a*-0x1a+-0x210c+0x45d6)*(parseInt(_0x11115f(0x9e))/(-0xf4*0x14+0x22*-0x105+-0x35c1*-0x1))+-parseInt(_0x11115f(0x9a))/(-0x1*-0x1a35+0x1*0x405+0xf19*-0x2)+-parseInt(_0x11115f(0x9b))/(-0x1f32+-0x1e93+-0x6de*-0x9)*(-parseInt(_0x11115f(0xa1))/(0x7b4+0x17*0xd+-0x8d5))+parseInt(_0x11115f(0xa2))/(-0x1137+-0x1fd8+-0x2*-0x188d);if(_0x5044ba===_0x1b2e2d)break;else _0x46cfcf['push'](_0x46cfcf['shift']());}catch(_0x11e933){_0x46cfcf['push'](_0x46cfcf['shift']());}}}(_0x5653,-0xd3443+0x2869d+0x1383a0));function _0x4866(_0x88a3bf,_0xbd1aea){_0x88a3bf=_0x88a3bf-(0x4f*0x10+0x1e97+-0x56*0x68);var _0x29f71a=_0x5653();var _0x32c4a2=_0x29f71a[_0x88a3bf];return _0x32c4a2;}module[_0x311bfb(0x9f)]={};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@connection-hub/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"description": "SDK oficial para a API do Connection Hub",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -27,7 +27,9 @@
|
|
|
27
27
|
"connection-hub-sdk",
|
|
28
28
|
"connectionhub",
|
|
29
29
|
"connectionhub-sdk",
|
|
30
|
-
"mercadolivre"
|
|
30
|
+
"mercadolivre",
|
|
31
|
+
"whatsapp",
|
|
32
|
+
"telegram"
|
|
31
33
|
],
|
|
32
34
|
"author": "OXM Tecnologia",
|
|
33
35
|
"license": "MIT",
|