6a8dd3cc613878cc70829807a9e781fb8cf663f2
[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 _0xef72=['length','voiceQueueReport:','./voiceQueueReport.events','save','remove','removeListener'];(function(_0x488ca1,_0xf6858e){var _0x4dd0a4=function(_0x40fb65){while(--_0x40fb65){_0x488ca1['push'](_0x488ca1['shift']());}};_0x4dd0a4(++_0xf6858e);}(_0xef72,0xf8));var _0x2ef7=function(_0x4d62f8,_0x260377){_0x4d62f8=_0x4d62f8-0x0;var _0x11fd22=_0xef72[_0x4d62f8];return _0x11fd22;};'use strict';var VoiceQueueReportEvents=require(_0x2ef7('0x0'));var events=[_0x2ef7('0x1'),_0x2ef7('0x2'),'update'];function createListener(_0x4cbda5,_0x52afb2){return function(_0x3cd266){_0x52afb2['emit'](_0x4cbda5,_0x3cd266);};}function removeListener(_0x1ceba3,_0x473662){return function(){VoiceQueueReportEvents[_0x2ef7('0x3')](_0x1ceba3,_0x473662);};}exports['register']=function(_0x12ce1b){for(var _0x4ff788=0x0,_0x2186f4=events[_0x2ef7('0x4')];_0x4ff788<_0x2186f4;_0x4ff788++){var _0x113d5f=events[_0x4ff788];var _0x46c61c=createListener(_0x2ef7('0x5')+_0x113d5f,_0x12ce1b);VoiceQueueReportEvents['on'](_0x113d5f,_0x46c61c);}};