X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FvoiceQueue%2FvoiceQueue.events.js;h=c4d04226c0934b8654cc46f660eab4b0da552dda;hb=868a31873a4f5d6a45b7a9cfef882f2e311d37fa;hp=cf30c8895e493d8aec9109f33dde9bf6fb1d7af4;hpb=08f6e0b86d261e0f7c3417afd107d7f774257198;p=motion2.git diff --git a/server/api/voiceQueue/voiceQueue.events.js b/server/api/voiceQueue/voiceQueue.events.js index cf30c88..c4d0422 100644 --- a/server/api/voiceQueue/voiceQueue.events.js +++ b/server/api/voiceQueue/voiceQueue.events.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0xd08e=['update','remove','emit','hasOwnProperty','events','../../mysqldb','setMaxListeners','save'];(function(_0x54b198,_0x2ff0d0){var _0x5ec0e5=function(_0x2d2fef){while(--_0x2d2fef){_0x54b198['push'](_0x54b198['shift']());}};_0x5ec0e5(++_0x2ff0d0);}(_0xd08e,0x9c));var _0xed08=function(_0x44a64f,_0x38475c){_0x44a64f=_0x44a64f-0x0;var _0x52024b=_0xd08e[_0x44a64f];return _0x52024b;};'use strict';var EventEmitter=require(_0xed08('0x0'));var VoiceQueue=require(_0xed08('0x1'))['db']['VoiceQueue'];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0xed08('0x2')](0x0);var events={'afterCreate':_0xed08('0x3'),'afterUpdate':_0xed08('0x4'),'afterDestroy':_0xed08('0x5')};function emitEvent(_0xeb0d3c){return function(_0x4b673f,_0x421899,_0x1b48ea){VoiceQueueEvents[_0xed08('0x6')](_0xeb0d3c+':'+_0x4b673f['id'],_0x4b673f);VoiceQueueEvents[_0xed08('0x6')](_0xeb0d3c,_0x4b673f);_0x1b48ea(null);};}for(var e in events){if(events[_0xed08('0x7')](e)){var event=events[e];VoiceQueue['hook'](e,emitEvent(event));}}module['exports']=VoiceQueueEvents; \ No newline at end of file +var _0xbc3c=['setMaxListeners','save','update','hasOwnProperty','hook','exports','events','../../mysqldb','VoiceQueue'];(function(_0x1e7634,_0x37d8e2){var _0x50a829=function(_0x3fe890){while(--_0x3fe890){_0x1e7634['push'](_0x1e7634['shift']());}};_0x50a829(++_0x37d8e2);}(_0xbc3c,0x1da));var _0xcbc3=function(_0x126558,_0x143c9a){_0x126558=_0x126558-0x0;var _0x1f6d14=_0xbc3c[_0x126558];return _0x1f6d14;};'use strict';var EventEmitter=require(_0xcbc3('0x0'));var VoiceQueue=require(_0xcbc3('0x1'))['db'][_0xcbc3('0x2')];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0xcbc3('0x3')](0x0);var events={'afterCreate':_0xcbc3('0x4'),'afterUpdate':_0xcbc3('0x5'),'afterDestroy':'remove'};function emitEvent(_0x4eba9a){return function(_0x504944,_0x5c3b65,_0x6c98bb){VoiceQueueEvents['emit'](_0x4eba9a+':'+_0x504944['id'],_0x504944);VoiceQueueEvents['emit'](_0x4eba9a,_0x504944);_0x6c98bb(null);};}for(var e in events){if(events[_0xcbc3('0x6')](e)){var event=events[e];VoiceQueue[_0xcbc3('0x7')](e,emitEvent(event));}}module[_0xcbc3('0x8')]=VoiceQueueEvents; \ No newline at end of file