a0e943a90758dc8ad4452075f6787046bb0a3401
[motion-next.git] / server / services / email / client.js
1 const a1149_0x1c0a=['../../config/logger','catch','result','routing','client','debug','message','http','request','Request','rpc','exports','error'];(function(_0x11db56,_0x1c0a39){const _0x34c59f=function(_0x5f5288){while(--_0x5f5288){_0x11db56['push'](_0x11db56['shift']());}};_0x34c59f(++_0x1c0a39);}(a1149_0x1c0a,0x13b));const a1149_0x34c5=function(_0x11db56,_0x1c0a39){_0x11db56=_0x11db56-0x0;let _0x34c59f=a1149_0x1c0a[_0x11db56];return _0x34c59f;};const _0x254747=a1149_0x34c5;'use strict';const jayson=require('jayson/promise'),logger=require(_0x254747('0xa'))(_0x254747('0x0')),client=jayson[_0x254747('0x1')][_0x254747('0x4')]({'port':0x2329});client[_0x254747('0x6')]=function(_0x5f5288,_0x260f9d){return new Promise(function(_0x3ab89d,_0x2b1e67){const _0x113efb=a1149_0x34c5;return client[_0x113efb('0x5')](_0x5f5288,_0x260f9d)['then'](function(_0x50725c){const _0x25f044=_0x113efb;return logger[_0x25f044('0x2')](_0x25f044('0x7'),'routing',_0x5f5288,_0x260f9d,_0x50725c),_0x50725c[_0x25f044('0x9')]?(logger[_0x25f044('0x9')](_0x25f044('0x7'),_0x25f044('0x0'),_0x5f5288,_0x50725c[_0x25f044('0x9')]['message'],_0x260f9d),_0x2b1e67(_0x50725c[_0x25f044('0x9')][_0x25f044('0x3')])):_0x3ab89d(_0x50725c[_0x25f044('0xc')]);})[_0x113efb('0xb')](function(_0x2ca2d4){const _0x4aa11c=_0x113efb;return logger[_0x4aa11c('0x9')](_0x4aa11c('0x7'),'routing',_0x5f5288,_0x2ca2d4,_0x260f9d),_0x2b1e67(_0x2ca2d4);});});},module[_0x254747('0x8')]=client;