Built motion from commit 43538d75.|2.5.35
[motion2.git] / server / services / routing / client.js
index 802f618..90c3d54 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf021=['debug','rpc','error','message','result','catch','exports','jayson/promise','bluebird','../../config/logger','routing','client','Request','then'];(function(_0x3794a0,_0x1a9cfc){var _0x5bdaba=function(_0x14a764){while(--_0x14a764){_0x3794a0['push'](_0x3794a0['shift']());}};_0x5bdaba(++_0x1a9cfc);}(_0xf021,0x18f));var _0x1f02=function(_0x80b6a,_0x1b138c){_0x80b6a=_0x80b6a-0x0;var _0x58de9b=_0xf021[_0x80b6a];return _0x58de9b;};'use strict';var jayson=require(_0x1f02('0x0'));var BPromise=require(_0x1f02('0x1'));var logger=require(_0x1f02('0x2'))(_0x1f02('0x3'));var client=jayson[_0x1f02('0x4')]['http']({'port':0x2329});client[_0x1f02('0x5')]=function(_0x54cd44,_0x2e8594){return new BPromise(function(_0x3164f0,_0x51eff6){return client['request'](_0x54cd44,_0x2e8594)[_0x1f02('0x6')](function(_0x56b275){logger[_0x1f02('0x7')](_0x1f02('0x8'),_0x1f02('0x3'),_0x54cd44,_0x2e8594,_0x56b275);if(_0x56b275[_0x1f02('0x9')]){logger[_0x1f02('0x9')]('rpc',_0x1f02('0x3'),_0x54cd44,_0x56b275['error']['message'],_0x2e8594);return _0x51eff6(_0x56b275['error'][_0x1f02('0xa')]);}else{return _0x3164f0(_0x56b275[_0x1f02('0xb')]);}})[_0x1f02('0xc')](function(_0x19ee35){logger[_0x1f02('0x9')]('rpc',_0x1f02('0x3'),_0x54cd44,_0x19ee35,_0x2e8594);return _0x51eff6(_0x19ee35);});});};module[_0x1f02('0xd')]=client;
\ No newline at end of file
+var _0xa9db=['then','debug','rpc','error','message','result','exports','jayson/promise','bluebird','../../config/logger','routing','client','request'];(function(_0x144598,_0x4d9f57){var _0x2f5702=function(_0x1a1c6f){while(--_0x1a1c6f){_0x144598['push'](_0x144598['shift']());}};_0x2f5702(++_0x4d9f57);}(_0xa9db,0xa3));var _0xba9d=function(_0x33cb4c,_0x90d363){_0x33cb4c=_0x33cb4c-0x0;var _0x1e3f53=_0xa9db[_0x33cb4c];return _0x1e3f53;};'use strict';var jayson=require(_0xba9d('0x0'));var BPromise=require(_0xba9d('0x1'));var logger=require(_0xba9d('0x2'))(_0xba9d('0x3'));var client=jayson[_0xba9d('0x4')]['http']({'port':0x2329});client['Request']=function(_0x5b2c9f,_0x553896){return new BPromise(function(_0x364e51,_0x5ae6f6){return client[_0xba9d('0x5')](_0x5b2c9f,_0x553896)[_0xba9d('0x6')](function(_0x422fb7){logger[_0xba9d('0x7')](_0xba9d('0x8'),_0xba9d('0x3'),_0x5b2c9f,_0x553896,_0x422fb7);if(_0x422fb7['error']){logger['error']('rpc',_0xba9d('0x3'),_0x5b2c9f,_0x422fb7[_0xba9d('0x9')][_0xba9d('0xa')],_0x553896);return _0x5ae6f6(_0x422fb7[_0xba9d('0x9')]['message']);}else{return _0x364e51(_0x422fb7[_0xba9d('0xb')]);}})['catch'](function(_0x2d7369){logger['error'](_0xba9d('0x8'),_0xba9d('0x3'),_0x5b2c9f,_0x2d7369,_0x553896);return _0x5ae6f6(_0x2d7369);});});};module[_0xba9d('0xc')]=client;
\ No newline at end of file