Built motion from commit b5996064.|2.6.21
[motion2.git] / server / services / routing / client.js
index 11af3bd..948c1cd 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe5c1=['result','exports','jayson/promise','bluebird','routing','client','http','Request','request','then','debug','rpc','error','message'];(function(_0x53ee43,_0x2a63ec){var _0x58b2ca=function(_0x35e8a0){while(--_0x35e8a0){_0x53ee43['push'](_0x53ee43['shift']());}};_0x58b2ca(++_0x2a63ec);}(_0xe5c1,0x128));var _0x1e5c=function(_0x2af68a,_0x42a579){_0x2af68a=_0x2af68a-0x0;var _0xbc7741=_0xe5c1[_0x2af68a];return _0xbc7741;};'use strict';var jayson=require(_0x1e5c('0x0'));var BPromise=require(_0x1e5c('0x1'));var logger=require('../../config/logger')(_0x1e5c('0x2'));var client=jayson[_0x1e5c('0x3')][_0x1e5c('0x4')]({'port':0x2329});client[_0x1e5c('0x5')]=function(_0x391a52,_0x2f3240){return new BPromise(function(_0x557b87,_0x48193c){return client[_0x1e5c('0x6')](_0x391a52,_0x2f3240)[_0x1e5c('0x7')](function(_0xad52b9){logger[_0x1e5c('0x8')](_0x1e5c('0x9'),'routing',_0x391a52,_0x2f3240,_0xad52b9);if(_0xad52b9[_0x1e5c('0xa')]){logger[_0x1e5c('0xa')](_0x1e5c('0x9'),'routing',_0x391a52,_0xad52b9['error'][_0x1e5c('0xb')],_0x2f3240);return _0x48193c(_0xad52b9[_0x1e5c('0xa')][_0x1e5c('0xb')]);}else{return _0x557b87(_0xad52b9[_0x1e5c('0xc')]);}})['catch'](function(_0x6c74e0){logger[_0x1e5c('0xa')](_0x1e5c('0x9'),_0x1e5c('0x2'),_0x391a52,_0x6c74e0,_0x2f3240);return _0x48193c(_0x6c74e0);});});};module[_0x1e5c('0xd')]=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