Built motion from commit da617fac.|2.6.6
[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 _0x0eab=['save','remove','update','emit','register','length','./voiceQueueReport.events'];(function(_0x29d790,_0x515357){var _0x8dbe34=function(_0x153f8f){while(--_0x153f8f){_0x29d790['push'](_0x29d790['shift']());}};_0x8dbe34(++_0x515357);}(_0x0eab,0x1d4));var _0xb0ea=function(_0x4a935f,_0x4bee96){_0x4a935f=_0x4a935f-0x0;var _0x490e1b=_0x0eab[_0x4a935f];return _0x490e1b;};'use strict';var VoiceQueueReportEvents=require(_0xb0ea('0x0'));var events=[_0xb0ea('0x1'),_0xb0ea('0x2'),_0xb0ea('0x3')];function createListener(_0x419942,_0x32fc0f){return function(_0x2b4b1c){_0x32fc0f[_0xb0ea('0x4')](_0x419942,_0x2b4b1c);};}function removeListener(_0x24a827,_0x663143){return function(){VoiceQueueReportEvents['removeListener'](_0x24a827,_0x663143);};}exports[_0xb0ea('0x5')]=function(_0x721c00){for(var _0x251758=0x0,_0x136b87=events[_0xb0ea('0x6')];_0x251758<_0x136b87;_0x251758++){var _0x5d3174=events[_0x251758];var _0x1d045f=createListener('voiceQueueReport:'+_0x5d3174,_0x721c00);VoiceQueueReportEvents['on'](_0x5d3174,_0x1d045f);}};