2f1aab30747d98b4b0904700632518ff6c97712b
[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 _0x444a=['emit','register','length','voiceQueueReport:','./voiceQueueReport.events','remove','update'];(function(_0x4a8361,_0x5bce27){var _0x7c7641=function(_0x10e7d4){while(--_0x10e7d4){_0x4a8361['push'](_0x4a8361['shift']());}};_0x7c7641(++_0x5bce27);}(_0x444a,0x170));var _0xa444=function(_0x4a2718,_0x2b8edb){_0x4a2718=_0x4a2718-0x0;var _0x41cddf=_0x444a[_0x4a2718];return _0x41cddf;};'use strict';var VoiceQueueReportEvents=require(_0xa444('0x0'));var events=['save',_0xa444('0x1'),_0xa444('0x2')];function createListener(_0xb8db2e,_0x242673){return function(_0xc3acef){_0x242673[_0xa444('0x3')](_0xb8db2e,_0xc3acef);};}function removeListener(_0x5a3426,_0x30b1e8){return function(){VoiceQueueReportEvents['removeListener'](_0x5a3426,_0x30b1e8);};}exports[_0xa444('0x4')]=function(_0x5e66c2){for(var _0x295b09=0x0,_0x1782e4=events[_0xa444('0x5')];_0x295b09<_0x1782e4;_0x295b09++){var _0x136a95=events[_0x295b09];var _0x56b735=createListener(_0xa444('0x6')+_0x136a95,_0x5e66c2);VoiceQueueReportEvents['on'](_0x136a95,_0x56b735);}};