X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FvoiceQueueReport%2FvoiceQueueReport.events.js;h=90311ce7da3950788092a178cae0dfa7e43764f4;hb=bb4ed137b40a5e77cec195be87f1b347330d2766;hp=af0288e3dac6c697d5b1991387ddfa830fcd45c8;hpb=bbf2934691a4ec9ff4842d68e55333ba589f6077;p=motion2.git diff --git a/server/api/voiceQueueReport/voiceQueueReport.events.js b/server/api/voiceQueueReport/voiceQueueReport.events.js index af0288e..90311ce 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.events.js +++ b/server/api/voiceQueueReport/voiceQueueReport.events.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x436a=['save','update','remove','emit','hook','exports','../../mysqldb','VoiceQueueReport','setMaxListeners'];(function(_0x3cae69,_0x233c38){var _0x3128eb=function(_0x21d64e){while(--_0x21d64e){_0x3cae69['push'](_0x3cae69['shift']());}};_0x3128eb(++_0x233c38);}(_0x436a,0x15c));var _0xa436=function(_0x321ddc,_0x58f72a){_0x321ddc=_0x321ddc-0x0;var _0x277f53=_0x436a[_0x321ddc];return _0x277f53;};'use strict';var EventEmitter=require('events');var VoiceQueueReport=require(_0xa436('0x0'))['db'][_0xa436('0x1')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0xa436('0x2')](0x0);var events={'afterCreate':_0xa436('0x3'),'afterUpdate':_0xa436('0x4'),'afterDestroy':_0xa436('0x5')};function emitEvent(_0x27d254){return function(_0x1e197a,_0x4fd4ee,_0x3e39be){VoiceQueueReportEvents[_0xa436('0x6')](_0x27d254+':'+_0x1e197a['id'],_0x1e197a);VoiceQueueReportEvents['emit'](_0x27d254,_0x1e197a);_0x3e39be(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueueReport[_0xa436('0x7')](e,emitEvent(event));}}module[_0xa436('0x8')]=VoiceQueueReportEvents; \ No newline at end of file +var _0x85a1=['../../mysqldb','VoiceQueueReport','setMaxListeners','save','update','remove','emit','hasOwnProperty','hook','events'];(function(_0x1e070a,_0x8533d4){var _0x4d0c63=function(_0x346e08){while(--_0x346e08){_0x1e070a['push'](_0x1e070a['shift']());}};_0x4d0c63(++_0x8533d4);}(_0x85a1,0xef));var _0x185a=function(_0xd8897b,_0x116f4c){_0xd8897b=_0xd8897b-0x0;var _0x29b445=_0x85a1[_0xd8897b];return _0x29b445;};'use strict';var EventEmitter=require(_0x185a('0x0'));var VoiceQueueReport=require(_0x185a('0x1'))['db'][_0x185a('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x185a('0x3')](0x0);var events={'afterCreate':_0x185a('0x4'),'afterUpdate':_0x185a('0x5'),'afterDestroy':_0x185a('0x6')};function emitEvent(_0x37a904){return function(_0x17a5c9,_0x29a165,_0xc3dcea){VoiceQueueReportEvents[_0x185a('0x7')](_0x37a904+':'+_0x17a5c9['id'],_0x17a5c9);VoiceQueueReportEvents[_0x185a('0x7')](_0x37a904,_0x17a5c9);_0xc3dcea(null);};}for(var e in events){if(events[_0x185a('0x8')](e)){var event=events[e];VoiceQueueReport[_0x185a('0x9')](e,emitEvent(event));}}module['exports']=VoiceQueueReportEvents; \ No newline at end of file