X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FvoiceQueueReport%2FvoiceQueueReport.events.js;h=af0288e3dac6c697d5b1991387ddfa830fcd45c8;hb=bbf2934691a4ec9ff4842d68e55333ba589f6077;hp=85d6ad0b92d8f9a9b62562fabeb498209296dc36;hpb=f6a4a6da2059d78b5a9307c96563cc0d2a15e915;p=motion2.git diff --git a/server/api/voiceQueueReport/voiceQueueReport.events.js b/server/api/voiceQueueReport/voiceQueueReport.events.js index 85d6ad0..af0288e 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 _0x12d8=['remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','VoiceQueueReport','save','update'];(function(_0x478d72,_0x2d6b7a){var _0x5ef7cf=function(_0x199aea){while(--_0x199aea){_0x478d72['push'](_0x478d72['shift']());}};_0x5ef7cf(++_0x2d6b7a);}(_0x12d8,0xcd));var _0x812d=function(_0x4ce9ac,_0x3a98d8){_0x4ce9ac=_0x4ce9ac-0x0;var _0x34fcb4=_0x12d8[_0x4ce9ac];return _0x34fcb4;};'use strict';var EventEmitter=require(_0x812d('0x0'));var VoiceQueueReport=require(_0x812d('0x1'))['db'][_0x812d('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x812d('0x3'),'afterUpdate':_0x812d('0x4'),'afterDestroy':_0x812d('0x5')};function emitEvent(_0xe6fc3d){return function(_0x606b62,_0x32b3a1,_0x839fe){VoiceQueueReportEvents[_0x812d('0x6')](_0xe6fc3d+':'+_0x606b62['id'],_0x606b62);VoiceQueueReportEvents['emit'](_0xe6fc3d,_0x606b62);_0x839fe(null);};}for(var e in events){if(events[_0x812d('0x7')](e)){var event=events[e];VoiceQueueReport[_0x812d('0x8')](e,emitEvent(event));}}module[_0x812d('0x9')]=VoiceQueueReportEvents; \ No newline at end of file +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