Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / services / routing / client.js
index bf72206..d7bbca8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf8f2=['client','http','Request','request','debug','rpc','error','message','result','catch','exports','jayson/promise','bluebird','../../config/logger','routing'];(function(_0x5005cc,_0x36b740){var _0x3bf4dc=function(_0x3952fb){while(--_0x3952fb){_0x5005cc['push'](_0x5005cc['shift']());}};_0x3bf4dc(++_0x36b740);}(_0xf8f2,0xbf));var _0x2f8f=function(_0x19f290,_0x5c955a){_0x19f290=_0x19f290-0x0;var _0x4df436=_0xf8f2[_0x19f290];return _0x4df436;};'use strict';var jayson=require(_0x2f8f('0x0'));var BPromise=require(_0x2f8f('0x1'));var logger=require(_0x2f8f('0x2'))(_0x2f8f('0x3'));var client=jayson[_0x2f8f('0x4')][_0x2f8f('0x5')]({'port':0x2329});client[_0x2f8f('0x6')]=function(_0x35c475,_0x4ec8b2){return new BPromise(function(_0x76d10e,_0x5f206b){return client[_0x2f8f('0x7')](_0x35c475,_0x4ec8b2)['then'](function(_0xac152f){logger[_0x2f8f('0x8')](_0x2f8f('0x9'),'routing',_0x35c475,_0x4ec8b2,_0xac152f);if(_0xac152f[_0x2f8f('0xa')]){logger[_0x2f8f('0xa')](_0x2f8f('0x9'),'routing',_0x35c475,_0xac152f[_0x2f8f('0xa')][_0x2f8f('0xb')],_0x4ec8b2);return _0x5f206b(_0xac152f[_0x2f8f('0xa')][_0x2f8f('0xb')]);}else{return _0x76d10e(_0xac152f[_0x2f8f('0xc')]);}})[_0x2f8f('0xd')](function(_0x2d2237){logger[_0x2f8f('0xa')](_0x2f8f('0x9'),_0x2f8f('0x3'),_0x35c475,_0x2d2237,_0x4ec8b2);return _0x5f206b(_0x2d2237);});});};module[_0x2f8f('0xe')]=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