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 _0xfc20=['remove','hasOwnProperty','hook','events','../../mysqldb','save','update'];(function(_0x881521,_0x594900){var _0x432eaf=function(_0x3a989c){while(--_0x3a989c){_0x881521['push'](_0x881521['shift']());}};_0x432eaf(++_0x594900);}(_0xfc20,0xd5));var _0x0fc2=function(_0x211745,_0x41e7ee){_0x211745=_0x211745-0x0;var _0x2467fe=_0xfc20[_0x211745];return _0x2467fe;};'use strict';var EventEmitter=require(_0x0fc2('0x0'));var VoiceQueueReport=require(_0x0fc2('0x1'))['db']['VoiceQueueReport'];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x0fc2('0x2'),'afterUpdate':_0x0fc2('0x3'),'afterDestroy':_0x0fc2('0x4')};function emitEvent(_0xac8a5){return function(_0xe1c254,_0x58f336,_0x22125b){VoiceQueueReportEvents['emit'](_0xac8a5+':'+_0xe1c254['id'],_0xe1c254);VoiceQueueReportEvents['emit'](_0xac8a5,_0xe1c254);_0x22125b(null);};}for(var e in events){if(events[_0x0fc2('0x5')](e)){var event=events[e];VoiceQueueReport[_0x0fc2('0x6')](e,emitEvent(event));}}module['exports']=VoiceQueueReportEvents;