Built motion from commit (unavailable).|2.3.93
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.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 _0x499f=['../../mysqldb','setMaxListeners','save','update','emit','exports','events'];(function(_0x10677c,_0x57bd1d){var _0x3e6748=function(_0xb4a6e5){while(--_0xb4a6e5){_0x10677c['push'](_0x10677c['shift']());}};_0x3e6748(++_0x57bd1d);}(_0x499f,0x102));var _0xf499=function(_0x618414,_0x1a7a60){_0x618414=_0x618414-0x0;var _0x21c19a=_0x499f[_0x618414];return _0x21c19a;};'use strict';var EventEmitter=require(_0xf499('0x0'));var VoiceQueueReport=require(_0xf499('0x1'))['db']['VoiceQueueReport'];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0xf499('0x2')](0x0);var events={'afterCreate':_0xf499('0x3'),'afterUpdate':_0xf499('0x4'),'afterDestroy':'remove'};function emitEvent(_0x28bd4c){return function(_0x4d17f5,_0x290d90,_0x40342f){VoiceQueueReportEvents['emit'](_0x28bd4c+':'+_0x4d17f5['id'],_0x4d17f5);VoiceQueueReportEvents[_0xf499('0x5')](_0x28bd4c,_0x4d17f5);_0x40342f(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueueReport['hook'](e,emitEvent(event));}}module[_0xf499('0x6')]=VoiceQueueReportEvents;