Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / services / routing / client.js
index 6a9b1ce..d7bbca8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc30d=['routing','client','http','Request','request','then','debug','rpc','error','message','result','exports','jayson/promise','../../config/logger'];(function(_0x1eda20,_0x1149f4){var _0x31b953=function(_0x25f0d8){while(--_0x25f0d8){_0x1eda20['push'](_0x1eda20['shift']());}};_0x31b953(++_0x1149f4);}(_0xc30d,0x6e));var _0xdc30=function(_0xa3ff70,_0x4a8609){_0xa3ff70=_0xa3ff70-0x0;var _0x538dbb=_0xc30d[_0xa3ff70];return _0x538dbb;};'use strict';var jayson=require(_0xdc30('0x0'));var BPromise=require('bluebird');var logger=require(_0xdc30('0x1'))(_0xdc30('0x2'));var client=jayson[_0xdc30('0x3')][_0xdc30('0x4')]({'port':0x2329});client[_0xdc30('0x5')]=function(_0x50c802,_0x1cc1bc){return new BPromise(function(_0x53cb76,_0x46593f){return client[_0xdc30('0x6')](_0x50c802,_0x1cc1bc)[_0xdc30('0x7')](function(_0x3e480e){logger[_0xdc30('0x8')](_0xdc30('0x9'),'routing',_0x50c802,_0x1cc1bc,_0x3e480e);if(_0x3e480e[_0xdc30('0xa')]){logger[_0xdc30('0xa')](_0xdc30('0x9'),_0xdc30('0x2'),_0x50c802,_0x3e480e[_0xdc30('0xa')][_0xdc30('0xb')],_0x1cc1bc);return _0x46593f(_0x3e480e[_0xdc30('0xa')][_0xdc30('0xb')]);}else{return _0x53cb76(_0x3e480e[_0xdc30('0xc')]);}})['catch'](function(_0x518d8e){logger['error'](_0xdc30('0x9'),_0xdc30('0x2'),_0x50c802,_0x518d8e,_0x1cc1bc);return _0x46593f(_0x518d8e);});});};module[_0xdc30('0xd')]=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