X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FvoiceQueueReport%2FvoiceQueueReport.events.js;h=2a38d67002765008c3f38dfb173c78f56ac0650f;hb=7b947914a77b8347fb1d6de0275fa1bbfcdf6ff9;hp=927525a13af73dd45933afa28d626f664b0d02e0;hpb=bc74370e54ee193dccc81d92e42005d458c8ae66;p=motion2.git diff --git a/server/api/voiceQueueReport/voiceQueueReport.events.js b/server/api/voiceQueueReport/voiceQueueReport.events.js index 927525a..2a38d67 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 _0x25e1=['save','update','emit','hasOwnProperty','exports','events','../../mysqldb','VoiceQueueReport'];(function(_0x5c0ddc,_0x410c88){var _0x38c7c1=function(_0x25649d){while(--_0x25649d){_0x5c0ddc['push'](_0x5c0ddc['shift']());}};_0x38c7c1(++_0x410c88);}(_0x25e1,0x125));var _0x125e=function(_0x9c53cf,_0x566c6f){_0x9c53cf=_0x9c53cf-0x0;var _0x97873c=_0x25e1[_0x9c53cf];return _0x97873c;};'use strict';var EventEmitter=require(_0x125e('0x0'));var VoiceQueueReport=require(_0x125e('0x1'))['db'][_0x125e('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x125e('0x3'),'afterUpdate':_0x125e('0x4'),'afterDestroy':'remove'};function emitEvent(_0x3559fb){return function(_0x1d1438,_0x2dd992,_0xb22aa6){VoiceQueueReportEvents[_0x125e('0x5')](_0x3559fb+':'+_0x1d1438['id'],_0x1d1438);VoiceQueueReportEvents[_0x125e('0x5')](_0x3559fb,_0x1d1438);_0xb22aa6(null);};}for(var e in events){if(events[_0x125e('0x6')](e)){var event=events[e];VoiceQueueReport['hook'](e,emitEvent(event));}}module[_0x125e('0x7')]=VoiceQueueReportEvents; \ No newline at end of file +var _0xacd6=['update','remove','emit','hasOwnProperty','hook','exports','events','VoiceQueueReport','save'];(function(_0x3660b6,_0x16abe4){var _0x343fb2=function(_0x17e793){while(--_0x17e793){_0x3660b6['push'](_0x3660b6['shift']());}};_0x343fb2(++_0x16abe4);}(_0xacd6,0x138));var _0x6acd=function(_0x15b380,_0x1a3c5f){_0x15b380=_0x15b380-0x0;var _0x232c5c=_0xacd6[_0x15b380];return _0x232c5c;};'use strict';var EventEmitter=require(_0x6acd('0x0'));var VoiceQueueReport=require('../../mysqldb')['db'][_0x6acd('0x1')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x6acd('0x2'),'afterUpdate':_0x6acd('0x3'),'afterDestroy':_0x6acd('0x4')};function emitEvent(_0x4d0cbf){return function(_0x50931c,_0xcbe623,_0x33a6a4){VoiceQueueReportEvents['emit'](_0x4d0cbf+':'+_0x50931c['id'],_0x50931c);VoiceQueueReportEvents[_0x6acd('0x5')](_0x4d0cbf,_0x50931c);_0x33a6a4(null);};}for(var e in events){if(events[_0x6acd('0x6')](e)){var event=events[e];VoiceQueueReport[_0x6acd('0x7')](e,emitEvent(event));}}module[_0x6acd('0x8')]=VoiceQueueReportEvents; \ No newline at end of file