Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / voiceQueue / voiceQueue.events.js
index 6e8f74c..018b3ff 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8266=['setMaxListeners','save','remove','emit','exports','events','../../mysqldb','VoiceQueue'];(function(_0x16d10f,_0x2ba2d5){var _0x50c823=function(_0x44e43f){while(--_0x44e43f){_0x16d10f['push'](_0x16d10f['shift']());}};_0x50c823(++_0x2ba2d5);}(_0x8266,0x1dd));var _0x6826=function(_0x4c5f7c,_0x423d7f){_0x4c5f7c=_0x4c5f7c-0x0;var _0x434b8e=_0x8266[_0x4c5f7c];return _0x434b8e;};'use strict';var EventEmitter=require(_0x6826('0x0'));var VoiceQueue=require(_0x6826('0x1'))['db'][_0x6826('0x2')];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0x6826('0x3')](0x0);var events={'afterCreate':_0x6826('0x4'),'afterUpdate':'update','afterDestroy':_0x6826('0x5')};function emitEvent(_0x5c2450){return function(_0x2ba3b6,_0x37aecf,_0x39b303){VoiceQueueEvents[_0x6826('0x6')](_0x5c2450+':'+_0x2ba3b6['id'],_0x2ba3b6);VoiceQueueEvents[_0x6826('0x6')](_0x5c2450,_0x2ba3b6);_0x39b303(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueue['hook'](e,emitEvent(event));}}module[_0x6826('0x7')]=VoiceQueueEvents;
\ No newline at end of file
+var _0x0c5a=['exports','events','../../mysqldb','setMaxListeners','save','update','remove','emit','hasOwnProperty'];(function(_0x552252,_0xdb0d75){var _0x16ae8d=function(_0x1cebe2){while(--_0x1cebe2){_0x552252['push'](_0x552252['shift']());}};_0x16ae8d(++_0xdb0d75);}(_0x0c5a,0x157));var _0xa0c5=function(_0x32eb3f,_0x3cc610){_0x32eb3f=_0x32eb3f-0x0;var _0x372d5f=_0x0c5a[_0x32eb3f];return _0x372d5f;};'use strict';var EventEmitter=require(_0xa0c5('0x0'));var VoiceQueue=require(_0xa0c5('0x1'))['db']['VoiceQueue'];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0xa0c5('0x2')](0x0);var events={'afterCreate':_0xa0c5('0x3'),'afterUpdate':_0xa0c5('0x4'),'afterDestroy':_0xa0c5('0x5')};function emitEvent(_0x390d11){return function(_0xdfc78e,_0x2c5532,_0x4f0851){VoiceQueueEvents[_0xa0c5('0x6')](_0x390d11+':'+_0xdfc78e['id'],_0xdfc78e);VoiceQueueEvents[_0xa0c5('0x6')](_0x390d11,_0xdfc78e);_0x4f0851(null);};}for(var e in events){if(events[_0xa0c5('0x7')](e)){var event=events[e];VoiceQueue['hook'](e,emitEvent(event));}}module[_0xa0c5('0x8')]=VoiceQueueEvents;
\ No newline at end of file