f70bd3876030c533e131d21c083bada837af4d1f
[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 _0x56e7=['emit','removeListener','length','save','remove'];(function(_0x4f3f41,_0x6e7329){var _0x5a48e6=function(_0x5de1c4){while(--_0x5de1c4){_0x4f3f41['push'](_0x4f3f41['shift']());}};_0x5a48e6(++_0x6e7329);}(_0x56e7,0x7b));var _0x756e=function(_0x337449,_0x783e2f){_0x337449=_0x337449-0x0;var _0xed97ef=_0x56e7[_0x337449];return _0xed97ef;};'use strict';var VoiceQueueReportEvents=require('./voiceQueueReport.events');var events=[_0x756e('0x0'),_0x756e('0x1'),'update'];function createListener(_0x2eadee,_0x3efe5c){return function(_0x46a672){_0x3efe5c[_0x756e('0x2')](_0x2eadee,_0x46a672);};}function removeListener(_0x11ce5f,_0x38546a){return function(){VoiceQueueReportEvents[_0x756e('0x3')](_0x11ce5f,_0x38546a);};}exports['register']=function(_0x3b3b8f){for(var _0x404189=0x0,_0x26519d=events[_0x756e('0x4')];_0x404189<_0x26519d;_0x404189++){var _0x5c8589=events[_0x404189];var _0x1c6a22=createListener('voiceQueueReport:'+_0x5c8589,_0x3b3b8f);VoiceQueueReportEvents['on'](_0x5c8589,_0x1c6a22);}};