Built motion from commit (unavailable).|2.4.21
[motion2.git] / server / services / ami / client.js
index d654321..0b341bc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa44e=['debug','rpc','memberReport','error','message','catch','exports','jayson/promise','bluebird','../../config/logger','ami','http','Request','request','then'];(function(_0x161f26,_0x5ca49d){var _0x2f231b=function(_0x456a5e){while(--_0x456a5e){_0x161f26['push'](_0x161f26['shift']());}};_0x2f231b(++_0x5ca49d);}(_0xa44e,0x142));var _0xea44=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xa44e[_0x3dd15e];return _0x231fd0;};'use strict';var jayson=require(_0xea44('0x0'));var BPromise=require(_0xea44('0x1'));var logger=require(_0xea44('0x2'))(_0xea44('0x3'));var client=jayson['client'][_0xea44('0x4')]({'port':0x2329});client[_0xea44('0x5')]=function(_0x1868f7,_0x4d1020){return new BPromise(function(_0x34bf93,_0x40e1c7){return client[_0xea44('0x6')](_0x1868f7,_0x4d1020)[_0xea44('0x7')](function(_0x2275cb){logger[_0xea44('0x8')](_0xea44('0x9'),_0xea44('0xa'),_0x1868f7,_0x4d1020,_0x2275cb);if(_0x2275cb[_0xea44('0xb')]){logger[_0xea44('0xb')](_0xea44('0x9'),_0xea44('0xa'),_0x1868f7,_0x2275cb[_0xea44('0xb')][_0xea44('0xc')],_0x4d1020);return _0x40e1c7(_0x2275cb['error'][_0xea44('0xc')]);}else{return _0x34bf93(_0x2275cb['result']);}})[_0xea44('0xd')](function(_0x56adc5){logger[_0xea44('0xb')](_0xea44('0x9'),_0xea44('0xa'),_0x1868f7,_0x56adc5,_0x4d1020);return _0x40e1c7(_0x56adc5);});});};module[_0xea44('0xe')]=client;
\ No newline at end of file
+var _0xe767=['then','debug','rpc','memberReport','error','message','result','exports','bluebird','ami','http','Request','request'];(function(_0x2df13f,_0x3a3921){var _0x5c8a3f=function(_0x38aba4){while(--_0x38aba4){_0x2df13f['push'](_0x2df13f['shift']());}};_0x5c8a3f(++_0x3a3921);}(_0xe767,0x18e));var _0x7e76=function(_0x47d45c,_0x52383e){_0x47d45c=_0x47d45c-0x0;var _0x24cb12=_0xe767[_0x47d45c];return _0x24cb12;};'use strict';var jayson=require('jayson/promise');var BPromise=require(_0x7e76('0x0'));var logger=require('../../config/logger')(_0x7e76('0x1'));var client=jayson['client'][_0x7e76('0x2')]({'port':0x2329});client[_0x7e76('0x3')]=function(_0x4fb9fb,_0x5462d5){return new BPromise(function(_0x245f93,_0x713ba2){return client[_0x7e76('0x4')](_0x4fb9fb,_0x5462d5)[_0x7e76('0x5')](function(_0x3670a2){logger[_0x7e76('0x6')](_0x7e76('0x7'),_0x7e76('0x8'),_0x4fb9fb,_0x5462d5,_0x3670a2);if(_0x3670a2[_0x7e76('0x9')]){logger[_0x7e76('0x9')](_0x7e76('0x7'),_0x7e76('0x8'),_0x4fb9fb,_0x3670a2['error'][_0x7e76('0xa')],_0x5462d5);return _0x713ba2(_0x3670a2[_0x7e76('0x9')][_0x7e76('0xa')]);}else{return _0x245f93(_0x3670a2[_0x7e76('0xb')]);}})['catch'](function(_0x54b44b){logger[_0x7e76('0x9')](_0x7e76('0x7'),'memberReport',_0x4fb9fb,_0x54b44b,_0x5462d5);return _0x713ba2(_0x54b44b);});});};module[_0x7e76('0xc')]=client;
\ No newline at end of file