Built motion from commit (unavailable).|2.5.1
[motion2.git] / server / services / routing / client.js
index 72e6aee..f7c3450 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbcc7=['jayson/promise','bluebird','routing','Request','request','then','debug','rpc','error','exports'];(function(_0x18511a,_0xa01619){var _0x412eae=function(_0x468ac5){while(--_0x468ac5){_0x18511a['push'](_0x18511a['shift']());}};_0x412eae(++_0xa01619);}(_0xbcc7,0x19a));var _0x7bcc=function(_0x1f72c6,_0x412482){_0x1f72c6=_0x1f72c6-0x0;var _0x5afa55=_0xbcc7[_0x1f72c6];return _0x5afa55;};'use strict';var jayson=require(_0x7bcc('0x0'));var BPromise=require(_0x7bcc('0x1'));var logger=require('../../config/logger')(_0x7bcc('0x2'));var client=jayson['client']['http']({'port':0x2329});client[_0x7bcc('0x3')]=function(_0x4bbf6b,_0x24bc1a){return new BPromise(function(_0x3692c2,_0x55c176){return client[_0x7bcc('0x4')](_0x4bbf6b,_0x24bc1a)[_0x7bcc('0x5')](function(_0x82b2e1){logger[_0x7bcc('0x6')](_0x7bcc('0x7'),_0x7bcc('0x2'),_0x4bbf6b,_0x24bc1a,_0x82b2e1);if(_0x82b2e1['error']){logger[_0x7bcc('0x8')]('rpc',_0x7bcc('0x2'),_0x4bbf6b,_0x82b2e1[_0x7bcc('0x8')]['message'],_0x24bc1a);return _0x55c176(_0x82b2e1[_0x7bcc('0x8')]['message']);}else{return _0x3692c2(_0x82b2e1['result']);}})['catch'](function(_0x274d4e){logger[_0x7bcc('0x8')](_0x7bcc('0x7'),_0x7bcc('0x2'),_0x4bbf6b,_0x274d4e,_0x24bc1a);return _0x55c176(_0x274d4e);});});};module[_0x7bcc('0x9')]=client;
\ No newline at end of file
+var _0x6dac=['../../config/logger','routing','client','http','Request','request','then','debug','rpc','error','message','result','catch','exports','jayson/promise','bluebird'];(function(_0x117089,_0x1927fe){var _0x2973dc=function(_0xc03a9){while(--_0xc03a9){_0x117089['push'](_0x117089['shift']());}};_0x2973dc(++_0x1927fe);}(_0x6dac,0x16e));var _0xc6da=function(_0x1a5f16,_0x5d540d){_0x1a5f16=_0x1a5f16-0x0;var _0x538c6e=_0x6dac[_0x1a5f16];return _0x538c6e;};'use strict';var jayson=require(_0xc6da('0x0'));var BPromise=require(_0xc6da('0x1'));var logger=require(_0xc6da('0x2'))(_0xc6da('0x3'));var client=jayson[_0xc6da('0x4')][_0xc6da('0x5')]({'port':0x2329});client[_0xc6da('0x6')]=function(_0x2fc6e0,_0x28663f){return new BPromise(function(_0x338470,_0x18ee4e){return client[_0xc6da('0x7')](_0x2fc6e0,_0x28663f)[_0xc6da('0x8')](function(_0x5caf49){logger[_0xc6da('0x9')](_0xc6da('0xa'),_0xc6da('0x3'),_0x2fc6e0,_0x28663f,_0x5caf49);if(_0x5caf49[_0xc6da('0xb')]){logger[_0xc6da('0xb')](_0xc6da('0xa'),_0xc6da('0x3'),_0x2fc6e0,_0x5caf49[_0xc6da('0xb')][_0xc6da('0xc')],_0x28663f);return _0x18ee4e(_0x5caf49['error'][_0xc6da('0xc')]);}else{return _0x338470(_0x5caf49[_0xc6da('0xd')]);}})[_0xc6da('0xe')](function(_0x2f81f2){logger[_0xc6da('0xb')](_0xc6da('0xa'),_0xc6da('0x3'),_0x2fc6e0,_0x2f81f2,_0x28663f);return _0x18ee4e(_0x2f81f2);});});};module[_0xc6da('0xf')]=client;
\ No newline at end of file