Built motion from commit (unavailable).|2.5.3
[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 _0xfbe0=['remove','emit','hook','exports','../../mysqldb','VoiceQueueReport','setMaxListeners','update'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xfbe0,0x13c));var _0x0fbe=function(_0x598613,_0x360c2d){_0x598613=_0x598613-0x0;var _0x236f33=_0xfbe0[_0x598613];return _0x236f33;};'use strict';var EventEmitter=require('events');var VoiceQueueReport=require(_0x0fbe('0x0'))['db'][_0x0fbe('0x1')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x0fbe('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':_0x0fbe('0x3'),'afterDestroy':_0x0fbe('0x4')};function emitEvent(_0x1a3894){return function(_0x59dc1d,_0x54dcab,_0x312646){VoiceQueueReportEvents[_0x0fbe('0x5')](_0x1a3894+':'+_0x59dc1d['id'],_0x59dc1d);VoiceQueueReportEvents[_0x0fbe('0x5')](_0x1a3894,_0x59dc1d);_0x312646(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueueReport[_0x0fbe('0x6')](e,emitEvent(event));}}module[_0x0fbe('0x7')]=VoiceQueueReportEvents;