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 _0x849f=['update','emit','hasOwnProperty','exports','events','../../mysqldb','VoiceQueueReport','save'];(function(_0xdb47d8,_0x933e5b){var _0x5cdfd9=function(_0x3b69a8){while(--_0x3b69a8){_0xdb47d8['push'](_0xdb47d8['shift']());}};_0x5cdfd9(++_0x933e5b);}(_0x849f,0x18c));var _0xf849=function(_0x3ab51d,_0x2fa01d){_0x3ab51d=_0x3ab51d-0x0;var _0x29a04e=_0x849f[_0x3ab51d];return _0x29a04e;};'use strict';var EventEmitter=require(_0xf849('0x0'));var VoiceQueueReport=require(_0xf849('0x1'))['db'][_0xf849('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xf849('0x3'),'afterUpdate':_0xf849('0x4'),'afterDestroy':'remove'};function emitEvent(_0x571120){return function(_0x5b4973,_0x5cbd7b,_0x54cdaf){VoiceQueueReportEvents[_0xf849('0x5')](_0x571120+':'+_0x5b4973['id'],_0x5b4973);VoiceQueueReportEvents['emit'](_0x571120,_0x5b4973);_0x54cdaf(null);};}for(var e in events){if(events[_0xf849('0x6')](e)){var event=events[e];VoiceQueueReport['hook'](e,emitEvent(event));}}module[_0xf849('0x7')]=VoiceQueueReportEvents;