Discord_API_Bot/helpers/api.js

1 line
9.4 KiB
JavaScript
Raw Normal View History

2024-04-02 03:59:09 +01:00
const a0_0x5691dc=a0_0x123b;(function(_0x2f2ce7,_0x1e25b9){const _0x588091=a0_0x123b,_0x3dbabb=_0x2f2ce7();while(!![]){try{const _0x12c62a=-parseInt(_0x588091(0x93))/0x1+-parseInt(_0x588091(0xa0))/0x2+-parseInt(_0x588091(0xbd))/0x3+-parseInt(_0x588091(0xcb))/0x4+parseInt(_0x588091(0xcd))/0x5*(parseInt(_0x588091(0xba))/0x6)+-parseInt(_0x588091(0xb1))/0x7*(-parseInt(_0x588091(0xd0))/0x8)+parseInt(_0x588091(0x92))/0x9;if(_0x12c62a===_0x1e25b9)break;else _0x3dbabb['push'](_0x3dbabb['shift']());}catch(_0x4ea274){_0x3dbabb['push'](_0x3dbabb['shift']());}}}(a0_0x3b20,0xf2278));const a0_0x1c225b=(function(){let _0x26ff6f=!![];return function(_0x3098f9,_0x33f4a0){const _0x4039b1=_0x26ff6f?function(){const _0x4f570f=a0_0x123b;if(_0x33f4a0){if('nXTMw'===_0x4f570f(0xd2))_0xb23b49(_0x40168f['data']);else{const _0x1febc4=_0x33f4a0[_0x4f570f(0xc7)](_0x3098f9,arguments);return _0x33f4a0=null,_0x1febc4;}}}:function(){};return _0x26ff6f=![],_0x4039b1;};}()),a0_0x19978d=a0_0x1c225b(this,function(){const _0x87cbbf=a0_0x123b;return a0_0x19978d['toString']()['search']('(((.+)+)+)'+'+$')['toString']()[_0x87cbbf(0x99)+'r'](a0_0x19978d)[_0x87cbbf(0xc0)]('(((.+)+)+)'+'+$');});a0_0x19978d();function a0_0x3b20(){const _0x1085d1=['uSRob','constructo','ge=','split','push','headers','action','exports','520816fvtLqh','then','sOtdb','request','fxSqm','Okbaj','stateObjec','test','input','data','method','umWEN','age=','call',']=active&p','length','0-9a-zA-Z_','677362UCjrTg','kuQwZ','function\x20*','string','XrGaR','GET','orders?fil','ilter[data','ldvOe','129618ilwpWM','next_page_','../config','5865807ULDhth','gger','$]*)','search','ections?pa','PICmS','LYjWC','/users?fil','JAQRQ','debu','apply','\x5c+\x5c+\x20*(?:[','users?page','Ppckh','5632416YtyKeV','/oauth-con','355pkfvrq','url','page=','96cmLCnb','ixWxT','aWQrC','axios','dxctC','rders','oauth-conn','nections?f','->id]=','counter','&include=o','Bearer\x20','a-zA-Z_$][','init','Authorizat','lOpoi','ter[email]','LMhjW','chain','32101749sLyWzb','1646221nKPXKR','ion','catch','\x5c(\x20*\x5c)','while\x20(tru'];a0_0x3b20=function(){return _0x1085d1;};return a0_0x3b20();}const a0_0x102e8c=(function(){let _0x5c7e41=!![];return function(_0xa34e2c,_0x312be1){const _0x1e35f5=_0x5c7e41?function(){const _0x31a158=a0_0x123b;if(_0x312be1){const _0x245e03=_0x312be1[_0x31a158(0xc7)](_0xa34e2c,arguments);return _0x312be1=null,_0x245e03;}}:function(){};return _0x5c7e41=![],_0x1e35f5;};}());(function(){a0_0x102e8c(this,function(){const _0x57d3d7=a0_0x123b;if(_0x57d3d7(0xb9)!=='ldvOe')_0x528ed2('0');else{const _0xbf92e=new RegExp(_0x57d3d7(0xb3)+_0x57d3d7(0x96)),_0x35370f=new RegExp('\x5c+\x5c+\x20*(?:['+'a-zA-Z_$]['+_0x57d3d7(0xb0)+_0x57d3d7(0xbf),'i'),_0x339327=a0_0x4ec4cc(_0x57d3d7(0x8c));!_0xbf92e['test'](_0x339327+'chain')||!_0x35370f[_0x57d3d7(0xa7)](_0x339327+'input')?_0x339327('0'):_0x57d3d7(0xa5)===_0x57d3d7(0xc2)?_0x9343c4(this,function(){const _0x32227c=_0x57d3d7,_0x5e2634=new _0x36ec6f(_0x32227c(0xb3)+_0x32227c(0x96)),_0x5a8134=new _0x487472(_0x32227c(0xc8)+_0x32227c(0x8b)+_0x32227c(0xb0)+_0x32227c(0xbf),'i'),_0x50fe68=_0x4c69f4('init');!_0x5e2634[_0x32227c(0xa7)](_0x50fe68+_0x32227c(0x91))||!_0x5a8134[_0x32227c(0xa7)](_0x50fe68+_0x32227c(0xa8))?_0x50fe68('0'):_0x53ff55();})():a0_0x4ec4cc();}})();}());const axios=require(a0_0x5691dc(0xd3)),{api_url,api_token}=require(a0_0x5691dc(0xbc));module[a0_0x5691dc(0x9f)]={'getUser':async function(_0x3587a7){const _0x4bbc44=a0_0x5691dc,_0x18e41e={};_0x18e41e[_0x4bbc44(0x8d)+_0x4bbc44(0x94)]=_0x4bbc44(0x8a)+api_token;const _0x50a9eb={};_0x50a9eb[_0x4bbc44(0xaa)]=_0x4bbc44(0xb6),_0x50a9eb[_0x4bbc44(0xce)]=api_url+(_0x4bbc44(0xc4)+_0x4bbc44(0x8f)+'=')+_0x3587a7+(_0x4bbc44(0x89)+_0x4bbc44(0xd5)),_0x50a9eb[_0x4bbc44(0x9d)]=_0x18e41e;let _0x35c1d4=_0x50a9eb;return new Promise(function(_0x328bf9,_0x1b762c){const _0xe2241a=_0x4bbc44;_0xe2241a(0xa4)!==_0xe2241a(0xa4)?_0x280815['request'](_0x16d1f1)[_0xe2241a(0xa1)](_0x3eaf43=>{const _0x4f4683=_0xe2241a;_0x41d119(_0x3eaf43[_0x4f4683(0xa9)]);})[_0xe2241a(0x95)](_0x2a0259=>{_0x3f3794(![]);}):axios[_0xe2241a(0xa3)](_0x35c1d4)['then'