Built motion from commit b5996064.|2.6.21
[motion2.git] / server / services / routing / client.js
index 8ad4c3d..948c1cd 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9b51=['client','http','Request','request','debug','rpc','routing','error','message','catch','bluebird'];(function(_0xaa1b3e,_0x47d976){var _0x454d7d=function(_0x575b32){while(--_0x575b32){_0xaa1b3e['push'](_0xaa1b3e['shift']());}};_0x454d7d(++_0x47d976);}(_0x9b51,0x154));var _0x19b5=function(_0x5acd55,_0x5affab){_0x5acd55=_0x5acd55-0x0;var _0xeef4aa=_0x9b51[_0x5acd55];return _0xeef4aa;};'use strict';var jayson=require('jayson/promise');var BPromise=require(_0x19b5('0x0'));var logger=require('../../config/logger')('routing');var client=jayson[_0x19b5('0x1')][_0x19b5('0x2')]({'port':0x2329});client[_0x19b5('0x3')]=function(_0x398a3a,_0x4ffca2){return new BPromise(function(_0x596ee7,_0x155ec4){return client[_0x19b5('0x4')](_0x398a3a,_0x4ffca2)['then'](function(_0xa03f5f){logger[_0x19b5('0x5')](_0x19b5('0x6'),_0x19b5('0x7'),_0x398a3a,_0x4ffca2,_0xa03f5f);if(_0xa03f5f[_0x19b5('0x8')]){logger[_0x19b5('0x8')](_0x19b5('0x6'),_0x19b5('0x7'),_0x398a3a,_0xa03f5f[_0x19b5('0x8')]['message'],_0x4ffca2);return _0x155ec4(_0xa03f5f[_0x19b5('0x8')][_0x19b5('0x9')]);}else{return _0x596ee7(_0xa03f5f['result']);}})[_0x19b5('0xa')](function(_0x300fca){logger[_0x19b5('0x8')](_0x19b5('0x6'),_0x19b5('0x7'),_0x398a3a,_0x300fca,_0x4ffca2);return _0x155ec4(_0x300fca);});});};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