Built motion from commit (unavailable).|2.5.6
[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 _0x3e07=['setMaxListeners','save','update','remove','emit','hasOwnProperty','hook','events','../../mysqldb','UserVoiceQueueRt'];(function(_0x4f7987,_0x3af1f3){var _0x1becb2=function(_0x541562){while(--_0x541562){_0x4f7987['push'](_0x4f7987['shift']());}};_0x1becb2(++_0x3af1f3);}(_0x3e07,0x7f));var _0x73e0=function(_0x7162ba,_0x44d30f){_0x7162ba=_0x7162ba-0x0;var _0x6526a0=_0x3e07[_0x7162ba];return _0x6526a0;};'use strict';var EventEmitter=require(_0x73e0('0x0'));var UserVoiceQueueRt=require(_0x73e0('0x1'))['db'][_0x73e0('0x2')];var UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents[_0x73e0('0x3')](0x0);var events={'afterCreate':_0x73e0('0x4'),'afterUpdate':_0x73e0('0x5'),'afterDestroy':_0x73e0('0x6')};function emitEvent(_0x2bb82c){return function(_0x3e7e3d,_0x31b9bf,_0x16f8e3){UserVoiceQueueRtEvents[_0x73e0('0x7')](_0x2bb82c+':'+_0x3e7e3d['id'],_0x3e7e3d);UserVoiceQueueRtEvents[_0x73e0('0x7')](_0x2bb82c,_0x3e7e3d);_0x16f8e3(null);};}for(var e in events){if(events[_0x73e0('0x8')](e)){var event=events[e];UserVoiceQueueRt[_0x73e0('0x9')](e,emitEvent(event));}}module['exports']=UserVoiceQueueRtEvents;