Built motion from commit (unavailable).|2.5.14
[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 _0x1c14=['remove','emit','exports','events','save','update'];(function(_0xdd0313,_0x251c2b){var _0x2bd7e8=function(_0x340f1f){while(--_0x340f1f){_0xdd0313['push'](_0xdd0313['shift']());}};_0x2bd7e8(++_0x251c2b);}(_0x1c14,0x1d1));var _0x41c1=function(_0x3baa55,_0xa4eea9){_0x3baa55=_0x3baa55-0x0;var _0x5b532f=_0x1c14[_0x3baa55];return _0x5b532f;};'use strict';var EventEmitter=require(_0x41c1('0x0'));var VoiceQueueReport=require('../../mysqldb')['db']['VoiceQueueReport'];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x41c1('0x1'),'afterUpdate':_0x41c1('0x2'),'afterDestroy':_0x41c1('0x3')};function emitEvent(_0x55676d){return function(_0x492938,_0x234c4b,_0x3aa46d){VoiceQueueReportEvents[_0x41c1('0x4')](_0x55676d+':'+_0x492938['id'],_0x492938);VoiceQueueReportEvents[_0x41c1('0x4')](_0x55676d,_0x492938);_0x3aa46d(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueueReport['hook'](e,emitEvent(event));}}module[_0x41c1('0x5')]=VoiceQueueReportEvents;