Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / services / ami / client.js
index 8538d24..8918ee4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x86f3=['jayson/promise','bluebird','../../config/logger','ami','client','http','Request','request','then','debug','rpc','memberReport','error','message','result','catch','exports'];(function(_0x3ae6cf,_0x53aecb){var _0x1ccdfe=function(_0xe43356){while(--_0xe43356){_0x3ae6cf['push'](_0x3ae6cf['shift']());}};_0x1ccdfe(++_0x53aecb);}(_0x86f3,0xee));var _0x386f=function(_0x3207aa,_0xe86a72){_0x3207aa=_0x3207aa-0x0;var _0x51758f=_0x86f3[_0x3207aa];return _0x51758f;};'use strict';var jayson=require(_0x386f('0x0'));var BPromise=require(_0x386f('0x1'));var logger=require(_0x386f('0x2'))(_0x386f('0x3'));var client=jayson[_0x386f('0x4')][_0x386f('0x5')]({'port':0x2329});client[_0x386f('0x6')]=function(_0xd09313,_0x2e7390){return new BPromise(function(_0x8b6d1b,_0x5a2232){return client[_0x386f('0x7')](_0xd09313,_0x2e7390)[_0x386f('0x8')](function(_0x42039f){logger[_0x386f('0x9')](_0x386f('0xa'),_0x386f('0xb'),_0xd09313,_0x2e7390,_0x42039f);if(_0x42039f[_0x386f('0xc')]){logger[_0x386f('0xc')](_0x386f('0xa'),_0x386f('0xb'),_0xd09313,_0x42039f[_0x386f('0xc')]['message'],_0x2e7390);return _0x5a2232(_0x42039f[_0x386f('0xc')][_0x386f('0xd')]);}else{return _0x8b6d1b(_0x42039f[_0x386f('0xe')]);}})[_0x386f('0xf')](function(_0x36a77c){logger[_0x386f('0xc')](_0x386f('0xa'),_0x386f('0xb'),_0xd09313,_0x36a77c,_0x2e7390);return _0x5a2232(_0x36a77c);});});};module[_0x386f('0x10')]=client;
\ No newline at end of file
+var _0xe706=['result','catch','exports','jayson/promise','bluebird','../../config/logger','client','http','Request','request','then','debug','rpc','memberReport','error','message'];(function(_0x57966a,_0x477964){var _0x191765=function(_0x106a01){while(--_0x106a01){_0x57966a['push'](_0x57966a['shift']());}};_0x191765(++_0x477964);}(_0xe706,0xa3));var _0x6e70=function(_0x5c6299,_0x11bd28){_0x5c6299=_0x5c6299-0x0;var _0x23b564=_0xe706[_0x5c6299];return _0x23b564;};'use strict';var jayson=require(_0x6e70('0x0'));var BPromise=require(_0x6e70('0x1'));var logger=require(_0x6e70('0x2'))('ami');var client=jayson[_0x6e70('0x3')][_0x6e70('0x4')]({'port':0x2329});client[_0x6e70('0x5')]=function(_0x7dfbc3,_0x142c27){return new BPromise(function(_0x2164a4,_0x376a8d){return client[_0x6e70('0x6')](_0x7dfbc3,_0x142c27)[_0x6e70('0x7')](function(_0x4381d1){logger[_0x6e70('0x8')](_0x6e70('0x9'),_0x6e70('0xa'),_0x7dfbc3,_0x142c27,_0x4381d1);if(_0x4381d1[_0x6e70('0xb')]){logger[_0x6e70('0xb')](_0x6e70('0x9'),_0x6e70('0xa'),_0x7dfbc3,_0x4381d1[_0x6e70('0xb')][_0x6e70('0xc')],_0x142c27);return _0x376a8d(_0x4381d1[_0x6e70('0xb')][_0x6e70('0xc')]);}else{return _0x2164a4(_0x4381d1[_0x6e70('0xd')]);}})[_0x6e70('0xe')](function(_0x4600f9){logger['error']('rpc',_0x6e70('0xa'),_0x7dfbc3,_0x4600f9,_0x142c27);return _0x376a8d(_0x4600f9);});});};module[_0x6e70('0xf')]=client;
\ No newline at end of file