Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / services / routing / client.js
index 43ece30..d7bbca8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbac8=['then','debug','rpc','routing','error','message','catch','exports','jayson/promise','bluebird','client','http','Request'];(function(_0xd04151,_0x3cfb93){var _0x4f8bab=function(_0x3b0a80){while(--_0x3b0a80){_0xd04151['push'](_0xd04151['shift']());}};_0x4f8bab(++_0x3cfb93);}(_0xbac8,0x140));var _0x8bac=function(_0x13cc82,_0x4d8a36){_0x13cc82=_0x13cc82-0x0;var _0x35723b=_0xbac8[_0x13cc82];return _0x35723b;};'use strict';var jayson=require(_0x8bac('0x0'));var BPromise=require(_0x8bac('0x1'));var logger=require('../../config/logger')('routing');var client=jayson[_0x8bac('0x2')][_0x8bac('0x3')]({'port':0x2329});client[_0x8bac('0x4')]=function(_0x5a4f79,_0x3f0076){return new BPromise(function(_0x10229f,_0x5a63f2){return client['request'](_0x5a4f79,_0x3f0076)[_0x8bac('0x5')](function(_0x36f5b4){logger[_0x8bac('0x6')](_0x8bac('0x7'),_0x8bac('0x8'),_0x5a4f79,_0x3f0076,_0x36f5b4);if(_0x36f5b4[_0x8bac('0x9')]){logger[_0x8bac('0x9')](_0x8bac('0x7'),_0x8bac('0x8'),_0x5a4f79,_0x36f5b4['error'][_0x8bac('0xa')],_0x3f0076);return _0x5a63f2(_0x36f5b4[_0x8bac('0x9')][_0x8bac('0xa')]);}else{return _0x10229f(_0x36f5b4['result']);}})[_0x8bac('0xb')](function(_0x54381f){logger[_0x8bac('0x9')](_0x8bac('0x7'),'routing',_0x5a4f79,_0x54381f,_0x3f0076);return _0x5a63f2(_0x54381f);});});};module[_0x8bac('0xc')]=client;
\ No newline at end of file
+var _0xd617=['routing','client','http','Request','request','then','debug','rpc','error','message','catch','exports','jayson/promise','bluebird'];(function(_0x361cc1,_0x311f01){var _0x4af04c=function(_0x33b4c8){while(--_0x33b4c8){_0x361cc1['push'](_0x361cc1['shift']());}};_0x4af04c(++_0x311f01);}(_0xd617,0xfa));var _0x7d61=function(_0x2b924a,_0x1abf32){_0x2b924a=_0x2b924a-0x0;var _0x198a7e=_0xd617[_0x2b924a];return _0x198a7e;};'use strict';var jayson=require(_0x7d61('0x0'));var BPromise=require(_0x7d61('0x1'));var logger=require('../../config/logger')(_0x7d61('0x2'));var client=jayson[_0x7d61('0x3')][_0x7d61('0x4')]({'port':0x2329});client[_0x7d61('0x5')]=function(_0x434e97,_0x3e6a77){return new BPromise(function(_0x354105,_0x8d9736){return client[_0x7d61('0x6')](_0x434e97,_0x3e6a77)[_0x7d61('0x7')](function(_0x10f0f9){logger[_0x7d61('0x8')](_0x7d61('0x9'),_0x7d61('0x2'),_0x434e97,_0x3e6a77,_0x10f0f9);if(_0x10f0f9[_0x7d61('0xa')]){logger['error']('rpc',_0x7d61('0x2'),_0x434e97,_0x10f0f9[_0x7d61('0xa')][_0x7d61('0xb')],_0x3e6a77);return _0x8d9736(_0x10f0f9[_0x7d61('0xa')][_0x7d61('0xb')]);}else{return _0x354105(_0x10f0f9['result']);}})[_0x7d61('0xc')](function(_0x1056db){logger['error'](_0x7d61('0x9'),'routing',_0x434e97,_0x1056db,_0x3e6a77);return _0x8d9736(_0x1056db);});});};module[_0x7d61('0xd')]=client;
\ No newline at end of file