Built motion from commit cf5ff673.|2.5.41
[motion2.git] / server / services / routing / client.js
index 662ff30..4dacb5e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa17b=['../../config/logger','routing','client','http','Request','request','then','debug','rpc','error','message','result','catch','exports','jayson/promise','bluebird'];(function(_0x3b048d,_0x450938){var _0x31b2d4=function(_0x13ebc0){while(--_0x13ebc0){_0x3b048d['push'](_0x3b048d['shift']());}};_0x31b2d4(++_0x450938);}(_0xa17b,0xfe));var _0xba17=function(_0x5d12fc,_0x36fc04){_0x5d12fc=_0x5d12fc-0x0;var _0x325323=_0xa17b[_0x5d12fc];return _0x325323;};'use strict';var jayson=require(_0xba17('0x0'));var BPromise=require(_0xba17('0x1'));var logger=require(_0xba17('0x2'))(_0xba17('0x3'));var client=jayson[_0xba17('0x4')][_0xba17('0x5')]({'port':0x2329});client[_0xba17('0x6')]=function(_0x548f55,_0x4f06f7){return new BPromise(function(_0x474c74,_0x86462a){return client[_0xba17('0x7')](_0x548f55,_0x4f06f7)[_0xba17('0x8')](function(_0x5bcb19){logger[_0xba17('0x9')](_0xba17('0xa'),_0xba17('0x3'),_0x548f55,_0x4f06f7,_0x5bcb19);if(_0x5bcb19[_0xba17('0xb')]){logger[_0xba17('0xb')]('rpc',_0xba17('0x3'),_0x548f55,_0x5bcb19[_0xba17('0xb')][_0xba17('0xc')],_0x4f06f7);return _0x86462a(_0x5bcb19[_0xba17('0xb')]['message']);}else{return _0x474c74(_0x5bcb19[_0xba17('0xd')]);}})[_0xba17('0xe')](function(_0x4ea993){logger[_0xba17('0xb')](_0xba17('0xa'),_0xba17('0x3'),_0x548f55,_0x4ea993,_0x4f06f7);return _0x86462a(_0x4ea993);});});};module[_0xba17('0xf')]=client;
\ No newline at end of file
+var _0x75de=['result','catch','exports','jayson/promise','bluebird','../../config/logger','routing','client','http','request','then','debug','rpc','error','message'];(function(_0x5a039f,_0x2c6ee6){var _0x304d1d=function(_0x43e9a0){while(--_0x43e9a0){_0x5a039f['push'](_0x5a039f['shift']());}};_0x304d1d(++_0x2c6ee6);}(_0x75de,0x6c));var _0xe75d=function(_0x2d48be,_0x2d8270){_0x2d48be=_0x2d48be-0x0;var _0x5d4c91=_0x75de[_0x2d48be];return _0x5d4c91;};'use strict';var jayson=require(_0xe75d('0x0'));var BPromise=require(_0xe75d('0x1'));var logger=require(_0xe75d('0x2'))(_0xe75d('0x3'));var client=jayson[_0xe75d('0x4')][_0xe75d('0x5')]({'port':0x2329});client['Request']=function(_0x4717a2,_0x613e97){return new BPromise(function(_0x2243f7,_0x43bc32){return client[_0xe75d('0x6')](_0x4717a2,_0x613e97)[_0xe75d('0x7')](function(_0x46a1fa){logger[_0xe75d('0x8')](_0xe75d('0x9'),'routing',_0x4717a2,_0x613e97,_0x46a1fa);if(_0x46a1fa[_0xe75d('0xa')]){logger[_0xe75d('0xa')]('rpc',_0xe75d('0x3'),_0x4717a2,_0x46a1fa[_0xe75d('0xa')][_0xe75d('0xb')],_0x613e97);return _0x43bc32(_0x46a1fa['error'][_0xe75d('0xb')]);}else{return _0x2243f7(_0x46a1fa[_0xe75d('0xc')]);}})[_0xe75d('0xd')](function(_0xda4441){logger['error'](_0xe75d('0x9'),_0xe75d('0x3'),_0x4717a2,_0xda4441,_0x613e97);return _0x43bc32(_0xda4441);});});};module[_0xe75d('0xe')]=client;
\ No newline at end of file