Built motion from commit b5996064.|2.6.21
[motion2.git] / server / services / routing / client.js
index 668f671..948c1cd 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8f7a=['message','exports','../../config/logger','client','request','then','debug','rpc','routing','error'];(function(_0x2109cd,_0x9ae774){var _0x287c46=function(_0x11f9da){while(--_0x11f9da){_0x2109cd['push'](_0x2109cd['shift']());}};_0x287c46(++_0x9ae774);}(_0x8f7a,0x192));var _0xa8f7=function(_0x1c0b34,_0x425ab7){_0x1c0b34=_0x1c0b34-0x0;var _0x148223=_0x8f7a[_0x1c0b34];return _0x148223;};'use strict';var jayson=require('jayson/promise');var BPromise=require('bluebird');var logger=require(_0xa8f7('0x0'))('routing');var client=jayson[_0xa8f7('0x1')]['http']({'port':0x2329});client['Request']=function(_0x1da962,_0xead9c){return new BPromise(function(_0x4ca2ff,_0x3d3737){return client[_0xa8f7('0x2')](_0x1da962,_0xead9c)[_0xa8f7('0x3')](function(_0x9bf7f5){logger[_0xa8f7('0x4')](_0xa8f7('0x5'),_0xa8f7('0x6'),_0x1da962,_0xead9c,_0x9bf7f5);if(_0x9bf7f5[_0xa8f7('0x7')]){logger[_0xa8f7('0x7')]('rpc',_0xa8f7('0x6'),_0x1da962,_0x9bf7f5['error'][_0xa8f7('0x8')],_0xead9c);return _0x3d3737(_0x9bf7f5[_0xa8f7('0x7')][_0xa8f7('0x8')]);}else{return _0x4ca2ff(_0x9bf7f5['result']);}})['catch'](function(_0x2205b5){logger[_0xa8f7('0x7')](_0xa8f7('0x5'),'routing',_0x1da962,_0x2205b5,_0xead9c);return _0x3d3737(_0x2205b5);});});};module[_0xa8f7('0x9')]=client;
\ No newline at end of file
+var _0xb83d=['error','result','catch','routing','jayson/promise','bluebird','../../config/logger','client','http','request','then','debug','rpc'];(function(_0x535e1a,_0x32a784){var _0x45bede=function(_0x430981){while(--_0x430981){_0x535e1a['push'](_0x535e1a['shift']());}};_0x45bede(++_0x32a784);}(_0xb83d,0x122));var _0xdb83=function(_0x40cebd,_0x42bad6){_0x40cebd=_0x40cebd-0x0;var _0x11929b=_0xb83d[_0x40cebd];return _0x11929b;};'use strict';var jayson=require(_0xdb83('0x0'));var BPromise=require(_0xdb83('0x1'));var logger=require(_0xdb83('0x2'))('routing');var client=jayson[_0xdb83('0x3')][_0xdb83('0x4')]({'port':0x2329});client['Request']=function(_0x4e4dad,_0x57a70b){return new BPromise(function(_0x9d0074,_0x57d712){return client[_0xdb83('0x5')](_0x4e4dad,_0x57a70b)[_0xdb83('0x6')](function(_0x2a8cd2){logger[_0xdb83('0x7')](_0xdb83('0x8'),'routing',_0x4e4dad,_0x57a70b,_0x2a8cd2);if(_0x2a8cd2[_0xdb83('0x9')]){logger[_0xdb83('0x9')](_0xdb83('0x8'),'routing',_0x4e4dad,_0x2a8cd2[_0xdb83('0x9')]['message'],_0x57a70b);return _0x57d712(_0x2a8cd2['error']['message']);}else{return _0x9d0074(_0x2a8cd2[_0xdb83('0xa')]);}})[_0xdb83('0xb')](function(_0x859bfe){logger[_0xdb83('0x9')](_0xdb83('0x8'),_0xdb83('0xc'),_0x4e4dad,_0x859bfe,_0x57a70b);return _0x57d712(_0x859bfe);});});};module['exports']=client;
\ No newline at end of file