791807251de25d796945527784ef7462807d0249
[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 _0x2056=['update','emit','removeListener','length','voiceQueueReport:','remove'];(function(_0x15535b,_0x3274f1){var _0xb3b7b1=function(_0x54393f){while(--_0x54393f){_0x15535b['push'](_0x15535b['shift']());}};_0xb3b7b1(++_0x3274f1);}(_0x2056,0x107));var _0x6205=function(_0x4c6d19,_0x149f70){_0x4c6d19=_0x4c6d19-0x0;var _0x40b6c7=_0x2056[_0x4c6d19];return _0x40b6c7;};'use strict';var VoiceQueueReportEvents=require('./voiceQueueReport.events');var events=['save',_0x6205('0x0'),_0x6205('0x1')];function createListener(_0x1d6202,_0x3580a1){return function(_0x2198ce){_0x3580a1[_0x6205('0x2')](_0x1d6202,_0x2198ce);};}function removeListener(_0x2f3052,_0x89210b){return function(){VoiceQueueReportEvents[_0x6205('0x3')](_0x2f3052,_0x89210b);};}exports['register']=function(_0x45afa8){for(var _0x2c555d=0x0,_0x27eb28=events[_0x6205('0x4')];_0x2c555d<_0x27eb28;_0x2c555d++){var _0x271ffb=events[_0x2c555d];var _0x556d20=createListener(_0x6205('0x5')+_0x271ffb,_0x45afa8);VoiceQueueReportEvents['on'](_0x271ffb,_0x556d20);}};