bba1fd33414f6f3289add74e436269897ac97d6d
[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 _0x324f=['save','remove','update','emit'];(function(_0x39ab97,_0x500a33){var _0x3420a9=function(_0xbaeea9){while(--_0xbaeea9){_0x39ab97['push'](_0x39ab97['shift']());}};_0x3420a9(++_0x500a33);}(_0x324f,0x148));var _0xf324=function(_0x39db88,_0x40ad2a){_0x39db88=_0x39db88-0x0;var _0x1f7cfc=_0x324f[_0x39db88];return _0x1f7cfc;};'use strict';var VoiceQueueReportEvents=require('./voiceQueueReport.events');var events=[_0xf324('0x0'),_0xf324('0x1'),_0xf324('0x2')];function createListener(_0x33ee0f,_0x41d49){return function(_0x4da3e2){_0x41d49[_0xf324('0x3')](_0x33ee0f,_0x4da3e2);};}function removeListener(_0xb31368,_0x574822){return function(){VoiceQueueReportEvents['removeListener'](_0xb31368,_0x574822);};}exports['register']=function(_0xff4363){for(var _0x1bc551=0x0,_0x4e342d=events['length'];_0x1bc551<_0x4e342d;_0x1bc551++){var _0x115030=events[_0x1bc551];var _0x538da5=createListener('voiceQueueReport:'+_0x115030,_0xff4363);VoiceQueueReportEvents['on'](_0x115030,_0x538da5);}};