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 _0x1cc5=['save','update','remove','emit','hasOwnProperty','hook','events','../../mysqldb','setMaxListeners'];(function(_0x4070b9,_0x346c53){var _0x2d35ae=function(_0x479b1c){while(--_0x479b1c){_0x4070b9['push'](_0x4070b9['shift']());}};_0x2d35ae(++_0x346c53);}(_0x1cc5,0x1b6));var _0x51cc=function(_0x1ee04b,_0x554b3d){_0x1ee04b=_0x1ee04b-0x0;var _0x412848=_0x1cc5[_0x1ee04b];return _0x412848;};'use strict';var EventEmitter=require(_0x51cc('0x0'));var UserVoiceQueueRt=require(_0x51cc('0x1'))['db']['UserVoiceQueueRt'];var UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents[_0x51cc('0x2')](0x0);var events={'afterCreate':_0x51cc('0x3'),'afterUpdate':_0x51cc('0x4'),'afterDestroy':_0x51cc('0x5')};function emitEvent(_0x9d22ba){return function(_0x398305,_0x40528a,_0x5af8f3){UserVoiceQueueRtEvents[_0x51cc('0x6')](_0x9d22ba+':'+_0x398305['id'],_0x398305);UserVoiceQueueRtEvents[_0x51cc('0x6')](_0x9d22ba,_0x398305);_0x5af8f3(null);};}for(var e in events){if(events[_0x51cc('0x7')](e)){var event=events[e];UserVoiceQueueRt[_0x51cc('0x8')](e,emitEvent(event));}}module['exports']=UserVoiceQueueRtEvents;