Built motion from commit (unavailable).|2.4.18
[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 _0x25e1=['save','update','emit','hasOwnProperty','exports','events','../../mysqldb','VoiceQueueReport'];(function(_0x5c0ddc,_0x410c88){var _0x38c7c1=function(_0x25649d){while(--_0x25649d){_0x5c0ddc['push'](_0x5c0ddc['shift']());}};_0x38c7c1(++_0x410c88);}(_0x25e1,0x125));var _0x125e=function(_0x9c53cf,_0x566c6f){_0x9c53cf=_0x9c53cf-0x0;var _0x97873c=_0x25e1[_0x9c53cf];return _0x97873c;};'use strict';var EventEmitter=require(_0x125e('0x0'));var VoiceQueueReport=require(_0x125e('0x1'))['db'][_0x125e('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x125e('0x3'),'afterUpdate':_0x125e('0x4'),'afterDestroy':'remove'};function emitEvent(_0x3559fb){return function(_0x1d1438,_0x2dd992,_0xb22aa6){VoiceQueueReportEvents[_0x125e('0x5')](_0x3559fb+':'+_0x1d1438['id'],_0x1d1438);VoiceQueueReportEvents[_0x125e('0x5')](_0x3559fb,_0x1d1438);_0xb22aa6(null);};}for(var e in events){if(events[_0x125e('0x6')](e)){var event=events[e];VoiceQueueReport['hook'](e,emitEvent(event));}}module[_0x125e('0x7')]=VoiceQueueReportEvents;