4e63e53db4a3881ffa82c1129b53c81ca0f9b32a
[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 _0xdb7f=['register','length','./voiceQueueReport.events','remove','update','removeListener'];(function(_0x50235d,_0x328753){var _0x1ede7d=function(_0x1f7b76){while(--_0x1f7b76){_0x50235d['push'](_0x50235d['shift']());}};_0x1ede7d(++_0x328753);}(_0xdb7f,0x6e));var _0xfdb7=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0xdb7f[_0x4565bf];return _0x5610ba;};'use strict';var VoiceQueueReportEvents=require(_0xfdb7('0x0'));var events=['save',_0xfdb7('0x1'),_0xfdb7('0x2')];function createListener(_0x288165,_0x240010){return function(_0x5840d0){_0x240010['emit'](_0x288165,_0x5840d0);};}function removeListener(_0x575836,_0x417a6e){return function(){VoiceQueueReportEvents[_0xfdb7('0x3')](_0x575836,_0x417a6e);};}exports[_0xfdb7('0x4')]=function(_0x5d927f){for(var _0x478dd7=0x0,_0x2de74b=events[_0xfdb7('0x5')];_0x478dd7<_0x2de74b;_0x478dd7++){var _0x1b29b2=events[_0x478dd7];var _0x3924cb=createListener('voiceQueueReport:'+_0x1b29b2,_0x5d927f);VoiceQueueReportEvents['on'](_0x1b29b2,_0x3924cb);}};