Built motion from commit (unavailable).|2.5.22
[motion2.git] / server / services / routing / client.js
index c22b76a..40bf2cf 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0f9f=['error','rpc','message','result','exports','bluebird','../../config/logger','routing','http','Request','request','then','debug'];(function(_0x2543be,_0x19ebd6){var _0x4636d0=function(_0x1f41e2){while(--_0x1f41e2){_0x2543be['push'](_0x2543be['shift']());}};_0x4636d0(++_0x19ebd6);}(_0x0f9f,0x1cc));var _0xf0f9=function(_0x4d1ba8,_0x4b2d90){_0x4d1ba8=_0x4d1ba8-0x0;var _0x1b0562=_0x0f9f[_0x4d1ba8];return _0x1b0562;};'use strict';var jayson=require('jayson/promise');var BPromise=require(_0xf0f9('0x0'));var logger=require(_0xf0f9('0x1'))(_0xf0f9('0x2'));var client=jayson['client'][_0xf0f9('0x3')]({'port':0x2329});client[_0xf0f9('0x4')]=function(_0x257b44,_0x17eab4){return new BPromise(function(_0x2f8d38,_0x92167){return client[_0xf0f9('0x5')](_0x257b44,_0x17eab4)[_0xf0f9('0x6')](function(_0x425fbe){logger[_0xf0f9('0x7')]('rpc',_0xf0f9('0x2'),_0x257b44,_0x17eab4,_0x425fbe);if(_0x425fbe[_0xf0f9('0x8')]){logger['error'](_0xf0f9('0x9'),_0xf0f9('0x2'),_0x257b44,_0x425fbe[_0xf0f9('0x8')]['message'],_0x17eab4);return _0x92167(_0x425fbe[_0xf0f9('0x8')][_0xf0f9('0xa')]);}else{return _0x2f8d38(_0x425fbe[_0xf0f9('0xb')]);}})['catch'](function(_0x5ded1c){logger[_0xf0f9('0x8')](_0xf0f9('0x9'),_0xf0f9('0x2'),_0x257b44,_0x5ded1c,_0x17eab4);return _0x92167(_0x5ded1c);});});};module[_0xf0f9('0xc')]=client;
\ No newline at end of file
+var _0xcca7=['then','error','rpc','message','result','exports','jayson/promise','bluebird','../../config/logger','routing','Request','request'];(function(_0x247daa,_0x3ac5b4){var _0x2e829b=function(_0x221615){while(--_0x221615){_0x247daa['push'](_0x247daa['shift']());}};_0x2e829b(++_0x3ac5b4);}(_0xcca7,0x1aa));var _0x7cca=function(_0x1f1fc1,_0x1ead95){_0x1f1fc1=_0x1f1fc1-0x0;var _0x198702=_0xcca7[_0x1f1fc1];return _0x198702;};'use strict';var jayson=require(_0x7cca('0x0'));var BPromise=require(_0x7cca('0x1'));var logger=require(_0x7cca('0x2'))(_0x7cca('0x3'));var client=jayson['client']['http']({'port':0x2329});client[_0x7cca('0x4')]=function(_0x533b00,_0x3b86a4){return new BPromise(function(_0x9523f7,_0x2126f7){return client[_0x7cca('0x5')](_0x533b00,_0x3b86a4)[_0x7cca('0x6')](function(_0xe70805){logger['debug']('rpc',_0x7cca('0x3'),_0x533b00,_0x3b86a4,_0xe70805);if(_0xe70805[_0x7cca('0x7')]){logger[_0x7cca('0x7')](_0x7cca('0x8'),_0x7cca('0x3'),_0x533b00,_0xe70805[_0x7cca('0x7')][_0x7cca('0x9')],_0x3b86a4);return _0x2126f7(_0xe70805[_0x7cca('0x7')][_0x7cca('0x9')]);}else{return _0x9523f7(_0xe70805[_0x7cca('0xa')]);}})['catch'](function(_0x302367){logger[_0x7cca('0x7')](_0x7cca('0x8'),_0x7cca('0x3'),_0x533b00,_0x302367,_0x3b86a4);return _0x2126f7(_0x302367);});});};module[_0x7cca('0xb')]=client;
\ No newline at end of file