Built motion from commit 47436d59.|2.6.7
[motion2.git] / server / services / routing / client.js
index 96f3431..8a49a3f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4402=['message','catch','jayson/promise','bluebird','../../config/logger','routing','client','http','Request','request','then','debug','rpc','error'];(function(_0x511dd6,_0x5d294d){var _0x39f16b=function(_0x150692){while(--_0x150692){_0x511dd6['push'](_0x511dd6['shift']());}};_0x39f16b(++_0x5d294d);}(_0x4402,0x10c));var _0x2440=function(_0x3f889c,_0x1c16af){_0x3f889c=_0x3f889c-0x0;var _0x5edf2a=_0x4402[_0x3f889c];return _0x5edf2a;};'use strict';var jayson=require(_0x2440('0x0'));var BPromise=require(_0x2440('0x1'));var logger=require(_0x2440('0x2'))(_0x2440('0x3'));var client=jayson[_0x2440('0x4')][_0x2440('0x5')]({'port':0x2329});client[_0x2440('0x6')]=function(_0x1fbc4e,_0x353b46){return new BPromise(function(_0xdf5f31,_0x3bf391){return client[_0x2440('0x7')](_0x1fbc4e,_0x353b46)[_0x2440('0x8')](function(_0x26b25f){logger[_0x2440('0x9')](_0x2440('0xa'),_0x2440('0x3'),_0x1fbc4e,_0x353b46,_0x26b25f);if(_0x26b25f[_0x2440('0xb')]){logger[_0x2440('0xb')]('rpc',_0x2440('0x3'),_0x1fbc4e,_0x26b25f['error']['message'],_0x353b46);return _0x3bf391(_0x26b25f[_0x2440('0xb')][_0x2440('0xc')]);}else{return _0xdf5f31(_0x26b25f['result']);}})[_0x2440('0xd')](function(_0x4ad71b){logger[_0x2440('0xb')](_0x2440('0xa'),'routing',_0x1fbc4e,_0x4ad71b,_0x353b46);return _0x3bf391(_0x4ad71b);});});};module['exports']=client;
\ No newline at end of file
+var _0x8f5b=['bluebird','../../config/logger','routing','http','request','then','debug','rpc','error','message','result','catch','exports'];(function(_0x258106,_0x420c72){var _0x5eeb30=function(_0x738790){while(--_0x738790){_0x258106['push'](_0x258106['shift']());}};_0x5eeb30(++_0x420c72);}(_0x8f5b,0x15f));var _0xb8f5=function(_0x2595ed,_0x4047f2){_0x2595ed=_0x2595ed-0x0;var _0x5ed73b=_0x8f5b[_0x2595ed];return _0x5ed73b;};'use strict';var jayson=require('jayson/promise');var BPromise=require(_0xb8f5('0x0'));var logger=require(_0xb8f5('0x1'))(_0xb8f5('0x2'));var client=jayson['client'][_0xb8f5('0x3')]({'port':0x2329});client['Request']=function(_0x54ccc9,_0x5cb395){return new BPromise(function(_0x2094a2,_0x30e079){return client[_0xb8f5('0x4')](_0x54ccc9,_0x5cb395)[_0xb8f5('0x5')](function(_0x812548){logger[_0xb8f5('0x6')](_0xb8f5('0x7'),_0xb8f5('0x2'),_0x54ccc9,_0x5cb395,_0x812548);if(_0x812548['error']){logger['error'](_0xb8f5('0x7'),_0xb8f5('0x2'),_0x54ccc9,_0x812548[_0xb8f5('0x8')][_0xb8f5('0x9')],_0x5cb395);return _0x30e079(_0x812548['error']['message']);}else{return _0x2094a2(_0x812548[_0xb8f5('0xa')]);}})[_0xb8f5('0xb')](function(_0x219e2c){logger[_0xb8f5('0x8')](_0xb8f5('0x7'),_0xb8f5('0x2'),_0x54ccc9,_0x219e2c,_0x5cb395);return _0x30e079(_0x219e2c);});});};module[_0xb8f5('0xc')]=client;
\ No newline at end of file