1a9545f89b105633d198966069a0508fcaa67f7d
[motion2.git] / server / api / userVoiceQueueRt / userVoiceQueueRt.events.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xdd0d=['../../mysqldb','UserVoiceQueueRt','save','update','remove','emit','hasOwnProperty','hook','exports','events'];(function(_0x5cc8,_0x1faa02){var _0x450661=function(_0x237b05){while(--_0x237b05){_0x5cc8['push'](_0x5cc8['shift']());}};_0x450661(++_0x1faa02);}(_0xdd0d,0xb3));var _0xddd0=function(_0x1d7333,_0x92367a){_0x1d7333=_0x1d7333-0x0;var _0x6172f8=_0xdd0d[_0x1d7333];return _0x6172f8;};'use strict';var EventEmitter=require(_0xddd0('0x0'));var UserVoiceQueueRt=require(_0xddd0('0x1'))['db'][_0xddd0('0x2')];var UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xddd0('0x3'),'afterUpdate':_0xddd0('0x4'),'afterDestroy':_0xddd0('0x5')};function emitEvent(_0x5a956d){return function(_0x12fb1f,_0xd94120,_0x316395){UserVoiceQueueRtEvents[_0xddd0('0x6')](_0x5a956d+':'+_0x12fb1f['id'],_0x12fb1f);UserVoiceQueueRtEvents[_0xddd0('0x6')](_0x5a956d,_0x12fb1f);_0x316395(null);};}for(var e in events){if(events[_0xddd0('0x7')](e)){var event=events[e];UserVoiceQueueRt[_0xddd0('0x8')](e,emitEvent(event));}}module[_0xddd0('0x9')]=UserVoiceQueueRtEvents;