Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / voiceQueue / voiceQueue.events.js
index 118ee97..9bf79aa 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x97e6=['hook','exports','../../mysqldb','setMaxListeners','save','remove'];(function(_0x376dd3,_0x10edb9){var _0x2c449b=function(_0x8660ba){while(--_0x8660ba){_0x376dd3['push'](_0x376dd3['shift']());}};_0x2c449b(++_0x10edb9);}(_0x97e6,0xce));var _0x697e=function(_0x11afd1,_0x4d62ff){_0x11afd1=_0x11afd1-0x0;var _0x5e8b34=_0x97e6[_0x11afd1];return _0x5e8b34;};'use strict';var EventEmitter=require('events');var VoiceQueue=require(_0x697e('0x0'))['db']['VoiceQueue'];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0x697e('0x1')](0x0);var events={'afterCreate':_0x697e('0x2'),'afterUpdate':'update','afterDestroy':_0x697e('0x3')};function emitEvent(_0x4ff73c){return function(_0x15bf8b,_0x59bba3,_0x261412){VoiceQueueEvents['emit'](_0x4ff73c+':'+_0x15bf8b['id'],_0x15bf8b);VoiceQueueEvents['emit'](_0x4ff73c,_0x15bf8b);_0x261412(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueue[_0x697e('0x4')](e,emitEvent(event));}}module[_0x697e('0x5')]=VoiceQueueEvents;
\ No newline at end of file
+var _0x5328=['hook','events','../../mysqldb','VoiceQueue','setMaxListeners','save','update','emit','hasOwnProperty'];(function(_0x1789c2,_0x2a99c1){var _0x4dfe76=function(_0x3a4e5c){while(--_0x3a4e5c){_0x1789c2['push'](_0x1789c2['shift']());}};_0x4dfe76(++_0x2a99c1);}(_0x5328,0x121));var _0x8532=function(_0x3f3117,_0x9074ba){_0x3f3117=_0x3f3117-0x0;var _0x5cdf22=_0x5328[_0x3f3117];return _0x5cdf22;};'use strict';var EventEmitter=require(_0x8532('0x0'));var VoiceQueue=require(_0x8532('0x1'))['db'][_0x8532('0x2')];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0x8532('0x3')](0x0);var events={'afterCreate':_0x8532('0x4'),'afterUpdate':_0x8532('0x5'),'afterDestroy':'remove'};function emitEvent(_0x21336c){return function(_0x220ca1,_0x460bf0,_0x3941cf){VoiceQueueEvents[_0x8532('0x6')](_0x21336c+':'+_0x220ca1['id'],_0x220ca1);VoiceQueueEvents['emit'](_0x21336c,_0x220ca1);_0x3941cf(null);};}for(var e in events){if(events[_0x8532('0x7')](e)){var event=events[e];VoiceQueue[_0x8532('0x8')](e,emitEvent(event));}}module['exports']=VoiceQueueEvents;
\ No newline at end of file