Built motion from commit (unavailable).|2.5.6
[motion2.git] / server / api / voiceQueue / voiceQueue.events.js
index d58cc0b..9f70ad2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2e5a=['emit','hasOwnProperty','hook','exports','events','../../mysqldb','VoiceQueue','setMaxListeners','remove'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x2e5a,0x100));var _0xa2e5=function(_0x368d62,_0x4b21bd){_0x368d62=_0x368d62-0x0;var _0x25188a=_0x2e5a[_0x368d62];return _0x25188a;};'use strict';var EventEmitter=require(_0xa2e5('0x0'));var VoiceQueue=require(_0xa2e5('0x1'))['db'][_0xa2e5('0x2')];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0xa2e5('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0xa2e5('0x4')};function emitEvent(_0x1cbefc){return function(_0x6065f4,_0x23d5fe,_0x549c13){VoiceQueueEvents['emit'](_0x1cbefc+':'+_0x6065f4['id'],_0x6065f4);VoiceQueueEvents[_0xa2e5('0x5')](_0x1cbefc,_0x6065f4);_0x549c13(null);};}for(var e in events){if(events[_0xa2e5('0x6')](e)){var event=events[e];VoiceQueue[_0xa2e5('0x7')](e,emitEvent(event));}}module[_0xa2e5('0x8')]=VoiceQueueEvents;
\ No newline at end of file
+var _0x1331=['save','update','remove','emit','hook','events','VoiceQueue','setMaxListeners'];(function(_0x5b644e,_0x2e5e07){var _0x49c6bf=function(_0x3032d9){while(--_0x3032d9){_0x5b644e['push'](_0x5b644e['shift']());}};_0x49c6bf(++_0x2e5e07);}(_0x1331,0x6d));var _0x1133=function(_0x4b7742,_0x2b33d8){_0x4b7742=_0x4b7742-0x0;var _0x115299=_0x1331[_0x4b7742];return _0x115299;};'use strict';var EventEmitter=require(_0x1133('0x0'));var VoiceQueue=require('../../mysqldb')['db'][_0x1133('0x1')];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0x1133('0x2')](0x0);var events={'afterCreate':_0x1133('0x3'),'afterUpdate':_0x1133('0x4'),'afterDestroy':_0x1133('0x5')};function emitEvent(_0x480d6d){return function(_0x2abf00,_0x31e10f,_0x22a024){VoiceQueueEvents[_0x1133('0x6')](_0x480d6d+':'+_0x2abf00['id'],_0x2abf00);VoiceQueueEvents[_0x1133('0x6')](_0x480d6d,_0x2abf00);_0x22a024(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueue[_0x1133('0x7')](e,emitEvent(event));}}module['exports']=VoiceQueueEvents;
\ No newline at end of file