542f7008626143084c24b82824429d4e197a7bed
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.socket.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 _0xd405=['voiceQueueReport:','emit','removeListener','register','length'];(function(_0x1e6511,_0x59dc0e){var _0x3013a2=function(_0x5011db){while(--_0x5011db){_0x1e6511['push'](_0x1e6511['shift']());}};_0x3013a2(++_0x59dc0e);}(_0xd405,0x1d2));var _0x5d40=function(_0x223c0d,_0x3ec04d){_0x223c0d=_0x223c0d-0x0;var _0x207827=_0xd405[_0x223c0d];return _0x207827;};'use strict';var VoiceQueueReportEvents=require('./voiceQueueReport.events');var events=['save','remove','update'];function createListener(_0x21301a,_0x1c3258){return function(_0x3424a4){_0x1c3258[_0x5d40('0x0')](_0x21301a,_0x3424a4);};}function removeListener(_0x3d9938,_0x908b27){return function(){VoiceQueueReportEvents[_0x5d40('0x1')](_0x3d9938,_0x908b27);};}exports[_0x5d40('0x2')]=function(_0x4cf6e4){for(var _0x2aefdc=0x0,_0x49fc37=events[_0x5d40('0x3')];_0x2aefdc<_0x49fc37;_0x2aefdc++){var _0x18e63f=events[_0x2aefdc];var _0x15088c=createListener(_0x5d40('0x4')+_0x18e63f,_0x4cf6e4);VoiceQueueReportEvents['on'](_0x18e63f,_0x15088c);}};