Built motion from commit (unavailable).|2.5.0
[motion2.git] / server / services / routing / client.js
index 72edd5a..28d68c8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa4ba=['error','message','result','catch','exports','bluebird','../../config/logger','routing','client','Request','request','then','debug','rpc'];(function(_0x595919,_0x4ed5d7){var _0x28080c=function(_0x4d9b53){while(--_0x4d9b53){_0x595919['push'](_0x595919['shift']());}};_0x28080c(++_0x4ed5d7);}(_0xa4ba,0x1b7));var _0xaa4b=function(_0x36884e,_0x48008f){_0x36884e=_0x36884e-0x0;var _0x1cc367=_0xa4ba[_0x36884e];return _0x1cc367;};'use strict';var jayson=require('jayson/promise');var BPromise=require(_0xaa4b('0x0'));var logger=require(_0xaa4b('0x1'))(_0xaa4b('0x2'));var client=jayson[_0xaa4b('0x3')]['http']({'port':0x2329});client[_0xaa4b('0x4')]=function(_0x5e7bce,_0x54f0ce){return new BPromise(function(_0xeb83b1,_0x1b2ee8){return client[_0xaa4b('0x5')](_0x5e7bce,_0x54f0ce)[_0xaa4b('0x6')](function(_0x4809a9){logger[_0xaa4b('0x7')]('rpc',_0xaa4b('0x2'),_0x5e7bce,_0x54f0ce,_0x4809a9);if(_0x4809a9['error']){logger['error'](_0xaa4b('0x8'),_0xaa4b('0x2'),_0x5e7bce,_0x4809a9[_0xaa4b('0x9')][_0xaa4b('0xa')],_0x54f0ce);return _0x1b2ee8(_0x4809a9[_0xaa4b('0x9')][_0xaa4b('0xa')]);}else{return _0xeb83b1(_0x4809a9[_0xaa4b('0xb')]);}})[_0xaa4b('0xc')](function(_0xfb7353){logger[_0xaa4b('0x9')](_0xaa4b('0x8'),_0xaa4b('0x2'),_0x5e7bce,_0xfb7353,_0x54f0ce);return _0x1b2ee8(_0xfb7353);});});};module[_0xaa4b('0xd')]=client;
\ No newline at end of file
+var _0x61b8=['result','jayson/promise','bluebird','../../config/logger','client','request','then','debug','rpc','routing','error','message'];(function(_0x31080a,_0x55b5cd){var _0x58d2fc=function(_0x446558){while(--_0x446558){_0x31080a['push'](_0x31080a['shift']());}};_0x58d2fc(++_0x55b5cd);}(_0x61b8,0x169));var _0x861b=function(_0x1d4165,_0x10b39c){_0x1d4165=_0x1d4165-0x0;var _0x4016bc=_0x61b8[_0x1d4165];return _0x4016bc;};'use strict';var jayson=require(_0x861b('0x0'));var BPromise=require(_0x861b('0x1'));var logger=require(_0x861b('0x2'))('routing');var client=jayson[_0x861b('0x3')]['http']({'port':0x2329});client['Request']=function(_0x37b79f,_0x10e70b){return new BPromise(function(_0x4b139c,_0x56a7a9){return client[_0x861b('0x4')](_0x37b79f,_0x10e70b)[_0x861b('0x5')](function(_0x1cfc62){logger[_0x861b('0x6')](_0x861b('0x7'),_0x861b('0x8'),_0x37b79f,_0x10e70b,_0x1cfc62);if(_0x1cfc62[_0x861b('0x9')]){logger[_0x861b('0x9')](_0x861b('0x7'),_0x861b('0x8'),_0x37b79f,_0x1cfc62[_0x861b('0x9')]['message'],_0x10e70b);return _0x56a7a9(_0x1cfc62[_0x861b('0x9')][_0x861b('0xa')]);}else{return _0x4b139c(_0x1cfc62[_0x861b('0xb')]);}})['catch'](function(_0x1e1eec){logger['error'](_0x861b('0x7'),_0x861b('0x8'),_0x37b79f,_0x1e1eec,_0x10e70b);return _0x56a7a9(_0x1e1eec);});});};module['exports']=client;
\ No newline at end of file