Built motion from commit (unavailable).|2.4.4
[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 _0x88f2=['VoiceQueueReport','setMaxListeners','save','update','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb'];(function(_0xfa4924,_0x2937c3){var _0x17ab03=function(_0x5027fa){while(--_0x5027fa){_0xfa4924['push'](_0xfa4924['shift']());}};_0x17ab03(++_0x2937c3);}(_0x88f2,0x1c1));var _0x288f=function(_0x1feda9,_0x24c1ea){_0x1feda9=_0x1feda9-0x0;var _0x2f7a0d=_0x88f2[_0x1feda9];return _0x2f7a0d;};'use strict';var EventEmitter=require(_0x288f('0x0'));var VoiceQueueReport=require(_0x288f('0x1'))['db'][_0x288f('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x288f('0x3')](0x0);var events={'afterCreate':_0x288f('0x4'),'afterUpdate':_0x288f('0x5'),'afterDestroy':_0x288f('0x6')};function emitEvent(_0x23248a){return function(_0x2750b7,_0x174387,_0x265aa9){VoiceQueueReportEvents[_0x288f('0x7')](_0x23248a+':'+_0x2750b7['id'],_0x2750b7);VoiceQueueReportEvents[_0x288f('0x7')](_0x23248a,_0x2750b7);_0x265aa9(null);};}for(var e in events){if(events[_0x288f('0x8')](e)){var event=events[e];VoiceQueueReport[_0x288f('0x9')](e,emitEvent(event));}}module[_0x288f('0xa')]=VoiceQueueReportEvents;