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 _0x05c2=['../../mysqldb','UserVoiceQueueRt','save','update','remove','emit','hasOwnProperty','hook','exports','events'];(function(_0x13dcf8,_0x162ca6){var _0x445a14=function(_0x3fffe6){while(--_0x3fffe6){_0x13dcf8['push'](_0x13dcf8['shift']());}};_0x445a14(++_0x162ca6);}(_0x05c2,0x135));var _0x205c=function(_0xb089f,_0x5ccd46){_0xb089f=_0xb089f-0x0;var _0x196b5a=_0x05c2[_0xb089f];return _0x196b5a;};'use strict';var EventEmitter=require(_0x205c('0x0'));var UserVoiceQueueRt=require(_0x205c('0x1'))['db'][_0x205c('0x2')];var UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x205c('0x3'),'afterUpdate':_0x205c('0x4'),'afterDestroy':_0x205c('0x5')};function emitEvent(_0x4e3710){return function(_0x11dc29,_0x1626bc,_0x696219){UserVoiceQueueRtEvents[_0x205c('0x6')](_0x4e3710+':'+_0x11dc29['id'],_0x11dc29);UserVoiceQueueRtEvents[_0x205c('0x6')](_0x4e3710,_0x11dc29);_0x696219(null);};}for(var e in events){if(events[_0x205c('0x7')](e)){var event=events[e];UserVoiceQueueRt[_0x205c('0x8')](e,emitEvent(event));}}module[_0x205c('0x9')]=UserVoiceQueueRtEvents;