Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / services / routing / client.js
index a284db1..6740f09 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5aaa=['error','result','exports','jayson/promise','Request','request','debug','rpc','routing'];(function(_0x4271eb,_0x471c8f){var _0x30f7ed=function(_0x248010){while(--_0x248010){_0x4271eb['push'](_0x4271eb['shift']());}};_0x30f7ed(++_0x471c8f);}(_0x5aaa,0xff));var _0xa5aa=function(_0x12401b,_0x3a2786){_0x12401b=_0x12401b-0x0;var _0xf62ada=_0x5aaa[_0x12401b];return _0xf62ada;};'use strict';var jayson=require(_0xa5aa('0x0'));var BPromise=require('bluebird');var logger=require('../../config/logger')('routing');var client=jayson['client']['http']({'port':0x2329});client[_0xa5aa('0x1')]=function(_0x21f5d9,_0x473061){return new BPromise(function(_0x54ca19,_0x24f2bf){return client[_0xa5aa('0x2')](_0x21f5d9,_0x473061)['then'](function(_0x21d216){logger[_0xa5aa('0x3')](_0xa5aa('0x4'),_0xa5aa('0x5'),_0x21f5d9,_0x473061,_0x21d216);if(_0x21d216['error']){logger['error'](_0xa5aa('0x4'),_0xa5aa('0x5'),_0x21f5d9,_0x21d216[_0xa5aa('0x6')]['message'],_0x473061);return _0x24f2bf(_0x21d216['error']['message']);}else{return _0x54ca19(_0x21d216[_0xa5aa('0x7')]);}})['catch'](function(_0x1b989c){logger[_0xa5aa('0x6')](_0xa5aa('0x4'),_0xa5aa('0x5'),_0x21f5d9,_0x1b989c,_0x473061);return _0x24f2bf(_0x1b989c);});});};module[_0xa5aa('0x8')]=client;
\ No newline at end of file
+var _0xc43f=['client','http','Request','request','debug','rpc','error','message','result','exports','bluebird','../../config/logger','routing'];(function(_0x2cfe28,_0x3046b0){var _0x298e58=function(_0x56883a){while(--_0x56883a){_0x2cfe28['push'](_0x2cfe28['shift']());}};_0x298e58(++_0x3046b0);}(_0xc43f,0x1aa));var _0xfc43=function(_0x4bc8a0,_0x5333aa){_0x4bc8a0=_0x4bc8a0-0x0;var _0x44db33=_0xc43f[_0x4bc8a0];return _0x44db33;};'use strict';var jayson=require('jayson/promise');var BPromise=require(_0xfc43('0x0'));var logger=require(_0xfc43('0x1'))(_0xfc43('0x2'));var client=jayson[_0xfc43('0x3')][_0xfc43('0x4')]({'port':0x2329});client[_0xfc43('0x5')]=function(_0x21d527,_0x2dc831){return new BPromise(function(_0x517691,_0xf7fe6e){return client[_0xfc43('0x6')](_0x21d527,_0x2dc831)['then'](function(_0x51488d){logger[_0xfc43('0x7')](_0xfc43('0x8'),_0xfc43('0x2'),_0x21d527,_0x2dc831,_0x51488d);if(_0x51488d[_0xfc43('0x9')]){logger[_0xfc43('0x9')](_0xfc43('0x8'),_0xfc43('0x2'),_0x21d527,_0x51488d[_0xfc43('0x9')][_0xfc43('0xa')],_0x2dc831);return _0xf7fe6e(_0x51488d[_0xfc43('0x9')]['message']);}else{return _0x517691(_0x51488d[_0xfc43('0xb')]);}})['catch'](function(_0x229678){logger[_0xfc43('0x9')](_0xfc43('0x8'),'routing',_0x21d527,_0x229678,_0x2dc831);return _0xf7fe6e(_0x229678);});});};module[_0xfc43('0xc')]=client;
\ No newline at end of file