Built motion from commit 47436d59.|2.6.7
[motion2.git] / server / services / routing / client.js
index 8b0e442..8a49a3f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7a08=['exports','jayson/promise','bluebird','client','http','Request','request','then','debug','routing','error','rpc','message','result','catch'];(function(_0x337ef8,_0x3971ab){var _0x585b75=function(_0x3827a8){while(--_0x3827a8){_0x337ef8['push'](_0x337ef8['shift']());}};_0x585b75(++_0x3971ab);}(_0x7a08,0x11e));var _0x87a0=function(_0x240eee,_0x249118){_0x240eee=_0x240eee-0x0;var _0x411632=_0x7a08[_0x240eee];return _0x411632;};'use strict';var jayson=require(_0x87a0('0x0'));var BPromise=require(_0x87a0('0x1'));var logger=require('../../config/logger')('routing');var client=jayson[_0x87a0('0x2')][_0x87a0('0x3')]({'port':0x2329});client[_0x87a0('0x4')]=function(_0x8fd36d,_0x28c28f){return new BPromise(function(_0x122d33,_0x3b6c68){return client[_0x87a0('0x5')](_0x8fd36d,_0x28c28f)[_0x87a0('0x6')](function(_0xf9199b){logger[_0x87a0('0x7')]('rpc',_0x87a0('0x8'),_0x8fd36d,_0x28c28f,_0xf9199b);if(_0xf9199b[_0x87a0('0x9')]){logger[_0x87a0('0x9')](_0x87a0('0xa'),_0x87a0('0x8'),_0x8fd36d,_0xf9199b['error']['message'],_0x28c28f);return _0x3b6c68(_0xf9199b[_0x87a0('0x9')][_0x87a0('0xb')]);}else{return _0x122d33(_0xf9199b[_0x87a0('0xc')]);}})[_0x87a0('0xd')](function(_0x34ba3a){logger['error'](_0x87a0('0xa'),_0x87a0('0x8'),_0x8fd36d,_0x34ba3a,_0x28c28f);return _0x3b6c68(_0x34ba3a);});});};module[_0x87a0('0xe')]=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