Built motion from commit (unavailable).|2.5.16
[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 _0xab2c=['hasOwnProperty','hook','exports','save','emit'];(function(_0x4b2436,_0x452299){var _0x4f5ab2=function(_0x5c6679){while(--_0x5c6679){_0x4b2436['push'](_0x4b2436['shift']());}};_0x4f5ab2(++_0x452299);}(_0xab2c,0x16b));var _0xcab2=function(_0x18e3a1,_0xd51faa){_0x18e3a1=_0x18e3a1-0x0;var _0x69b4a1=_0xab2c[_0x18e3a1];return _0x69b4a1;};'use strict';var EventEmitter=require('events');var VoiceQueueReport=require('../../mysqldb')['db']['VoiceQueueReport'];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xcab2('0x0'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0xb41bf7){return function(_0x26bbd5,_0xabc68c,_0x48183e){VoiceQueueReportEvents[_0xcab2('0x1')](_0xb41bf7+':'+_0x26bbd5['id'],_0x26bbd5);VoiceQueueReportEvents[_0xcab2('0x1')](_0xb41bf7,_0x26bbd5);_0x48183e(null);};}for(var e in events){if(events[_0xcab2('0x2')](e)){var event=events[e];VoiceQueueReport[_0xcab2('0x3')](e,emitEvent(event));}}module[_0xcab2('0x4')]=VoiceQueueReportEvents;