Built motion from commit a679711e.|2.6.15
[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 _0xf9f6=['save','remove','emit','hasOwnProperty','exports','events','../../mysqldb','VoiceQueueReport'];(function(_0xec7a27,_0x47c037){var _0x85982a=function(_0x7cc5){while(--_0x7cc5){_0xec7a27['push'](_0xec7a27['shift']());}};_0x85982a(++_0x47c037);}(_0xf9f6,0xbd));var _0x6f9f=function(_0x297eea,_0x5060be){_0x297eea=_0x297eea-0x0;var _0x1c42d2=_0xf9f6[_0x297eea];return _0x1c42d2;};'use strict';var EventEmitter=require(_0x6f9f('0x0'));var VoiceQueueReport=require(_0x6f9f('0x1'))['db'][_0x6f9f('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x6f9f('0x3'),'afterUpdate':'update','afterDestroy':_0x6f9f('0x4')};function emitEvent(_0x17e927){return function(_0x23295f,_0x372a50,_0x217581){VoiceQueueReportEvents[_0x6f9f('0x5')](_0x17e927+':'+_0x23295f['id'],_0x23295f);VoiceQueueReportEvents[_0x6f9f('0x5')](_0x17e927,_0x23295f);_0x217581(null);};}for(var e in events){if(events[_0x6f9f('0x6')](e)){var event=events[e];VoiceQueueReport['hook'](e,emitEvent(event));}}module[_0x6f9f('0x7')]=VoiceQueueReportEvents;