Built motion from commit 47436d59.|2.6.7
[motion2.git] / server / services / routing / client.js
index 1941079..8a49a3f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4986=['../../config/logger','http','Request','request','then','debug','error','rpc','routing','message','result','exports','jayson/promise','bluebird'];(function(_0x452c6e,_0x5d35ee){var _0x25302e=function(_0xa23bbe){while(--_0xa23bbe){_0x452c6e['push'](_0x452c6e['shift']());}};_0x25302e(++_0x5d35ee);}(_0x4986,0x6e));var _0x6498=function(_0x3d87db,_0x121d3e){_0x3d87db=_0x3d87db-0x0;var _0x140782=_0x4986[_0x3d87db];return _0x140782;};'use strict';var jayson=require(_0x6498('0x0'));var BPromise=require(_0x6498('0x1'));var logger=require(_0x6498('0x2'))('routing');var client=jayson['client'][_0x6498('0x3')]({'port':0x2329});client[_0x6498('0x4')]=function(_0x5d24c6,_0x15e8d3){return new BPromise(function(_0x12a6fb,_0x2c54ee){return client[_0x6498('0x5')](_0x5d24c6,_0x15e8d3)[_0x6498('0x6')](function(_0x8d1853){logger[_0x6498('0x7')]('rpc','routing',_0x5d24c6,_0x15e8d3,_0x8d1853);if(_0x8d1853[_0x6498('0x8')]){logger[_0x6498('0x8')](_0x6498('0x9'),_0x6498('0xa'),_0x5d24c6,_0x8d1853[_0x6498('0x8')]['message'],_0x15e8d3);return _0x2c54ee(_0x8d1853[_0x6498('0x8')][_0x6498('0xb')]);}else{return _0x12a6fb(_0x8d1853[_0x6498('0xc')]);}})['catch'](function(_0x55a564){logger[_0x6498('0x8')]('rpc',_0x6498('0xa'),_0x5d24c6,_0x55a564,_0x15e8d3);return _0x2c54ee(_0x55a564);});});};module[_0x6498('0xd')]=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