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 _0x3c86=['exports','events','../../mysqldb','VoiceQueueReport','save','remove','emit','hook'];(function(_0x173441,_0x26b0d9){var _0x2423a8=function(_0x4d96c2){while(--_0x4d96c2){_0x173441['push'](_0x173441['shift']());}};_0x2423a8(++_0x26b0d9);}(_0x3c86,0x139));var _0x63c8=function(_0x3df33b,_0x35c06b){_0x3df33b=_0x3df33b-0x0;var _0x884a01=_0x3c86[_0x3df33b];return _0x884a01;};'use strict';var EventEmitter=require(_0x63c8('0x0'));var VoiceQueueReport=require(_0x63c8('0x1'))['db'][_0x63c8('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x63c8('0x3'),'afterUpdate':'update','afterDestroy':_0x63c8('0x4')};function emitEvent(_0x9e5934){return function(_0x5c1721,_0xbc686f,_0x48b8a0){VoiceQueueReportEvents[_0x63c8('0x5')](_0x9e5934+':'+_0x5c1721['id'],_0x5c1721);VoiceQueueReportEvents['emit'](_0x9e5934,_0x5c1721);_0x48b8a0(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueueReport[_0x63c8('0x6')](e,emitEvent(event));}}module[_0x63c8('0x7')]=VoiceQueueReportEvents;