Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / services / routing / client.js
index 4739339..073712c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf977=['jayson/promise','bluebird','routing','client','request','debug','error','rpc','message','catch'];(function(_0x4494bd,_0x5d4c66){var _0x49ede9=function(_0x360670){while(--_0x360670){_0x4494bd['push'](_0x4494bd['shift']());}};_0x49ede9(++_0x5d4c66);}(_0xf977,0x1ea));var _0x7f97=function(_0x4b9c55,_0x4b54a2){_0x4b9c55=_0x4b9c55-0x0;var _0x2758ca=_0xf977[_0x4b9c55];return _0x2758ca;};'use strict';var jayson=require(_0x7f97('0x0'));var BPromise=require(_0x7f97('0x1'));var logger=require('../../config/logger')(_0x7f97('0x2'));var client=jayson[_0x7f97('0x3')]['http']({'port':0x2329});client['Request']=function(_0x497337,_0x3cba96){return new BPromise(function(_0x1d3eaa,_0x4f583f){return client[_0x7f97('0x4')](_0x497337,_0x3cba96)['then'](function(_0x13a5bb){logger[_0x7f97('0x5')]('rpc',_0x7f97('0x2'),_0x497337,_0x3cba96,_0x13a5bb);if(_0x13a5bb[_0x7f97('0x6')]){logger['error'](_0x7f97('0x7'),'routing',_0x497337,_0x13a5bb['error'][_0x7f97('0x8')],_0x3cba96);return _0x4f583f(_0x13a5bb[_0x7f97('0x6')][_0x7f97('0x8')]);}else{return _0x1d3eaa(_0x13a5bb['result']);}})[_0x7f97('0x9')](function(_0x1f4894){logger[_0x7f97('0x6')](_0x7f97('0x7'),'routing',_0x497337,_0x1f4894,_0x3cba96);return _0x4f583f(_0x1f4894);});});};module['exports']=client;
\ No newline at end of file
+var _0x78e6=['rpc','error','message','result','catch','exports','jayson/promise','bluebird','routing','client','http','Request','request','then'];(function(_0x37c193,_0x4d2ef2){var _0xc3d287=function(_0x3870a7){while(--_0x3870a7){_0x37c193['push'](_0x37c193['shift']());}};_0xc3d287(++_0x4d2ef2);}(_0x78e6,0x11e));var _0x678e=function(_0x40a825,_0x3bac79){_0x40a825=_0x40a825-0x0;var _0x273a54=_0x78e6[_0x40a825];return _0x273a54;};'use strict';var jayson=require(_0x678e('0x0'));var BPromise=require(_0x678e('0x1'));var logger=require('../../config/logger')(_0x678e('0x2'));var client=jayson[_0x678e('0x3')][_0x678e('0x4')]({'port':0x2329});client[_0x678e('0x5')]=function(_0x491da8,_0x860db0){return new BPromise(function(_0xd218bf,_0xd904fc){return client[_0x678e('0x6')](_0x491da8,_0x860db0)[_0x678e('0x7')](function(_0x24991a){logger['debug'](_0x678e('0x8'),_0x678e('0x2'),_0x491da8,_0x860db0,_0x24991a);if(_0x24991a[_0x678e('0x9')]){logger['error'](_0x678e('0x8'),_0x678e('0x2'),_0x491da8,_0x24991a[_0x678e('0x9')][_0x678e('0xa')],_0x860db0);return _0xd904fc(_0x24991a[_0x678e('0x9')]['message']);}else{return _0xd218bf(_0x24991a[_0x678e('0xb')]);}})[_0x678e('0xc')](function(_0x4ee37e){logger[_0x678e('0x9')](_0x678e('0x8'),_0x678e('0x2'),_0x491da8,_0x4ee37e,_0x860db0);return _0xd904fc(_0x4ee37e);});});};module[_0x678e('0xd')]=client;
\ No newline at end of file