1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x60ce=['VoiceQueueReport','setMaxListeners','update','hasOwnProperty','hook','events','../../mysqldb'];(function(_0x32a392,_0x116ac6){var _0x2da3a0=function(_0x4f4b39){while(--_0x4f4b39){_0x32a392['push'](_0x32a392['shift']());}};_0x2da3a0(++_0x116ac6);}(_0x60ce,0x8a));var _0xe60c=function(_0x27d86c,_0x1ae7cc){_0x27d86c=_0x27d86c-0x0;var _0x377bb7=_0x60ce[_0x27d86c];return _0x377bb7;};'use strict';var EventEmitter=require(_0xe60c('0x0'));var VoiceQueueReport=require(_0xe60c('0x1'))['db'][_0xe60c('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0xe60c('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0xe60c('0x4'),'afterDestroy':'remove'};function emitEvent(_0x4c1798){return function(_0x5a9c7b,_0x2fbbd4,_0x3fd600){VoiceQueueReportEvents['emit'](_0x4c1798+':'+_0x5a9c7b['id'],_0x5a9c7b);VoiceQueueReportEvents['emit'](_0x4c1798,_0x5a9c7b);_0x3fd600(null);};}for(var e in events){if(events[_0xe60c('0x5')](e)){var event=events[e];VoiceQueueReport[_0xe60c('0x6')](e,emitEvent(event));}}module['exports']=VoiceQueueReportEvents;