Built motion from commit b5996064.|2.6.21
[motion2.git] / server / services / routing / client.js
index ca80817..948c1cd 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8343=['jayson/promise','bluebird','../../config/logger','routing','client','http','Request','then','debug','rpc','error','message','result'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0x8343,0x82));var _0x3834=function(_0x59ed8b,_0x10c192){_0x59ed8b=_0x59ed8b-0x0;var _0x405376=_0x8343[_0x59ed8b];return _0x405376;};'use strict';var jayson=require(_0x3834('0x0'));var BPromise=require(_0x3834('0x1'));var logger=require(_0x3834('0x2'))(_0x3834('0x3'));var client=jayson[_0x3834('0x4')][_0x3834('0x5')]({'port':0x2329});client[_0x3834('0x6')]=function(_0x21b3ab,_0xf953a2){return new BPromise(function(_0x1d7f35,_0x3822b2){return client['request'](_0x21b3ab,_0xf953a2)[_0x3834('0x7')](function(_0x2b12f5){logger[_0x3834('0x8')](_0x3834('0x9'),_0x3834('0x3'),_0x21b3ab,_0xf953a2,_0x2b12f5);if(_0x2b12f5[_0x3834('0xa')]){logger[_0x3834('0xa')](_0x3834('0x9'),_0x3834('0x3'),_0x21b3ab,_0x2b12f5[_0x3834('0xa')][_0x3834('0xb')],_0xf953a2);return _0x3822b2(_0x2b12f5[_0x3834('0xa')]['message']);}else{return _0x1d7f35(_0x2b12f5[_0x3834('0xc')]);}})['catch'](function(_0x113433){logger[_0x3834('0xa')](_0x3834('0x9'),'routing',_0x21b3ab,_0x113433,_0xf953a2);return _0x3822b2(_0x113433);});});};module['exports']=client;
\ No newline at end of file
+var _0xb83d=['error','result','catch','routing','jayson/promise','bluebird','../../config/logger','client','http','request','then','debug','rpc'];(function(_0x535e1a,_0x32a784){var _0x45bede=function(_0x430981){while(--_0x430981){_0x535e1a['push'](_0x535e1a['shift']());}};_0x45bede(++_0x32a784);}(_0xb83d,0x122));var _0xdb83=function(_0x40cebd,_0x42bad6){_0x40cebd=_0x40cebd-0x0;var _0x11929b=_0xb83d[_0x40cebd];return _0x11929b;};'use strict';var jayson=require(_0xdb83('0x0'));var BPromise=require(_0xdb83('0x1'));var logger=require(_0xdb83('0x2'))('routing');var client=jayson[_0xdb83('0x3')][_0xdb83('0x4')]({'port':0x2329});client['Request']=function(_0x4e4dad,_0x57a70b){return new BPromise(function(_0x9d0074,_0x57d712){return client[_0xdb83('0x5')](_0x4e4dad,_0x57a70b)[_0xdb83('0x6')](function(_0x2a8cd2){logger[_0xdb83('0x7')](_0xdb83('0x8'),'routing',_0x4e4dad,_0x57a70b,_0x2a8cd2);if(_0x2a8cd2[_0xdb83('0x9')]){logger[_0xdb83('0x9')](_0xdb83('0x8'),'routing',_0x4e4dad,_0x2a8cd2[_0xdb83('0x9')]['message'],_0x57a70b);return _0x57d712(_0x2a8cd2['error']['message']);}else{return _0x9d0074(_0x2a8cd2[_0xdb83('0xa')]);}})[_0xdb83('0xb')](function(_0x859bfe){logger[_0xdb83('0x9')](_0xdb83('0x8'),_0xdb83('0xc'),_0x4e4dad,_0x859bfe,_0x57a70b);return _0x57d712(_0x859bfe);});});};module['exports']=client;
\ No newline at end of file