Built motion from commit 14588770.|2.5.38
[motion2.git] / server / services / routing / client.js
index 72edd5a..30cfe4b 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 _0xf828=['message','result','catch','exports','jayson/promise','../../config/logger','routing','client','then','debug','rpc','error'];(function(_0x343a85,_0x22aa4f){var _0x53cb93=function(_0x316086){while(--_0x316086){_0x343a85['push'](_0x343a85['shift']());}};_0x53cb93(++_0x22aa4f);}(_0xf828,0x118));var _0x8f82=function(_0x4e021d,_0x4d2039){_0x4e021d=_0x4e021d-0x0;var _0xd07182=_0xf828[_0x4e021d];return _0xd07182;};'use strict';var jayson=require(_0x8f82('0x0'));var BPromise=require('bluebird');var logger=require(_0x8f82('0x1'))(_0x8f82('0x2'));var client=jayson[_0x8f82('0x3')]['http']({'port':0x2329});client['Request']=function(_0x261464,_0x2cd093){return new BPromise(function(_0xeb69c1,_0x4a16f8){return client['request'](_0x261464,_0x2cd093)[_0x8f82('0x4')](function(_0x2dbf07){logger[_0x8f82('0x5')](_0x8f82('0x6'),_0x8f82('0x2'),_0x261464,_0x2cd093,_0x2dbf07);if(_0x2dbf07['error']){logger['error']('rpc','routing',_0x261464,_0x2dbf07[_0x8f82('0x7')][_0x8f82('0x8')],_0x2cd093);return _0x4a16f8(_0x2dbf07[_0x8f82('0x7')]['message']);}else{return _0xeb69c1(_0x2dbf07[_0x8f82('0x9')]);}})[_0x8f82('0xa')](function(_0x427001){logger['error'](_0x8f82('0x6'),_0x8f82('0x2'),_0x261464,_0x427001,_0x2cd093);return _0x4a16f8(_0x427001);});});};module[_0x8f82('0xb')]=client;
\ No newline at end of file