5d2d964c22e1d8674f2199a0db57a3504098d5e1
[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(_0x19d24c,_0x62bc50){var _0x2fae8d=function(_0x419856){while(--_0x419856){_0x19d24c['push'](_0x19d24c['shift']());}};_0x2fae8d(++_0x62bc50);}(_0xbf18,0xfa));var _0x8bf1=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xbf18[_0x14add3];return _0x4a174f;};'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);}};