Built motion from commit 47436d59.|2.6.7
[motion2.git] / server / services / routing / client.js
index 43ece30..8a49a3f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbac8=['then','debug','rpc','routing','error','message','catch','exports','jayson/promise','bluebird','client','http','Request'];(function(_0xd04151,_0x3cfb93){var _0x4f8bab=function(_0x3b0a80){while(--_0x3b0a80){_0xd04151['push'](_0xd04151['shift']());}};_0x4f8bab(++_0x3cfb93);}(_0xbac8,0x140));var _0x8bac=function(_0x13cc82,_0x4d8a36){_0x13cc82=_0x13cc82-0x0;var _0x35723b=_0xbac8[_0x13cc82];return _0x35723b;};'use strict';var jayson=require(_0x8bac('0x0'));var BPromise=require(_0x8bac('0x1'));var logger=require('../../config/logger')('routing');var client=jayson[_0x8bac('0x2')][_0x8bac('0x3')]({'port':0x2329});client[_0x8bac('0x4')]=function(_0x5a4f79,_0x3f0076){return new BPromise(function(_0x10229f,_0x5a63f2){return client['request'](_0x5a4f79,_0x3f0076)[_0x8bac('0x5')](function(_0x36f5b4){logger[_0x8bac('0x6')](_0x8bac('0x7'),_0x8bac('0x8'),_0x5a4f79,_0x3f0076,_0x36f5b4);if(_0x36f5b4[_0x8bac('0x9')]){logger[_0x8bac('0x9')](_0x8bac('0x7'),_0x8bac('0x8'),_0x5a4f79,_0x36f5b4['error'][_0x8bac('0xa')],_0x3f0076);return _0x5a63f2(_0x36f5b4[_0x8bac('0x9')][_0x8bac('0xa')]);}else{return _0x10229f(_0x36f5b4['result']);}})[_0x8bac('0xb')](function(_0x54381f){logger[_0x8bac('0x9')](_0x8bac('0x7'),'routing',_0x5a4f79,_0x54381f,_0x3f0076);return _0x5a63f2(_0x54381f);});});};module[_0x8bac('0xc')]=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