Built motion from commit 092f8824.|2.5.49
[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 _0xab58=['setMaxListeners','save','update','remove','emit','hasOwnProperty','hook','exports','../../mysqldb','VoiceQueueReport'];(function(_0x52668b,_0x584327){var _0x483949=function(_0x2d76e9){while(--_0x2d76e9){_0x52668b['push'](_0x52668b['shift']());}};_0x483949(++_0x584327);}(_0xab58,0x17a));var _0x8ab5=function(_0x5d9ec0,_0x388511){_0x5d9ec0=_0x5d9ec0-0x0;var _0xaa5e6f=_0xab58[_0x5d9ec0];return _0xaa5e6f;};'use strict';var EventEmitter=require('events');var VoiceQueueReport=require(_0x8ab5('0x0'))['db'][_0x8ab5('0x1')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x8ab5('0x2')](0x0);var events={'afterCreate':_0x8ab5('0x3'),'afterUpdate':_0x8ab5('0x4'),'afterDestroy':_0x8ab5('0x5')};function emitEvent(_0x44f886){return function(_0xfcfed8,_0x4bbcc5,_0x39e676){VoiceQueueReportEvents[_0x8ab5('0x6')](_0x44f886+':'+_0xfcfed8['id'],_0xfcfed8);VoiceQueueReportEvents[_0x8ab5('0x6')](_0x44f886,_0xfcfed8);_0x39e676(null);};}for(var e in events){if(events[_0x8ab5('0x7')](e)){var event=events[e];VoiceQueueReport[_0x8ab5('0x8')](e,emitEvent(event));}}module[_0x8ab5('0x9')]=VoiceQueueReportEvents;