Built motion from commit (unavailable).|2.5.28
[motion2.git] / server / services / routing / client.js
index 72e6aee..bcc0de4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbcc7=['jayson/promise','bluebird','routing','Request','request','then','debug','rpc','error','exports'];(function(_0x18511a,_0xa01619){var _0x412eae=function(_0x468ac5){while(--_0x468ac5){_0x18511a['push'](_0x18511a['shift']());}};_0x412eae(++_0xa01619);}(_0xbcc7,0x19a));var _0x7bcc=function(_0x1f72c6,_0x412482){_0x1f72c6=_0x1f72c6-0x0;var _0x5afa55=_0xbcc7[_0x1f72c6];return _0x5afa55;};'use strict';var jayson=require(_0x7bcc('0x0'));var BPromise=require(_0x7bcc('0x1'));var logger=require('../../config/logger')(_0x7bcc('0x2'));var client=jayson['client']['http']({'port':0x2329});client[_0x7bcc('0x3')]=function(_0x4bbf6b,_0x24bc1a){return new BPromise(function(_0x3692c2,_0x55c176){return client[_0x7bcc('0x4')](_0x4bbf6b,_0x24bc1a)[_0x7bcc('0x5')](function(_0x82b2e1){logger[_0x7bcc('0x6')](_0x7bcc('0x7'),_0x7bcc('0x2'),_0x4bbf6b,_0x24bc1a,_0x82b2e1);if(_0x82b2e1['error']){logger[_0x7bcc('0x8')]('rpc',_0x7bcc('0x2'),_0x4bbf6b,_0x82b2e1[_0x7bcc('0x8')]['message'],_0x24bc1a);return _0x55c176(_0x82b2e1[_0x7bcc('0x8')]['message']);}else{return _0x3692c2(_0x82b2e1['result']);}})['catch'](function(_0x274d4e){logger[_0x7bcc('0x8')](_0x7bcc('0x7'),_0x7bcc('0x2'),_0x4bbf6b,_0x274d4e,_0x24bc1a);return _0x55c176(_0x274d4e);});});};module[_0x7bcc('0x9')]=client;
\ No newline at end of file
+var _0xe9e8=['catch','exports','jayson/promise','bluebird','../../config/logger','routing','client','http','Request','request','then','rpc','error','message','result'];(function(_0x5ae93d,_0x48a929){var _0x3bc344=function(_0x37d1e8){while(--_0x37d1e8){_0x5ae93d['push'](_0x5ae93d['shift']());}};_0x3bc344(++_0x48a929);}(_0xe9e8,0x179));var _0x8e9e=function(_0x559437,_0x21ee45){_0x559437=_0x559437-0x0;var _0x5333b9=_0xe9e8[_0x559437];return _0x5333b9;};'use strict';var jayson=require(_0x8e9e('0x0'));var BPromise=require(_0x8e9e('0x1'));var logger=require(_0x8e9e('0x2'))(_0x8e9e('0x3'));var client=jayson[_0x8e9e('0x4')][_0x8e9e('0x5')]({'port':0x2329});client[_0x8e9e('0x6')]=function(_0x48f1bc,_0x1508fb){return new BPromise(function(_0x497f2a,_0x1a558e){return client[_0x8e9e('0x7')](_0x48f1bc,_0x1508fb)[_0x8e9e('0x8')](function(_0x5de00e){logger['debug'](_0x8e9e('0x9'),_0x8e9e('0x3'),_0x48f1bc,_0x1508fb,_0x5de00e);if(_0x5de00e[_0x8e9e('0xa')]){logger[_0x8e9e('0xa')](_0x8e9e('0x9'),_0x8e9e('0x3'),_0x48f1bc,_0x5de00e['error']['message'],_0x1508fb);return _0x1a558e(_0x5de00e[_0x8e9e('0xa')][_0x8e9e('0xb')]);}else{return _0x497f2a(_0x5de00e[_0x8e9e('0xc')]);}})[_0x8e9e('0xd')](function(_0x2b1cd7){logger[_0x8e9e('0xa')](_0x8e9e('0x9'),_0x8e9e('0x3'),_0x48f1bc,_0x2b1cd7,_0x1508fb);return _0x1a558e(_0x2b1cd7);});});};module[_0x8e9e('0xe')]=client;
\ No newline at end of file