Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / services / routing / client.js
index 791585d..d7bbca8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8666=['result','catch','exports','../../config/logger','routing','http','Request','request','then','error','rpc','message'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x8666,0x12f));var _0x6866=function(_0x42a49e,_0x51c823){_0x42a49e=_0x42a49e-0x0;var _0x5982ac=_0x8666[_0x42a49e];return _0x5982ac;};'use strict';var jayson=require('jayson/promise');var BPromise=require('bluebird');var logger=require(_0x6866('0x0'))(_0x6866('0x1'));var client=jayson['client'][_0x6866('0x2')]({'port':0x2329});client[_0x6866('0x3')]=function(_0x28d44e,_0x181fa5){return new BPromise(function(_0x14c741,_0x41b264){return client[_0x6866('0x4')](_0x28d44e,_0x181fa5)[_0x6866('0x5')](function(_0x34c05a){logger['debug']('rpc',_0x6866('0x1'),_0x28d44e,_0x181fa5,_0x34c05a);if(_0x34c05a['error']){logger[_0x6866('0x6')](_0x6866('0x7'),_0x6866('0x1'),_0x28d44e,_0x34c05a['error'][_0x6866('0x8')],_0x181fa5);return _0x41b264(_0x34c05a[_0x6866('0x6')][_0x6866('0x8')]);}else{return _0x14c741(_0x34c05a[_0x6866('0x9')]);}})[_0x6866('0xa')](function(_0x443fc0){logger[_0x6866('0x6')]('rpc','routing',_0x28d44e,_0x443fc0,_0x181fa5);return _0x41b264(_0x443fc0);});});};module[_0x6866('0xb')]=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