UNPKG

@connection-hub/sdk

Version:

SDK oficial para a API do Connection Hub

1 lines 3.72 kB
'use strict';const _0x46db4a=_0x5a2c;function _0x32a5(){const _0x5d2cc7=['3797rYChFv','ção\x20ou\x20cha','verifyWebh','1610512UvShAo','checkCrede','client','/webhook/r','api','channelTok','ão\x20inválid','iente\x20não\x20','()\x20primeir','etup','me\x20waitFor','iais\x20do\x20cl','Validation','2783809ANFuLN','emove/','alsValidat','dadas\x20ou\x20s','vice','ookToken','webhookUrl','20NYwZzG','/webhook/s','removeWebh','As\x20credenc','tPZlS','4friFJN','1122435kJDFWh','data','1220004arHvSZ','ntials','delete','setupWebho','WebhookSer','e\x20a\x20valida','as.\x20Aguard','1378125IXZhrE','ook','isCredenti','post','MnjpT','sXbBr','success','520254UkAMjH','exports','34WaFDnH','foram\x20vali'];_0x32a5=function(){return _0x5d2cc7;};return _0x32a5();}function _0x5a2c(_0x5a2f40,_0x3f6691){const _0xcbec93=_0x32a5();return _0x5a2c=function(_0x16ce6b,_0xcd756c){_0x16ce6b=_0x16ce6b-(0x8e6*0x2+0x1*0x1005+-0x201a);let _0x23a4b6=_0xcbec93[_0x16ce6b];return _0x23a4b6;},_0x5a2c(_0x5a2f40,_0x3f6691);}(function(_0x6b6782,_0x47fce0){const _0x1c122b=_0x5a2c,_0x2426d4=_0x6b6782();while(!![]){try{const _0x455a4b=parseInt(_0x1c122b(0x1c7))/(-0x258f+-0xb2e+-0x11*-0x2de)*(-parseInt(_0x1c122b(0x1c5))/(-0xef*-0x17+0x1be+0x1*-0x1735))+parseInt(_0x1c122b(0x1e4))/(0x1949+-0x2467*0x1+0x4d*0x25)*(parseInt(_0x1c122b(0x1e3))/(0x17d+0x6cb+-0x844))+parseInt(_0x1c122b(0x1bc))/(0xd1a+-0x1d33*-0x1+0x386*-0xc)+parseInt(_0x1c122b(0x1c3))/(0x1*0xee1+0x1*-0x1a41+-0x1*-0xb66)+-parseInt(_0x1c122b(0x1d7))/(-0x13*-0x1d6+-0x13e5*0x1+0x1*-0xef6)+parseInt(_0x1c122b(0x1ca))/(0x1*-0x943+0x21c1+-0x1876*0x1)+parseInt(_0x1c122b(0x1e6))/(0xc1b+-0x8c7+-0x119*0x3)*(-parseInt(_0x1c122b(0x1de))/(-0x2091+-0x9e*-0x8+0x313*0x9));if(_0x455a4b===_0x47fce0)break;else _0x2426d4['push'](_0x2426d4['shift']());}catch(_0xcebaec){_0x2426d4['push'](_0x2426d4['shift']());}}}(_0x32a5,0x5a1df+0x5ea16+-0x86d58));class WebhookService{constructor(_0xfa9c96,_0xab5edc){const _0x2617e4=_0x5a2c;this[_0x2617e4(0x1ce)]=_0xfa9c96,this[_0x2617e4(0x1cc)]=_0xab5edc;}[_0x46db4a(0x1cb)+_0x46db4a(0x1e7)](_0xfc5fee=!![]){const _0x4a87a3=_0x46db4a,_0x10a7b5={};_0x10a7b5[_0x4a87a3(0x1c0)]=_0x4a87a3(0x1e1)+_0x4a87a3(0x1d5)+_0x4a87a3(0x1d1)+_0x4a87a3(0x1c6)+_0x4a87a3(0x1da)+_0x4a87a3(0x1d0)+_0x4a87a3(0x1bb)+_0x4a87a3(0x1ba)+_0x4a87a3(0x1c8)+_0x4a87a3(0x1d4)+_0x4a87a3(0x1d6)+_0x4a87a3(0x1d2)+'o.';const _0x1a809d=_0x10a7b5;if(this[_0x4a87a3(0x1cc)]&&!this[_0x4a87a3(0x1cc)][_0x4a87a3(0x1be)+_0x4a87a3(0x1d9)+'ed']()&&_0xfc5fee)throw new Error(_0x1a809d[_0x4a87a3(0x1c0)]);}async[_0x46db4a(0x1b8)+'ok'](_0x32c78e,_0x308a0b){const _0x28701b=_0x46db4a,_0x2357f6={};_0x2357f6[_0x28701b(0x1c1)]=_0x28701b(0x1df)+_0x28701b(0x1d3);const _0x3cbc46=_0x2357f6;this[_0x28701b(0x1cb)+_0x28701b(0x1e7)]();try{const _0x262e8d={};_0x262e8d[_0x28701b(0x1dd)]=_0x32c78e,_0x262e8d[_0x28701b(0x1cf)+'en']=_0x308a0b;const _0x4681d8=await this[_0x28701b(0x1ce)][_0x28701b(0x1bf)](_0x3cbc46[_0x28701b(0x1c1)],_0x262e8d);return _0x4681d8[_0x28701b(0x1e5)][_0x28701b(0x1c2)];}catch(_0x16c78b){return![];}}async[_0x46db4a(0x1e0)+_0x46db4a(0x1bd)](_0x1c5ff7){const _0x4aa589=_0x46db4a;this[_0x4aa589(0x1cb)+_0x4aa589(0x1e7)]();try{const _0x9895dd=await this[_0x4aa589(0x1ce)][_0x4aa589(0x1b7)](_0x4aa589(0x1cd)+_0x4aa589(0x1d8)+_0x1c5ff7);return _0x9895dd[_0x4aa589(0x1e5)][_0x4aa589(0x1c2)];}catch(_0x37f65d){return![];}}[_0x46db4a(0x1c9)+_0x46db4a(0x1dc)](_0x2ab3f3,_0x3f559e){const _0x423f1b=_0x46db4a,_0x5c47c5={};_0x5c47c5[_0x423f1b(0x1e2)]=function(_0x39b68b,_0x573d0f){return _0x39b68b===_0x573d0f;};const _0x2c14fe=_0x5c47c5;return _0x2c14fe[_0x423f1b(0x1e2)](_0x2ab3f3,_0x3f559e);}}const _0x20c341={};_0x20c341[_0x46db4a(0x1b9)+_0x46db4a(0x1db)]=WebhookService,module[_0x46db4a(0x1c4)]=_0x20c341;