Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / services / ami / client.js
index 84ef48e..8918ee4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x22f7=['Request','then','debug','memberReport','error','rpc','message','catch','exports','../../config/logger','ami','client','http'];(function(_0x3e1f89,_0x289b75){var _0x4b1364=function(_0x49aa1c){while(--_0x49aa1c){_0x3e1f89['push'](_0x3e1f89['shift']());}};_0x4b1364(++_0x289b75);}(_0x22f7,0x98));var _0x722f=function(_0x511adc,_0x2d9a9e){_0x511adc=_0x511adc-0x0;var _0x4924d2=_0x22f7[_0x511adc];return _0x4924d2;};'use strict';var jayson=require('jayson/promise');var BPromise=require('bluebird');var logger=require(_0x722f('0x0'))(_0x722f('0x1'));var client=jayson[_0x722f('0x2')][_0x722f('0x3')]({'port':0x2329});client[_0x722f('0x4')]=function(_0x4b2b13,_0x2c142f){return new BPromise(function(_0x40b6c7,_0x135847){return client['request'](_0x4b2b13,_0x2c142f)[_0x722f('0x5')](function(_0x15f33f){logger[_0x722f('0x6')]('rpc',_0x722f('0x7'),_0x4b2b13,_0x2c142f,_0x15f33f);if(_0x15f33f[_0x722f('0x8')]){logger[_0x722f('0x8')](_0x722f('0x9'),_0x722f('0x7'),_0x4b2b13,_0x15f33f['error'][_0x722f('0xa')],_0x2c142f);return _0x135847(_0x15f33f[_0x722f('0x8')][_0x722f('0xa')]);}else{return _0x40b6c7(_0x15f33f['result']);}})[_0x722f('0xb')](function(_0x36e1d6){logger[_0x722f('0x8')](_0x722f('0x9'),'memberReport',_0x4b2b13,_0x36e1d6,_0x2c142f);return _0x135847(_0x36e1d6);});});};module[_0x722f('0xc')]=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