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 _0x8ee8=['hook','exports','../../mysqldb','VoiceQueueReport','setMaxListeners','update','remove','emit','hasOwnProperty'];(function(_0x4e7e2c,_0x44ec66){var _0x160310=function(_0x1bc4a8){while(--_0x1bc4a8){_0x4e7e2c['push'](_0x4e7e2c['shift']());}};_0x160310(++_0x44ec66);}(_0x8ee8,0x173));var _0x88ee=function(_0x408758,_0x548c1f){_0x408758=_0x408758-0x0;var _0x2e25ae=_0x8ee8[_0x408758];return _0x2e25ae;};'use strict';var EventEmitter=require('events');var VoiceQueueReport=require(_0x88ee('0x0'))['db'][_0x88ee('0x1')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x88ee('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':_0x88ee('0x3'),'afterDestroy':_0x88ee('0x4')};function emitEvent(_0x24ad47){return function(_0xa9caaf,_0x454bd0,_0x553e42){VoiceQueueReportEvents[_0x88ee('0x5')](_0x24ad47+':'+_0xa9caaf['id'],_0xa9caaf);VoiceQueueReportEvents[_0x88ee('0x5')](_0x24ad47,_0xa9caaf);_0x553e42(null);};}for(var e in events){if(events[_0x88ee('0x6')](e)){var event=events[e];VoiceQueueReport[_0x88ee('0x7')](e,emitEvent(event));}}module[_0x88ee('0x8')]=VoiceQueueReportEvents;