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 _0x023e=['emit','hasOwnProperty','hook','exports','../../mysqldb','save','update','remove'];(function(_0x21afd5,_0x57b9ba){var _0x59b71d=function(_0x4e4a15){while(--_0x4e4a15){_0x21afd5['push'](_0x21afd5['shift']());}};_0x59b71d(++_0x57b9ba);}(_0x023e,0x19c));var _0xe023=function(_0x3de328,_0x406810){_0x3de328=_0x3de328-0x0;var _0x54a585=_0x023e[_0x3de328];return _0x54a585;};'use strict';var EventEmitter=require('events');var UserVoiceQueueRt=require(_0xe023('0x0'))['db']['UserVoiceQueueRt'];var UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xe023('0x1'),'afterUpdate':_0xe023('0x2'),'afterDestroy':_0xe023('0x3')};function emitEvent(_0x537107){return function(_0xbbad49,_0xff4c6b,_0x429d1a){UserVoiceQueueRtEvents[_0xe023('0x4')](_0x537107+':'+_0xbbad49['id'],_0xbbad49);UserVoiceQueueRtEvents[_0xe023('0x4')](_0x537107,_0xbbad49);_0x429d1a(null);};}for(var e in events){if(events[_0xe023('0x5')](e)){var event=events[e];UserVoiceQueueRt[_0xe023('0x6')](e,emitEvent(event));}}module[_0xe023('0x7')]=UserVoiceQueueRtEvents;