Built motion from commit 37e1ed56.|2.6.29
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.events.js
index ffe206f..1939f10 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc453=['update','remove','emit','hook','exports','../../mysqldb','VoiceQueueReport','setMaxListeners','save'];(function(_0x38029a,_0x4526fa){var _0x3f5047=function(_0x44f00a){while(--_0x44f00a){_0x38029a['push'](_0x38029a['shift']());}};_0x3f5047(++_0x4526fa);}(_0xc453,0x1e2));var _0x3c45=function(_0x5f259a,_0x17d242){_0x5f259a=_0x5f259a-0x0;var _0x272c43=_0xc453[_0x5f259a];return _0x272c43;};'use strict';var EventEmitter=require('events');var VoiceQueueReport=require(_0x3c45('0x0'))['db'][_0x3c45('0x1')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x3c45('0x2')](0x0);var events={'afterCreate':_0x3c45('0x3'),'afterUpdate':_0x3c45('0x4'),'afterDestroy':_0x3c45('0x5')};function emitEvent(_0x183197){return function(_0x3051cf,_0x36b340,_0x1f7e30){VoiceQueueReportEvents['emit'](_0x183197+':'+_0x3051cf['id'],_0x3051cf);VoiceQueueReportEvents[_0x3c45('0x6')](_0x183197,_0x3051cf);_0x1f7e30(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueueReport[_0x3c45('0x7')](e,emitEvent(event));}}module[_0x3c45('0x8')]=VoiceQueueReportEvents;
\ No newline at end of file
+var _0x71d4=['update','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','VoiceQueueReport','setMaxListeners','save'];(function(_0x174f35,_0x24acbe){var _0x130c2b=function(_0x212de6){while(--_0x212de6){_0x174f35['push'](_0x174f35['shift']());}};_0x130c2b(++_0x24acbe);}(_0x71d4,0xab));var _0x471d=function(_0x5ea2d9,_0x293a87){_0x5ea2d9=_0x5ea2d9-0x0;var _0x46d90a=_0x71d4[_0x5ea2d9];return _0x46d90a;};'use strict';var EventEmitter=require(_0x471d('0x0'));var VoiceQueueReport=require(_0x471d('0x1'))['db'][_0x471d('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x471d('0x3')](0x0);var events={'afterCreate':_0x471d('0x4'),'afterUpdate':_0x471d('0x5'),'afterDestroy':_0x471d('0x6')};function emitEvent(_0x2835e9){return function(_0x3ae3ac,_0xa06472,_0x2fb713){VoiceQueueReportEvents[_0x471d('0x7')](_0x2835e9+':'+_0x3ae3ac['id'],_0x3ae3ac);VoiceQueueReportEvents[_0x471d('0x7')](_0x2835e9,_0x3ae3ac);_0x2fb713(null);};}for(var e in events){if(events[_0x471d('0x8')](e)){var event=events[e];VoiceQueueReport[_0x471d('0x9')](e,emitEvent(event));}}module[_0x471d('0xa')]=VoiceQueueReportEvents;
\ No newline at end of file