Built motion from commit (unavailable).|2.5.31
[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 _0xf9b8=['../../mysqldb','VoiceQueueReport','save','update','remove','emit','hasOwnProperty','events'];(function(_0x381927,_0x684dab){var _0x5f2835=function(_0x436dfb){while(--_0x436dfb){_0x381927['push'](_0x381927['shift']());}};_0x5f2835(++_0x684dab);}(_0xf9b8,0x177));var _0x8f9b=function(_0x3708cc,_0x223b49){_0x3708cc=_0x3708cc-0x0;var _0xea9418=_0xf9b8[_0x3708cc];return _0xea9418;};'use strict';var EventEmitter=require(_0x8f9b('0x0'));var VoiceQueueReport=require(_0x8f9b('0x1'))['db'][_0x8f9b('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x8f9b('0x3'),'afterUpdate':_0x8f9b('0x4'),'afterDestroy':_0x8f9b('0x5')};function emitEvent(_0x21ded5){return function(_0x3caa97,_0x3417d,_0xd9f118){VoiceQueueReportEvents[_0x8f9b('0x6')](_0x21ded5+':'+_0x3caa97['id'],_0x3caa97);VoiceQueueReportEvents[_0x8f9b('0x6')](_0x21ded5,_0x3caa97);_0xd9f118(null);};}for(var e in events){if(events[_0x8f9b('0x7')](e)){var event=events[e];VoiceQueueReport['hook'](e,emitEvent(event));}}module['exports']=VoiceQueueReportEvents;