Built motion from commit f25620e4.|2.6.30
[motion2.git] / server / services / agi / events.js
index ca6d46c..aef5d7b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3020=['subscribe','agi','emit','E_AGI_SERVER_ERROR','message','parse','projectUpdate','error','exports','lodash','ioredis','./error','../../config/environment','redis','localhost'];(function(_0x40c652,_0x2ff0ec){var _0xe2b520=function(_0x1285fc){while(--_0x1285fc){_0x40c652['push'](_0x40c652['shift']());}};_0xe2b520(++_0x2ff0ec);}(_0x3020,0xdb));var _0x0302=function(_0x545f8b,_0x475cf8){_0x545f8b=_0x545f8b-0x0;var _0x3ea7c9=_0x3020[_0x545f8b];return _0x3ea7c9;};'use strict';var _=require(_0x0302('0x0'));var EventEmitter=require('events')['EventEmitter'];var Redis=require(_0x0302('0x1'));var AGIError=require(_0x0302('0x2'));var config=require(_0x0302('0x3'));config['redis']=_['defaults'](config[_0x0302('0x4')],{'host':_0x0302('0x5'),'port':0x18eb});var eventEmitter=new EventEmitter();var sub=new Redis(config[_0x0302('0x4')]);sub[_0x0302('0x6')](_0x0302('0x7'),function(_0x5a2568){if(_0x5a2568)return eventEmitter[_0x0302('0x8')]('error',new AGIError(_0x0302('0x9'),_0x5a2568));});sub['on'](_0x0302('0xa'),function(_0x8fc1e4,_0x7f699){if(_0x8fc1e4!=='agi')return;try{var _0x16fccd=JSON[_0x0302('0xb')](_0x7f699);eventEmitter[_0x0302('0x8')](_0x0302('0xc'),_0x16fccd);}catch(_0x4b16fb){eventEmitter[_0x0302('0x8')](_0x0302('0xd'),new AGIError(_0x0302('0x9'),_0x4b16fb));}});module[_0x0302('0xe')]={'EventEmitter':eventEmitter};
\ No newline at end of file
+var _0xeb01=['EventEmitter','./error','../../config/environment','redis','defaults','localhost','subscribe','emit','error','E_AGI_SERVER_ERROR','message','projectUpdate','lodash','events'];(function(_0x4e5fc8,_0x1ff94c){var _0x425116=function(_0x31b7af){while(--_0x31b7af){_0x4e5fc8['push'](_0x4e5fc8['shift']());}};_0x425116(++_0x1ff94c);}(_0xeb01,0x14e));var _0x1eb0=function(_0x209dd8,_0x3e8fe6){_0x209dd8=_0x209dd8-0x0;var _0x1b171c=_0xeb01[_0x209dd8];return _0x1b171c;};'use strict';var _=require(_0x1eb0('0x0'));var EventEmitter=require(_0x1eb0('0x1'))[_0x1eb0('0x2')];var Redis=require('ioredis');var AGIError=require(_0x1eb0('0x3'));var config=require(_0x1eb0('0x4'));config[_0x1eb0('0x5')]=_[_0x1eb0('0x6')](config['redis'],{'host':_0x1eb0('0x7'),'port':0x18eb});var eventEmitter=new EventEmitter();var sub=new Redis(config[_0x1eb0('0x5')]);sub[_0x1eb0('0x8')]('agi',function(_0x55d625){if(_0x55d625)return eventEmitter[_0x1eb0('0x9')](_0x1eb0('0xa'),new AGIError(_0x1eb0('0xb'),_0x55d625));});sub['on'](_0x1eb0('0xc'),function(_0x5368e4,_0x2ca26b){if(_0x5368e4!=='agi')return;try{var _0x353c7a=JSON['parse'](_0x2ca26b);eventEmitter[_0x1eb0('0x9')](_0x1eb0('0xd'),_0x353c7a);}catch(_0x165d45){eventEmitter[_0x1eb0('0x9')]('error',new AGIError(_0x1eb0('0xb'),_0x165d45));}});module['exports']={'EventEmitter':eventEmitter};
\ No newline at end of file