Built motion from commit 497d3d92.|2.5.43
[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 _0xa48b=['voiceQueueReport:','./voiceQueueReport.events','save','remove','removeListener'];(function(_0xe73080,_0x24c56d){var _0x12cbc4=function(_0x1377e2){while(--_0x1377e2){_0xe73080['push'](_0xe73080['shift']());}};_0x12cbc4(++_0x24c56d);}(_0xa48b,0xc4));var _0xba48=function(_0x127796,_0xd2a09b){_0x127796=_0x127796-0x0;var _0x2113eb=_0xa48b[_0x127796];return _0x2113eb;};'use strict';var VoiceQueueReportEvents=require(_0xba48('0x0'));var events=[_0xba48('0x1'),_0xba48('0x2'),'update'];function createListener(_0x4a0897,_0x1aace2){return function(_0x4945aa){_0x1aace2['emit'](_0x4a0897,_0x4945aa);};}function removeListener(_0x561d9c,_0x92c4cd){return function(){VoiceQueueReportEvents[_0xba48('0x3')](_0x561d9c,_0x92c4cd);};}exports['register']=function(_0x10c8c0){for(var _0x297568=0x0,_0x4f423b=events['length'];_0x297568<_0x4f423b;_0x297568++){var _0x3657a6=events[_0x297568];var _0x4b556a=createListener(_0xba48('0x4')+_0x3657a6,_0x10c8c0);VoiceQueueReportEvents['on'](_0x3657a6,_0x4b556a);}};