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 _0x056e=['events','../../mysqldb','VoiceQueueReport','save','update','remove','emit','hook','exports'];(function(_0x1e129a,_0x4bfa91){var _0x595d15=function(_0x116179){while(--_0x116179){_0x1e129a['push'](_0x1e129a['shift']());}};_0x595d15(++_0x4bfa91);}(_0x056e,0xc6));var _0xe056=function(_0x1c6089,_0x3816e2){_0x1c6089=_0x1c6089-0x0;var _0x4d97c1=_0x056e[_0x1c6089];return _0x4d97c1;};'use strict';var EventEmitter=require(_0xe056('0x0'));var VoiceQueueReport=require(_0xe056('0x1'))['db'][_0xe056('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xe056('0x3'),'afterUpdate':_0xe056('0x4'),'afterDestroy':_0xe056('0x5')};function emitEvent(_0x25fa66){return function(_0x1e8275,_0x5de61d,_0x56e6fc){VoiceQueueReportEvents[_0xe056('0x6')](_0x25fa66+':'+_0x1e8275['id'],_0x1e8275);VoiceQueueReportEvents[_0xe056('0x6')](_0x25fa66,_0x1e8275);_0x56e6fc(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueueReport[_0xe056('0x7')](e,emitEvent(event));}}module[_0xe056('0x8')]=VoiceQueueReportEvents;