Built motion from commit 14588770.|2.5.38
[motion2.git] / server / services / routing / client.js
index 0bee2fb..30cfe4b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0851=['../../config/logger','routing','http','Request','request','then','debug','rpc','error','message','catch','exports','jayson/promise','bluebird'];(function(_0x15fc7a,_0xd21741){var _0x3aa9f4=function(_0x313108){while(--_0x313108){_0x15fc7a['push'](_0x15fc7a['shift']());}};_0x3aa9f4(++_0xd21741);}(_0x0851,0x8a));var _0x1085=function(_0x500649,_0x669569){_0x500649=_0x500649-0x0;var _0xec40d8=_0x0851[_0x500649];return _0xec40d8;};'use strict';var jayson=require(_0x1085('0x0'));var BPromise=require(_0x1085('0x1'));var logger=require(_0x1085('0x2'))(_0x1085('0x3'));var client=jayson['client'][_0x1085('0x4')]({'port':0x2329});client[_0x1085('0x5')]=function(_0x2de96f,_0x3cbd88){return new BPromise(function(_0x3b40fb,_0x3a528e){return client[_0x1085('0x6')](_0x2de96f,_0x3cbd88)[_0x1085('0x7')](function(_0x152eeb){logger[_0x1085('0x8')](_0x1085('0x9'),_0x1085('0x3'),_0x2de96f,_0x3cbd88,_0x152eeb);if(_0x152eeb['error']){logger['error'](_0x1085('0x9'),_0x1085('0x3'),_0x2de96f,_0x152eeb[_0x1085('0xa')][_0x1085('0xb')],_0x3cbd88);return _0x3a528e(_0x152eeb[_0x1085('0xa')][_0x1085('0xb')]);}else{return _0x3b40fb(_0x152eeb['result']);}})[_0x1085('0xc')](function(_0x3d3ab0){logger[_0x1085('0xa')](_0x1085('0x9'),_0x1085('0x3'),_0x2de96f,_0x3d3ab0,_0x3cbd88);return _0x3a528e(_0x3d3ab0);});});};module[_0x1085('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