Built motion from commit da617fac.|2.6.6
[motion2.git] / server / services / routing / client.js
index 6740f09..3d303ff 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc43f=['client','http','Request','request','debug','rpc','error','message','result','exports','bluebird','../../config/logger','routing'];(function(_0x2cfe28,_0x3046b0){var _0x298e58=function(_0x56883a){while(--_0x56883a){_0x2cfe28['push'](_0x2cfe28['shift']());}};_0x298e58(++_0x3046b0);}(_0xc43f,0x1aa));var _0xfc43=function(_0x4bc8a0,_0x5333aa){_0x4bc8a0=_0x4bc8a0-0x0;var _0x44db33=_0xc43f[_0x4bc8a0];return _0x44db33;};'use strict';var jayson=require('jayson/promise');var BPromise=require(_0xfc43('0x0'));var logger=require(_0xfc43('0x1'))(_0xfc43('0x2'));var client=jayson[_0xfc43('0x3')][_0xfc43('0x4')]({'port':0x2329});client[_0xfc43('0x5')]=function(_0x21d527,_0x2dc831){return new BPromise(function(_0x517691,_0xf7fe6e){return client[_0xfc43('0x6')](_0x21d527,_0x2dc831)['then'](function(_0x51488d){logger[_0xfc43('0x7')](_0xfc43('0x8'),_0xfc43('0x2'),_0x21d527,_0x2dc831,_0x51488d);if(_0x51488d[_0xfc43('0x9')]){logger[_0xfc43('0x9')](_0xfc43('0x8'),_0xfc43('0x2'),_0x21d527,_0x51488d[_0xfc43('0x9')][_0xfc43('0xa')],_0x2dc831);return _0xf7fe6e(_0x51488d[_0xfc43('0x9')]['message']);}else{return _0x517691(_0x51488d[_0xfc43('0xb')]);}})['catch'](function(_0x229678){logger[_0xfc43('0x9')](_0xfc43('0x8'),'routing',_0x21d527,_0x229678,_0x2dc831);return _0xf7fe6e(_0x229678);});});};module[_0xfc43('0xc')]=client;
\ No newline at end of file
+var _0x64f5=['then','rpc','routing','error','message','result','catch','exports','jayson/promise','bluebird','../../config/logger','http','request'];(function(_0x580576,_0x2f107d){var _0x3f55a0=function(_0x2e180b){while(--_0x2e180b){_0x580576['push'](_0x580576['shift']());}};_0x3f55a0(++_0x2f107d);}(_0x64f5,0xf2));var _0x564f=function(_0x4920a1,_0x5bc215){_0x4920a1=_0x4920a1-0x0;var _0x25ae52=_0x64f5[_0x4920a1];return _0x25ae52;};'use strict';var jayson=require(_0x564f('0x0'));var BPromise=require(_0x564f('0x1'));var logger=require(_0x564f('0x2'))('routing');var client=jayson['client'][_0x564f('0x3')]({'port':0x2329});client['Request']=function(_0x5a7bfc,_0x1c73b2){return new BPromise(function(_0x32efb5,_0x47be19){return client[_0x564f('0x4')](_0x5a7bfc,_0x1c73b2)[_0x564f('0x5')](function(_0x5141c2){logger['debug'](_0x564f('0x6'),_0x564f('0x7'),_0x5a7bfc,_0x1c73b2,_0x5141c2);if(_0x5141c2[_0x564f('0x8')]){logger[_0x564f('0x8')](_0x564f('0x6'),_0x564f('0x7'),_0x5a7bfc,_0x5141c2[_0x564f('0x8')][_0x564f('0x9')],_0x1c73b2);return _0x47be19(_0x5141c2[_0x564f('0x8')][_0x564f('0x9')]);}else{return _0x32efb5(_0x5141c2[_0x564f('0xa')]);}})[_0x564f('0xb')](function(_0x5544b5){logger['error'](_0x564f('0x6'),_0x564f('0x7'),_0x5a7bfc,_0x5544b5,_0x1c73b2);return _0x47be19(_0x5544b5);});});};module[_0x564f('0xc')]=client;
\ No newline at end of file