ae61581236c81c19c641b46311a280d6b1632157
[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 _0xbf18=['emit','length','remove','update'];(function(_0x487496,_0x249683){var _0x539dc8=function(_0x2c38e1){while(--_0x2c38e1){_0x487496['push'](_0x487496['shift']());}};_0x539dc8(++_0x249683);}(_0xbf18,0xfa));var _0x8bf1=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xbf18[_0x3dd15e];return _0x231fd0;};'use strict';var VoiceQueueReportEvents=require('./voiceQueueReport.events');var events=['save',_0x8bf1('0x0'),_0x8bf1('0x1')];function createListener(_0x8d0b33,_0x232f1e){return function(_0x2cf5c1){_0x232f1e[_0x8bf1('0x2')](_0x8d0b33,_0x2cf5c1);};}function removeListener(_0x6337f5,_0x4d69f4){return function(){VoiceQueueReportEvents['removeListener'](_0x6337f5,_0x4d69f4);};}exports['register']=function(_0x39a737){for(var _0x420f67=0x0,_0xe16cb7=events[_0x8bf1('0x3')];_0x420f67<_0xe16cb7;_0x420f67++){var _0x47b4b0=events[_0x420f67];var _0x4a006d=createListener('voiceQueueReport:'+_0x47b4b0,_0x39a737);VoiceQueueReportEvents['on'](_0x47b4b0,_0x4a006d);}};