@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 CHANGED
@@ -1,108 +1,47 @@
1
- # Connection Hub SDK
2
-
3
- SDK oficial para integração com a API do Connection Hub.
4
-
5
- # Aviso Importante
6
-
7
- Este SDK é parte integrante de uma solução comercial e requer licenciamento adequado para utilização em ambiente de produção.
8
- Para informações sobre preços, licenciamento e suporte, entre em contato com nossa equipe comercial em comercial@connectionhub.com.br.
9
-
10
- ## Instalação
11
-
12
- ```bash
13
- npm install @connection-hub/sdk
14
- ```
15
-
16
- ## Uso
17
-
18
- ### Inicialização
19
-
20
- ```typescript
21
- import { ConnectionHubClient } from "@connection-hub/sdk";
22
-
23
- const client = new ConnectionHubClient({
24
- apiUrl: "sua-url-api", // Opcional, apenas se você adquiriu servidor exclusivo
25
- accessToken: "seu-token-acesso", // Obtenha seu token no painel contratado
26
- });
27
- ```
28
-
29
- ### Envio de Mensagens
30
-
31
- ```typescript
32
- // Facebook Text
33
- const fbMessage = await client.messaging.sendTextToFacebook(
34
- "channelToken",
35
- "recipientId",
36
- "Olá, como posso ajudar?"
37
- );
38
-
39
- // Facebook File (image,audio,video,documentos)
40
- const fbMessage = await client.messaging.sendFileToFacebook(
41
- "channelToken",
42
- "recipientId",
43
- "file url"
44
- );
45
-
46
- // Instagram Text
47
- const igMessage = await client.messaging.sendTextToInstagram(
48
- "channelToken",
49
- "recipientId",
50
- "Olá, como posso ajudar?"
51
- );
52
-
53
- // Instagram File (image,video)
54
- const igMessage = await client.messaging.sendFileToInstagram(
55
- "channelToken",
56
- "recipientId",
57
- "file url"
58
- );
59
-
60
- // Email
61
- const email = await client.messaging.sendEmail(
62
- "channelToken",
63
- "Assunto do Email",
64
- "Corpo do email",
65
- "destinatario@exemplo.com",
66
- [], // anexos (opcional)
67
- "messageId", // inReplyTo (opcional)
68
- ["reference1", "reference2"] // references (opcional)
69
- );
70
- ```
71
-
72
- ### Webhooks
73
-
74
- ```typescript
75
- // Configurar webhook
76
- await client.webhooks.setupWebhook(
77
- "channelToken",
78
- "https://seu-servidor.com/webhook"
79
- );
80
-
81
- // Remover webhook / desconectar canal
82
- await client.webhooks.removeWebhook("channelToken");
83
- ```
84
-
85
- ### Gerenciamento de Conexões
86
-
87
- ````typescript
88
- // Listar conexões
89
- const connections = await client.connections.listConnections();
90
-
91
- // Obter conexão específica
92
- const connection = await client.connections.getConnection('channelToken');
93
-
94
-
95
- ## Tipos
96
-
97
- O SDK inclui tipos TypeScript para melhor desenvolvimento:
98
-
99
- ```typescript
100
- import {
101
- ConnectionData,
102
- MessageData
103
- } from '@connection-hub/sdk';
104
- ````
105
-
106
- ## Suporte
107
-
108
- Para suporte, entre em contato com nossa equipe através do email suporte@connectionhub.com.br
1
+ # Connection Hub SDK
2
+
3
+ SDK oficial para integração com a API do Connection Hub.
4
+
5
+ ## Aviso importante
6
+
7
+ Este SDK é parte de uma solução comercial e requer licenciamento adequado
8
+ para uso em produção. Para informações sobre preços, licenciamento e
9
+ suporte, entre em contato em **comercial@connectionhub.com.br**.
10
+
11
+ ## Instalação
12
+
13
+ ```bash
14
+ npm install @connection-hub/sdk
15
+ ```
16
+
17
+ ## Início rápido
18
+
19
+ ```ts
20
+ import { ConnectionHubClient } from "@connection-hub/sdk";
21
+
22
+ const client = new ConnectionHubClient({
23
+ accessToken: "seu-token-de-acesso", // obrigatório
24
+ apiUrl: "https://api.connectionhub.com.br", // opcional
25
+ });
26
+
27
+ await client.waitForValidation();
28
+
29
+ await client.messaging.sendTextToFacebook(
30
+ "channelToken",
31
+ "recipientId",
32
+ "Olá!"
33
+ );
34
+ ```
35
+
36
+ ## Documentação completa
37
+
38
+ A referência detalhada — todos os métodos, payloads de envio e formato dos
39
+ webhooks recebidos por canal — vive no painel do ConnectionHub:
40
+
41
+ **→ Acesse `/docs/developer` no painel contratado.**
42
+
43
+ Você precisa estar autenticado no painel para visualizar.
44
+
45
+ ## Suporte
46
+
47
+ Para suporte, entre em contato com **suporte@connectionhub.com.br**.
package/dist/client.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  declare const axios: any;
2
- declare const AuthServiceModule: any;
3
2
  declare const MessagingServiceModule: any;
4
3
  declare const WebhookServiceModule: any;
5
4
  declare const ConnectionServiceModule: any;
@@ -8,7 +7,6 @@ declare class ConnectionHubClient {
8
7
  private readonly config;
9
8
  private credentialsValidated;
10
9
  private validationPromise;
11
- auth: any;
12
10
  messaging: any;
13
11
  webhooks: any;
14
12
  connections: any;
package/dist/client.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x17618a=_0x5101;(function(_0x15a248,_0x1c2649){const _0x539b23=_0x5101,_0x950660=_0x15a248();while(!![]){try{const _0x36d857=-parseInt(_0x539b23(0x105))/(0x2*0x3d1+0x6f3*0x1+-0xe94)*(-parseInt(_0x539b23(0x111))/(0xbf2+-0xf80+0x390))+-parseInt(_0x539b23(0x158))/(0x7c8*-0x2+-0x1f70+0x2f03)+parseInt(_0x539b23(0x155))/(0x19*-0x64+0xe6*0x1f+0x2*-0x909)*(parseInt(_0x539b23(0x121))/(-0x1c45+0x16a*-0xe+0x3016))+-parseInt(_0x539b23(0x114))/(0x1*0x564+0x1aeb+0xf*-0x227)*(-parseInt(_0x539b23(0x115))/(0x8a7+0x1a10+0x128*-0x1e))+-parseInt(_0x539b23(0x125))/(-0x1*-0x109d+-0x26f0*0x1+0x165b)+-parseInt(_0x539b23(0x14e))/(0x65*0x26+-0x1332+0x23*0x1f)*(parseInt(_0x539b23(0x14c))/(0x1*-0xbf5+0x2*0xa67+-0x8cf))+-parseInt(_0x539b23(0x154))/(0xbf7+-0x1*-0xae5+-0x16d1)*(-parseInt(_0x539b23(0x100))/(0x4*0x2c1+0x1b*-0x61+-0xbd));if(_0x36d857===_0x1c2649)break;else _0x950660['push'](_0x950660['shift']());}catch(_0x40e6b1){_0x950660['push'](_0x950660['shift']());}}}(_0x5ace,0x79237*0x1+-0xd1ca0+-0xdd386*-0x1));function _0x5101(_0x2eb256,_0x49c13e){_0x2eb256=_0x2eb256-(0xd4f*-0x1+0x5d*0x5b+-0x12c3);const _0xe3b3f7=_0x5ace();let _0x525770=_0xe3b3f7[_0x2eb256];return _0x525770;}const axios=require(_0x17618a(0x11e)),AuthServiceModule=require(_0x17618a(0x11b)),MessagingServiceModule=require(_0x17618a(0x13f)+_0x17618a(0x148)),WebhookServiceModule=require(_0x17618a(0x12f)+_0x17618a(0x159)),ConnectionServiceModule=require(_0x17618a(0x14f)+_0x17618a(0x11a));class ConnectionHubClient{constructor(_0xd97dbc){const _0x372b4f=_0x17618a,_0x5d8bad={};_0x5d8bad[_0x372b4f(0x13c)]=_0x372b4f(0x153)+_0x372b4f(0x103)+_0x372b4f(0x129),_0x5d8bad[_0x372b4f(0x116)]=_0x372b4f(0x140)+_0x372b4f(0x12c),_0x5d8bad[_0x372b4f(0x102)]=_0x372b4f(0xfd)+_0x372b4f(0x118),_0x5d8bad[_0x372b4f(0x10d)]=_0x372b4f(0x134)+_0x372b4f(0x132)+_0x372b4f(0x127)+'br';const _0x59c363=_0x5d8bad;this[_0x372b4f(0x11f)+_0x372b4f(0x123)]=![],this[_0x372b4f(0x13b)+_0x372b4f(0x10b)]=null;if(!_0xd97dbc[_0x372b4f(0x107)+'n'])throw new Error(_0x59c363[_0x372b4f(0x13c)]);this[_0x372b4f(0x130)]=_0xd97dbc;const _0x4942f3={};_0x4942f3[_0x372b4f(0x11d)+'pe']=_0x59c363[_0x372b4f(0x116)];const _0x29a842=_0x4942f3;_0xd97dbc[_0x372b4f(0x107)+'n']&&(_0x29a842[_0x59c363[_0x372b4f(0x102)]]=_0x372b4f(0x150)+_0xd97dbc[_0x372b4f(0x107)+'n']);const _0x2542e7={};_0x2542e7[_0x372b4f(0x135)]=_0xd97dbc[_0x372b4f(0x112)]||_0x59c363[_0x372b4f(0x10d)],_0x2542e7[_0x372b4f(0x157)]=_0x29a842,this[_0x372b4f(0x133)]=axios[_0x372b4f(0x14d)](_0x2542e7),this[_0x372b4f(0x139)]=new AuthServiceModule[(_0x372b4f(0x126))+'e'](this[_0x372b4f(0x133)],this),this[_0x372b4f(0x106)]=new MessagingServiceModule[(_0x372b4f(0x10a))+(_0x372b4f(0x10c))](this[_0x372b4f(0x133)],this),this[_0x372b4f(0x12a)]=new WebhookServiceModule[(_0x372b4f(0x124))+(_0x372b4f(0x104))](this[_0x372b4f(0x133)],this),this[_0x372b4f(0x110)+'s']=new ConnectionServiceModule[(_0x372b4f(0x10f))+(_0x372b4f(0x14b))](this[_0x372b4f(0x133)],this),this[_0x372b4f(0x13b)+_0x372b4f(0x10b)]=this[_0x372b4f(0x151)+_0x372b4f(0x128)]();}async[_0x17618a(0x151)+_0x17618a(0x128)](){const _0x72eb71=_0x17618a,_0xd97d29={'AeoHH':_0x72eb71(0x10e)+_0x72eb71(0x12e),'RerGE':function(_0x349cdf,_0x4a7cb7){return _0x349cdf===_0x4a7cb7;},'rPhNb':function(_0x4c5e82,_0x48eab1){return _0x4c5e82(_0x48eab1);},'tMPmh':function(_0x3481d4,_0x53e83b){return _0x3481d4(_0x53e83b);}};try{if(this[_0x72eb71(0x13b)+_0x72eb71(0x10b)])return this[_0x72eb71(0x13b)+_0x72eb71(0x10b)];return this[_0x72eb71(0x13b)+_0x72eb71(0x10b)]=new Promise(async _0x365ed3=>{const _0x2987a4=_0x72eb71;try{const _0x52b960=await this[_0x2987a4(0x133)][_0x2987a4(0x144)](_0xd97d29[_0x2987a4(0x109)]);this[_0x2987a4(0x11f)+_0x2987a4(0x123)]=_0xd97d29[_0x2987a4(0xff)](_0x52b960[_0x2987a4(0x156)][_0x2987a4(0x13a)],!![]),_0xd97d29[_0x2987a4(0x143)](_0x365ed3,this[_0x2987a4(0x11f)+_0x2987a4(0x123)]);}catch(_0xae5d30){_0xd97d29[_0x2987a4(0xff)](_0xae5d30[_0x2987a4(0x136)]?.[_0x2987a4(0x119)],0x20*0x112+0x7d*-0x19+-0x147a*0x1)||_0xd97d29[_0x2987a4(0xff)](_0xae5d30[_0x2987a4(0x136)]?.[_0x2987a4(0x119)],-0xd*0x2c8+-0x13d0+-0x1*-0x398b)?(this[_0x2987a4(0x11f)+_0x2987a4(0x123)]=![],_0xd97d29[_0x2987a4(0x149)](_0x365ed3,![])):(this[_0x2987a4(0x11f)+_0x2987a4(0x123)]=![],_0xd97d29[_0x2987a4(0x149)](_0x365ed3,![]));}finally{this[_0x2987a4(0x13b)+_0x2987a4(0x10b)]=null;}}),this[_0x72eb71(0x13b)+_0x72eb71(0x10b)];}catch(_0x38d8a){return this[_0x72eb71(0x11f)+_0x72eb71(0x123)]=![],![];}}[_0x17618a(0x113)+_0x17618a(0x14a)+'ed'](){const _0x5eaf12=_0x17618a;return this[_0x5eaf12(0x11f)+_0x5eaf12(0x123)];}[_0x17618a(0x142)+_0x17618a(0x146)](_0x2f939a=!![]){const _0x483568=_0x17618a,_0x15ed91={};_0x15ed91[_0x483568(0x138)]=_0x483568(0x152)+_0x483568(0x131)+_0x483568(0x120)+_0x483568(0x137)+_0x483568(0x12b)+_0x483568(0x147)+_0x483568(0x141)+_0x483568(0x13d)+_0x483568(0x13e)+'.';const _0x32e15a=_0x15ed91;if(!this[_0x483568(0x11f)+_0x483568(0x123)]&&_0x2f939a)throw new Error(_0x32e15a[_0x483568(0x138)]);return this[_0x483568(0x11f)+_0x483568(0x123)];}async[_0x17618a(0x145)+_0x17618a(0x11c)](){const _0x465701=_0x17618a;if(this[_0x465701(0x13b)+_0x465701(0x10b)])return this[_0x465701(0x13b)+_0x465701(0x10b)];if(this[_0x465701(0x11f)+_0x465701(0x123)])return!![];return this[_0x465701(0x151)+_0x465701(0x128)]();}[_0x17618a(0x12d)+_0x17618a(0x108)](_0x39cf0e){const _0x1023c0=_0x17618a,_0x41aa3f={};_0x41aa3f[_0x1023c0(0x122)]=_0x1023c0(0xfd)+_0x1023c0(0x118);const _0x186b2c=_0x41aa3f;this[_0x1023c0(0x130)][_0x1023c0(0x107)+'n']=_0x39cf0e,this[_0x1023c0(0x133)][_0x1023c0(0xfe)][_0x1023c0(0x157)][_0x186b2c[_0x1023c0(0x122)]]=_0x1023c0(0x150)+_0x39cf0e,this[_0x1023c0(0x11f)+_0x1023c0(0x123)]=![],this[_0x1023c0(0x13b)+_0x1023c0(0x10b)]=this[_0x1023c0(0x151)+_0x1023c0(0x128)]();}}function _0x5ace(){const _0x532583=['RerGE','1524UDPnAc','HubClient','JAKOk','n\x20é\x20obriga','vice','7ZfEgpO','messaging','accessToke','oken','AeoHH','MessagingS','Promise','ervice','mEDEC','/auth/vali','Connection','connection','288166ZttjrQ','apiUrl','isCredenti','2072886EGuTAs','7emzeCK','cyqej','exports','ion','status','ections','./lib/auth','idation','Content-Ty','axios','credential','zado\x20corre','1229505oVIaNP','BwmiV','sValidated','WebhookSer','8520312epMshE','AuthServic','onhub.com.','edentials','tório','webhooks','s\x20credenci','n/json','setAccessT','date','./lib/webh','config','o\x20iniciali','i.connecti','api','https://ap','baseURL','response','tamente.\x20A','DMhZV','auth','success','validation','gVhmz','das\x20ou\x20são','\x20inválidas','./lib/mess','applicatio','ram\x20valida','canExecute','rPhNb','get','waitForVal','Operations','ais\x20não\x20fo','aging','tMPmh','alsValidat','Service','33830EtARlS','create','621IXdRAR','./lib/conn','Bearer\x20','validateCr','Cliente\x20nã','AccessToke','30349fJJLJm','8yVpBok','data','headers','1064358LkIpSB','ooks','Authorizat','defaults'];_0x5ace=function(){return _0x532583;};return _0x5ace();}const _0x4e2037={};_0x4e2037[_0x17618a(0x10f)+_0x17618a(0x101)]=ConnectionHubClient,module[_0x17618a(0x117)]=_0x4e2037;
1
+ 'use strict';const _0x145476=_0x3356;(function(_0x18873a,_0x47bfc3){const _0x3f73b2=_0x3356,_0x2b0e7b=_0x18873a();while(!![]){try{const _0x35a267=parseInt(_0x3f73b2(0x15d))/(-0x1593+0x8e6+-0x6*-0x21d)*(-parseInt(_0x3f73b2(0x168))/(-0x1*0x14ae+-0x8ac+-0x1d5c*-0x1))+-parseInt(_0x3f73b2(0x166))/(0x56f+-0x11f9+0x99*0x15)*(-parseInt(_0x3f73b2(0x16b))/(-0x77*-0x35+-0x1fd1+0x3*0x266))+-parseInt(_0x3f73b2(0x169))/(-0x173*-0x4+-0x26c2+-0x20fb*-0x1)*(-parseInt(_0x3f73b2(0x143))/(0x11ef*-0x1+0xf6*0x1f+-0xbd5))+-parseInt(_0x3f73b2(0x151))/(-0x1450+-0x765+-0xdde*-0x2)+parseInt(_0x3f73b2(0x159))/(0x1*0x24+-0x16*-0xb1+-0xf52)*(parseInt(_0x3f73b2(0x13b))/(0x2086+-0x1931+-0x74c))+-parseInt(_0x3f73b2(0x178))/(0x20b+0x805+-0xa06)+parseInt(_0x3f73b2(0x15c))/(-0x1ae6+0x7*0x115+0x135e);if(_0x35a267===_0x47bfc3)break;else _0x2b0e7b['push'](_0x2b0e7b['shift']());}catch(_0x35ae8e){_0x2b0e7b['push'](_0x2b0e7b['shift']());}}}(_0x98a5,-0x84a9f*0x1+0x2*0xe593+0xc91bb));function _0x3356(_0x2ff4b0,_0x11592b){_0x2ff4b0=_0x2ff4b0-(0x2491+-0x1a9b*-0x1+-0x3e09);const _0x990ea5=_0x98a5();let _0x5e22e6=_0x990ea5[_0x2ff4b0];return _0x5e22e6;}const axios=require(_0x145476(0x135)),MessagingServiceModule=require(_0x145476(0x15e)+_0x145476(0x15a)),WebhookServiceModule=require(_0x145476(0x179)+_0x145476(0x127)),ConnectionServiceModule=require(_0x145476(0x14e)+_0x145476(0x176));class ConnectionHubClient{constructor(_0x27dc86){const _0x42ec8e=_0x145476,_0x179a8a={};_0x179a8a[_0x42ec8e(0x140)]=_0x42ec8e(0x133)+_0x42ec8e(0x13f)+_0x42ec8e(0x142),_0x179a8a[_0x42ec8e(0x12b)]=_0x42ec8e(0x162)+_0x42ec8e(0x139),_0x179a8a[_0x42ec8e(0x175)]=_0x42ec8e(0x12a)+_0x42ec8e(0x149),_0x179a8a[_0x42ec8e(0x134)]=_0x42ec8e(0x16d)+_0x42ec8e(0x12c)+_0x42ec8e(0x16c)+'br';const _0x1f7566=_0x179a8a;this[_0x42ec8e(0x129)+_0x42ec8e(0x153)]=![],this[_0x42ec8e(0x155)+_0x42ec8e(0x170)]=null;if(!_0x27dc86[_0x42ec8e(0x15b)+'n'])throw new Error(_0x1f7566[_0x42ec8e(0x140)]);this[_0x42ec8e(0x130)]=_0x27dc86;const _0x2d6ec7={};_0x2d6ec7[_0x42ec8e(0x125)+'pe']=_0x1f7566[_0x42ec8e(0x12b)];const _0x4b0f75=_0x2d6ec7;_0x27dc86[_0x42ec8e(0x15b)+'n']&&(_0x4b0f75[_0x1f7566[_0x42ec8e(0x175)]]=_0x42ec8e(0x171)+_0x27dc86[_0x42ec8e(0x15b)+'n']);const _0x46350f={};_0x46350f[_0x42ec8e(0x177)]=_0x27dc86[_0x42ec8e(0x14c)]||_0x1f7566[_0x42ec8e(0x134)],_0x46350f[_0x42ec8e(0x147)]=_0x4b0f75,this[_0x42ec8e(0x12d)]=axios[_0x42ec8e(0x152)](_0x46350f),this[_0x42ec8e(0x132)]=new MessagingServiceModule[(_0x42ec8e(0x161))+(_0x42ec8e(0x14f))](this[_0x42ec8e(0x12d)],this),this[_0x42ec8e(0x154)]=new WebhookServiceModule[(_0x42ec8e(0x16f))+(_0x42ec8e(0x14b))](this[_0x42ec8e(0x12d)],this),this[_0x42ec8e(0x137)+'s']=new ConnectionServiceModule[(_0x42ec8e(0x123))+(_0x42ec8e(0x14a))](this[_0x42ec8e(0x12d)],this),this[_0x42ec8e(0x155)+_0x42ec8e(0x170)]=this[_0x42ec8e(0x126)+_0x42ec8e(0x15f)]();}async[_0x145476(0x126)+_0x145476(0x15f)](){const _0x34d22d=_0x145476,_0x1a6aea={'znvzP':_0x34d22d(0x167)+_0x34d22d(0x12f),'rQswn':function(_0x18f9ef,_0x24db2b){return _0x18f9ef===_0x24db2b;},'nYRDd':function(_0x3a26ca,_0xee86ea){return _0x3a26ca(_0xee86ea);},'bXXQG':function(_0x104767,_0x228e78){return _0x104767===_0x228e78;},'AsbxE':function(_0x32acaf,_0x34d4b0){return _0x32acaf(_0x34d4b0);}};try{if(this[_0x34d22d(0x155)+_0x34d22d(0x170)])return this[_0x34d22d(0x155)+_0x34d22d(0x170)];return this[_0x34d22d(0x155)+_0x34d22d(0x170)]=new Promise(async _0x4f8322=>{const _0x9fda00=_0x34d22d;try{const _0x2edf13=await this[_0x9fda00(0x12d)][_0x9fda00(0x174)](_0x1a6aea[_0x9fda00(0x17a)]);this[_0x9fda00(0x129)+_0x9fda00(0x153)]=_0x1a6aea[_0x9fda00(0x146)](_0x2edf13[_0x9fda00(0x136)][_0x9fda00(0x16a)],!![]),_0x1a6aea[_0x9fda00(0x148)](_0x4f8322,this[_0x9fda00(0x129)+_0x9fda00(0x153)]);}catch(_0x10f439){_0x1a6aea[_0x9fda00(0x146)](_0x10f439[_0x9fda00(0x172)]?.[_0x9fda00(0x157)],-0x13b+-0x166+-0x2*-0x219)||_0x1a6aea[_0x9fda00(0x173)](_0x10f439[_0x9fda00(0x172)]?.[_0x9fda00(0x157)],-0x24fb+-0xbf8*-0x2+0xe9e)?(this[_0x9fda00(0x129)+_0x9fda00(0x153)]=![],_0x1a6aea[_0x9fda00(0x13c)](_0x4f8322,![])):(this[_0x9fda00(0x129)+_0x9fda00(0x153)]=![],_0x1a6aea[_0x9fda00(0x148)](_0x4f8322,![]));}finally{this[_0x9fda00(0x155)+_0x9fda00(0x170)]=null;}}),this[_0x34d22d(0x155)+_0x34d22d(0x170)];}catch(_0x3f4cca){return this[_0x34d22d(0x129)+_0x34d22d(0x153)]=![],![];}}[_0x145476(0x138)+_0x145476(0x160)+'ed'](){const _0x2a73c0=_0x145476;return this[_0x2a73c0(0x129)+_0x2a73c0(0x153)];}[_0x145476(0x150)+_0x145476(0x131)](_0x5d027a=!![]){const _0x45be80=_0x145476,_0x2a4216={};_0x2a4216[_0x45be80(0x156)]=_0x45be80(0x165)+_0x45be80(0x17b)+_0x45be80(0x164)+_0x45be80(0x13e)+_0x45be80(0x12e)+_0x45be80(0x158)+_0x45be80(0x16e)+_0x45be80(0x163)+_0x45be80(0x144)+'.';const _0x878ddc=_0x2a4216;if(!this[_0x45be80(0x129)+_0x45be80(0x153)]&&_0x5d027a)throw new Error(_0x878ddc[_0x45be80(0x156)]);return this[_0x45be80(0x129)+_0x45be80(0x153)];}async[_0x145476(0x124)+_0x145476(0x13a)](){const _0xff2d97=_0x145476;if(this[_0xff2d97(0x155)+_0xff2d97(0x170)])return this[_0xff2d97(0x155)+_0xff2d97(0x170)];if(this[_0xff2d97(0x129)+_0xff2d97(0x153)])return!![];return this[_0xff2d97(0x126)+_0xff2d97(0x15f)]();}[_0x145476(0x14d)+_0x145476(0x17c)](_0x222edf){const _0x1524c1=_0x145476,_0x423e69={};_0x423e69[_0x1524c1(0x128)]=_0x1524c1(0x12a)+_0x1524c1(0x149);const _0x580eae=_0x423e69;this[_0x1524c1(0x130)][_0x1524c1(0x15b)+'n']=_0x222edf,this[_0x1524c1(0x12d)][_0x1524c1(0x141)][_0x1524c1(0x147)][_0x580eae[_0x1524c1(0x128)]]=_0x1524c1(0x171)+_0x222edf,this[_0x1524c1(0x129)+_0x1524c1(0x153)]=![],this[_0x1524c1(0x155)+_0x1524c1(0x170)]=this[_0x1524c1(0x126)+_0x1524c1(0x15f)]();}}const _0xd1404c={};_0xd1404c[_0x145476(0x123)+_0x145476(0x13d)]=ConnectionHubClient,module[_0x145476(0x145)]=_0xd1404c;function _0x98a5(){const _0x1267c5=['o\x20iniciali','oken','Connection','waitForVal','Content-Ty','validateCr','ooks','IyQwV','credential','Authorizat','omgxU','i.connecti','api','s\x20credenci','date','config','Operations','messaging','AccessToke','uLnsw','axios','data','connection','isCredenti','n/json','idation','9jrmVOx','AsbxE','HubClient','tamente.\x20A','n\x20é\x20obriga','TuGVx','defaults','tório','721434TCbypZ','\x20inválidas','exports','rQswn','headers','nYRDd','ion','Service','vice','apiUrl','setAccessT','./lib/conn','ervice','canExecute','3931039YEcbUF','create','sValidated','webhooks','validation','YpMrV','status','ais\x20não\x20fo','5500696hlUpDw','aging','accessToke','3258937UhXeVp','1Ydmxqp','./lib/mess','edentials','alsValidat','MessagingS','applicatio','das\x20ou\x20são','zado\x20corre','Cliente\x20nã','149622VRUzfP','/auth/vali','638494jqLDVu','15tIZDGa','success','52rnbWUj','onhub.com.','https://ap','ram\x20valida','WebhookSer','Promise','Bearer\x20','response','bXXQG','get','rxgOX','ections','baseURL','7142190uRYaKW','./lib/webh','znvzP'];_0x98a5=function(){return _0x1267c5;};return _0x98a5();}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x2c4016=_0x4039;function _0x30cb(){const _0x3d62fe=['23404sashUj','Connection','./types','380scphkP','10600074GUNBiU','102716eZsQEt','keys','34895376XBARvL','exports','201487beUkDz','./client','672RusIlD','forEach','81824yBrVWh','471rzjAhT','283895xtNIGz','HubClient','6eFtHKe','4BfIVGo'];_0x30cb=function(){return _0x3d62fe;};return _0x30cb();}(function(_0x25e0d6,_0x363a80){const _0x57a60d=_0x4039,_0x2caf58=_0x25e0d6();while(!![]){try{const _0x208e8a=parseInt(_0x57a60d(0x1d8))/(0x133*0x5+-0x67e+-0x1*-0x80)*(-parseInt(_0x57a60d(0x1d2))/(-0x18b1+0x24*0x3b+-0x11*-0xf7))+parseInt(_0x57a60d(0x1ce))/(0x4ce+0x1978+-0x7f*0x3d)*(parseInt(_0x57a60d(0x1d3))/(0x2e*0x41+0x9d*0x29+-0x24cf))+-parseInt(_0x57a60d(0x1cf))/(0xaf*-0x28+-0x21*-0xbb+-0x8b*-0x6)*(parseInt(_0x57a60d(0x1d1))/(0x884+-0x2065+0x17e7))+-parseInt(_0x57a60d(0x1cb))/(-0x4*-0x2dd+-0xb*0x16e+0x44d)*(-parseInt(_0x57a60d(0x1cd))/(-0x5ea+0x233a+0x1*-0x1d48))+parseInt(_0x57a60d(0x1d7))/(-0x387+0x25f0+0x320*-0xb)+-parseInt(_0x57a60d(0x1d6))/(0xf66+-0x1dcb+0xe6f)*(-parseInt(_0x57a60d(0x1dc))/(0x54*-0x66+-0x43*0x18+-0x3d*-0xa7))+-parseInt(_0x57a60d(0x1da))/(-0x1a03+-0x998+-0x1*-0x23a7);if(_0x208e8a===_0x363a80)break;else _0x2caf58['push'](_0x2caf58['shift']());}catch(_0x3cc682){_0x2caf58['push'](_0x2caf58['shift']());}}}(_0x30cb,0x1f15a+-0xd80ae+0x1e394*0xb));const clientModule=require(_0x2c4016(0x1dd));module[_0x2c4016(0x1db)][_0x2c4016(0x1d4)+_0x2c4016(0x1d0)]=clientModule[_0x2c4016(0x1d4)+_0x2c4016(0x1d0)];function _0x4039(_0x287f37,_0x3749d4){_0x287f37=_0x287f37-(0x3*-0x757+0x1b*0x4d+0xfb1);const _0x150150=_0x30cb();let _0xbd40d1=_0x150150[_0x287f37];return _0xbd40d1;}const types=require(_0x2c4016(0x1d5));Object[_0x2c4016(0x1d9)](types)[_0x2c4016(0x1cc)](_0x3999c4=>{const _0x167fe4=_0x2c4016;module[_0x167fe4(0x1db)][_0x3999c4]=types[_0x3999c4];});
1
+ 'use strict';const _0x122315=_0x19eb;(function(_0x436571,_0x1c23d6){const _0x2e4984=_0x19eb,_0x3ddaf1=_0x436571();while(!![]){try{const _0x286e25=-parseInt(_0x2e4984(0xd8))/(0x914+-0x218+0x1*-0x6fb)*(-parseInt(_0x2e4984(0xdd))/(-0x1615*-0x1+-0x1c4b+-0x4*-0x18e))+-parseInt(_0x2e4984(0xd6))/(-0x28f*0x8+0x18f3+-0x68*0xb)+-parseInt(_0x2e4984(0xda))/(-0x48b*0x1+-0x8d7+0xd66)+parseInt(_0x2e4984(0xd3))/(0xbd5*-0x1+0x2242+-0x1668)+parseInt(_0x2e4984(0xe3))/(0xbd4+-0xbe5+0x17)*(-parseInt(_0x2e4984(0xe0))/(0xb3c*0x1+-0x7a7*0x2+-0x1*-0x419))+parseInt(_0x2e4984(0xd7))/(0x741+-0x1*-0x1a7+-0x8e0)+parseInt(_0x2e4984(0xd5))/(-0x1*0xe42+0x1794+-0x949*0x1)*(-parseInt(_0x2e4984(0xdf))/(0xcae+-0x144b+0x7a7));if(_0x286e25===_0x1c23d6)break;else _0x3ddaf1['push'](_0x3ddaf1['shift']());}catch(_0x2cd94d){_0x3ddaf1['push'](_0x3ddaf1['shift']());}}}(_0x18ee,-0xad0f1+0x1*-0xc60e9+0x1fba40));function _0x18ee(){const _0x56e5a5=['21066XYvHuO','2107130JqgkGU','HubClient','1799127Jhdgjo','1308096uZhaAR','8112976mXVPWq','128702EAmKpz','./client','259492AzVnsC','keys','./types','12SwEMsF','Connection','20NAHVIN','1491KeFJWP','exports','forEach'];_0x18ee=function(){return _0x56e5a5;};return _0x18ee();}const clientModule=require(_0x122315(0xd9));function _0x19eb(_0x1b80c9,_0x35da21){_0x1b80c9=_0x1b80c9-(-0xf8b+-0x11ea+0x2248);const _0x23066d=_0x18ee();let _0x2951e7=_0x23066d[_0x1b80c9];return _0x2951e7;}module[_0x122315(0xe1)][_0x122315(0xde)+_0x122315(0xd4)]=clientModule[_0x122315(0xde)+_0x122315(0xd4)];const types=require(_0x122315(0xdc));Object[_0x122315(0xdb)](types)[_0x122315(0xe2)](_0x2edd89=>{const _0x50d5e8=_0x122315;module[_0x50d5e8(0xe1)][_0x2edd89]=types[_0x2edd89];});