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 _0x9d91=['VoiceQueueReport','setMaxListeners','update','remove','emit','hasOwnProperty','hook','exports','../../mysqldb'];(function(_0x2a67fe,_0x295c09){var _0x57e726=function(_0x280573){while(--_0x280573){_0x2a67fe['push'](_0x2a67fe['shift']());}};_0x57e726(++_0x295c09);}(_0x9d91,0x74));var _0x19d9=function(_0x2c5618,_0x206397){_0x2c5618=_0x2c5618-0x0;var _0x22472b=_0x9d91[_0x2c5618];return _0x22472b;};'use strict';var EventEmitter=require('events');var VoiceQueueReport=require(_0x19d9('0x0'))['db'][_0x19d9('0x1')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x19d9('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':_0x19d9('0x3'),'afterDestroy':_0x19d9('0x4')};function emitEvent(_0x259f2d){return function(_0x234b31,_0xec6f,_0x4bec7a){VoiceQueueReportEvents[_0x19d9('0x5')](_0x259f2d+':'+_0x234b31['id'],_0x234b31);VoiceQueueReportEvents[_0x19d9('0x5')](_0x259f2d,_0x234b31);_0x4bec7a(null);};}for(var e in events){if(events[_0x19d9('0x6')](e)){var event=events[e];VoiceQueueReport[_0x19d9('0x7')](e,emitEvent(event));}}module[_0x19d9('0x8')]=VoiceQueueReportEvents;