Built motion from commit (unavailable).|2.5.30
[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 _0x51c0=['emit','hook','exports','events','../../mysqldb','UserVoiceQueueRt','save','update','remove'];(function(_0x154a2b,_0x253064){var _0x3bdb5f=function(_0x1cfe46){while(--_0x1cfe46){_0x154a2b['push'](_0x154a2b['shift']());}};_0x3bdb5f(++_0x253064);}(_0x51c0,0x1a1));var _0x051c=function(_0x4c9183,_0x219cb7){_0x4c9183=_0x4c9183-0x0;var _0x27861f=_0x51c0[_0x4c9183];return _0x27861f;};'use strict';var EventEmitter=require(_0x051c('0x0'));var UserVoiceQueueRt=require(_0x051c('0x1'))['db'][_0x051c('0x2')];var UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x051c('0x3'),'afterUpdate':_0x051c('0x4'),'afterDestroy':_0x051c('0x5')};function emitEvent(_0xc176da){return function(_0x56f220,_0x3da28a,_0xc25942){UserVoiceQueueRtEvents[_0x051c('0x6')](_0xc176da+':'+_0x56f220['id'],_0x56f220);UserVoiceQueueRtEvents['emit'](_0xc176da,_0x56f220);_0xc25942(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];UserVoiceQueueRt[_0x051c('0x7')](e,emitEvent(event));}}module[_0x051c('0x8')]=UserVoiceQueueRtEvents;