Built motion from commit (unavailable).|2.5.8
[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 _0x3156=['setMaxListeners','update','emit','hook','exports','events','../../mysqldb','VoiceQueueReport'];(function(_0x1d66db,_0x3d82e9){var _0x809f6=function(_0x1ffa82){while(--_0x1ffa82){_0x1d66db['push'](_0x1d66db['shift']());}};_0x809f6(++_0x3d82e9);}(_0x3156,0x9d));var _0x6315=function(_0x5a6b67,_0x347dea){_0x5a6b67=_0x5a6b67-0x0;var _0x29ff38=_0x3156[_0x5a6b67];return _0x29ff38;};'use strict';var EventEmitter=require(_0x6315('0x0'));var VoiceQueueReport=require(_0x6315('0x1'))['db'][_0x6315('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x6315('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0x6315('0x4'),'afterDestroy':'remove'};function emitEvent(_0x525089){return function(_0x567ff0,_0x224bf6,_0x7d7316){VoiceQueueReportEvents[_0x6315('0x5')](_0x525089+':'+_0x567ff0['id'],_0x567ff0);VoiceQueueReportEvents[_0x6315('0x5')](_0x525089,_0x567ff0);_0x7d7316(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueueReport[_0x6315('0x6')](e,emitEvent(event));}}module[_0x6315('0x7')]=VoiceQueueReportEvents;