Built motion from commit 47436d59.|2.6.7
[motion2.git] / server / services / routing / client.js
index 0ba205f..8a49a3f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4abf=['message','result','catch','exports','jayson/promise','bluebird','routing','request','then','debug','error','rpc'];(function(_0x25ff03,_0x5f3702){var _0x38bd27=function(_0x2acac3){while(--_0x2acac3){_0x25ff03['push'](_0x25ff03['shift']());}};_0x38bd27(++_0x5f3702);}(_0x4abf,0xac));var _0xf4ab=function(_0x108213,_0x2ae76d){_0x108213=_0x108213-0x0;var _0x45f2f0=_0x4abf[_0x108213];return _0x45f2f0;};'use strict';var jayson=require(_0xf4ab('0x0'));var BPromise=require(_0xf4ab('0x1'));var logger=require('../../config/logger')(_0xf4ab('0x2'));var client=jayson['client']['http']({'port':0x2329});client['Request']=function(_0xd3da82,_0x4599f6){return new BPromise(function(_0x592623,_0x4e42b0){return client[_0xf4ab('0x3')](_0xd3da82,_0x4599f6)[_0xf4ab('0x4')](function(_0x2e6efe){logger[_0xf4ab('0x5')]('rpc',_0xf4ab('0x2'),_0xd3da82,_0x4599f6,_0x2e6efe);if(_0x2e6efe[_0xf4ab('0x6')]){logger['error'](_0xf4ab('0x7'),'routing',_0xd3da82,_0x2e6efe[_0xf4ab('0x6')][_0xf4ab('0x8')],_0x4599f6);return _0x4e42b0(_0x2e6efe[_0xf4ab('0x6')][_0xf4ab('0x8')]);}else{return _0x592623(_0x2e6efe[_0xf4ab('0x9')]);}})[_0xf4ab('0xa')](function(_0x4516bf){logger[_0xf4ab('0x6')](_0xf4ab('0x7'),_0xf4ab('0x2'),_0xd3da82,_0x4516bf,_0x4599f6);return _0x4e42b0(_0x4516bf);});});};module[_0xf4ab('0xb')]=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