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 _0x70d1=['../../mysqldb','setMaxListeners','emit','hasOwnProperty','hook'];(function(_0x4c7d8b,_0x572388){var _0x187158=function(_0x5e956d){while(--_0x5e956d){_0x4c7d8b['push'](_0x4c7d8b['shift']());}};_0x187158(++_0x572388);}(_0x70d1,0x1cc));var _0x170d=function(_0x51472d,_0x592b0b){_0x51472d=_0x51472d-0x0;var _0x5f00f1=_0x70d1[_0x51472d];return _0x5f00f1;};'use strict';var EventEmitter=require('events');var VoiceQueueReport=require(_0x170d('0x0'))['db']['VoiceQueueReport'];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x170d('0x1')](0x0);var events={'afterCreate':'save','afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x198900){return function(_0xa05d97,_0x2d1f2c,_0x19f4fc){VoiceQueueReportEvents[_0x170d('0x2')](_0x198900+':'+_0xa05d97['id'],_0xa05d97);VoiceQueueReportEvents['emit'](_0x198900,_0xa05d97);_0x19f4fc(null);};}for(var e in events){if(events[_0x170d('0x3')](e)){var event=events[e];VoiceQueueReport[_0x170d('0x4')](e,emitEvent(event));}}module['exports']=VoiceQueueReportEvents;