X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FvoiceQueueReport%2FvoiceQueueReport.events.js;h=de88e690788d9b1dcc6bf75a114f3d89869c13b9;hb=ed368fdfe923471c0749d5720e7df57649e4ed09;hp=79271e9062b077bef24ce9c4cc9ba8e61a9d7e34;hpb=91492537a7b94b14914d0db658458118de1ea819;p=motion2.git diff --git a/server/api/voiceQueueReport/voiceQueueReport.events.js b/server/api/voiceQueueReport/voiceQueueReport.events.js index 79271e9..de88e69 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 _0x58c6=['VoiceQueueReport','setMaxListeners','remove','emit','exports','events','../../mysqldb'];(function(_0x76e010,_0x2cd47f){var _0x46edc=function(_0x4777a6){while(--_0x4777a6){_0x76e010['push'](_0x76e010['shift']());}};_0x46edc(++_0x2cd47f);}(_0x58c6,0x178));var _0x658c=function(_0x25c326,_0x250137){_0x25c326=_0x25c326-0x0;var _0x762452=_0x58c6[_0x25c326];return _0x762452;};'use strict';var EventEmitter=require(_0x658c('0x0'));var VoiceQueueReport=require(_0x658c('0x1'))['db'][_0x658c('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x658c('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x658c('0x4')};function emitEvent(_0x5a11d4){return function(_0x1434be,_0xdabb45,_0x1c6fda){VoiceQueueReportEvents[_0x658c('0x5')](_0x5a11d4+':'+_0x1434be['id'],_0x1434be);VoiceQueueReportEvents['emit'](_0x5a11d4,_0x1434be);_0x1c6fda(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueueReport['hook'](e,emitEvent(event));}}module[_0x658c('0x6')]=VoiceQueueReportEvents; \ No newline at end of file +var _0xf0f3=['events','../../mysqldb','VoiceQueueReport','setMaxListeners','update','emit','hasOwnProperty','hook','exports'];(function(_0x38fb8b,_0x70dd0a){var _0x1ec681=function(_0x58f130){while(--_0x58f130){_0x38fb8b['push'](_0x38fb8b['shift']());}};_0x1ec681(++_0x70dd0a);}(_0xf0f3,0x1ef));var _0x3f0f=function(_0x543259,_0x537ff6){_0x543259=_0x543259-0x0;var _0x8a88f5=_0xf0f3[_0x543259];return _0x8a88f5;};'use strict';var EventEmitter=require(_0x3f0f('0x0'));var VoiceQueueReport=require(_0x3f0f('0x1'))['db'][_0x3f0f('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x3f0f('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0x3f0f('0x4'),'afterDestroy':'remove'};function emitEvent(_0x454919){return function(_0x2ea36c,_0xeb5a23,_0xfe2218){VoiceQueueReportEvents[_0x3f0f('0x5')](_0x454919+':'+_0x2ea36c['id'],_0x2ea36c);VoiceQueueReportEvents[_0x3f0f('0x5')](_0x454919,_0x2ea36c);_0xfe2218(null);};}for(var e in events){if(events[_0x3f0f('0x6')](e)){var event=events[e];VoiceQueueReport[_0x3f0f('0x7')](e,emitEvent(event));}}module[_0x3f0f('0x8')]=VoiceQueueReportEvents; \ No newline at end of file