Built motion from commit (unavailable).|2.3.96
[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 _0x6cce=['setMaxListeners','update','remove','emit','hasOwnProperty','hook','events','../../mysqldb'];(function(_0x15b70d,_0x362789){var _0x2dc442=function(_0x43324e){while(--_0x43324e){_0x15b70d['push'](_0x15b70d['shift']());}};_0x2dc442(++_0x362789);}(_0x6cce,0x166));var _0xe6cc=function(_0x518b8f,_0x476de4){_0x518b8f=_0x518b8f-0x0;var _0x51cece=_0x6cce[_0x518b8f];return _0x51cece;};'use strict';var EventEmitter=require(_0xe6cc('0x0'));var VoiceQueueReport=require(_0xe6cc('0x1'))['db']['VoiceQueueReport'];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0xe6cc('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':_0xe6cc('0x3'),'afterDestroy':_0xe6cc('0x4')};function emitEvent(_0x28c956){return function(_0x547e56,_0x2992b3,_0x8e6b69){VoiceQueueReportEvents[_0xe6cc('0x5')](_0x28c956+':'+_0x547e56['id'],_0x547e56);VoiceQueueReportEvents[_0xe6cc('0x5')](_0x28c956,_0x547e56);_0x8e6b69(null);};}for(var e in events){if(events[_0xe6cc('0x6')](e)){var event=events[e];VoiceQueueReport[_0xe6cc('0x7')](e,emitEvent(event));}}module['exports']=VoiceQueueReportEvents;