1b6546acfadeb81ccf309b46b6c473974921ee2f
[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 _0xea03=['update','removeListener','register','voiceQueueReport:','./voiceQueueReport.events','remove'];(function(_0x32163b,_0x40f526){var _0x3103c1=function(_0x50eecc){while(--_0x50eecc){_0x32163b['push'](_0x32163b['shift']());}};_0x3103c1(++_0x40f526);}(_0xea03,0x1ba));var _0x3ea0=function(_0x16b51e,_0x30cb17){_0x16b51e=_0x16b51e-0x0;var _0x27b91a=_0xea03[_0x16b51e];return _0x27b91a;};'use strict';var VoiceQueueReportEvents=require(_0x3ea0('0x0'));var events=['save',_0x3ea0('0x1'),_0x3ea0('0x2')];function createListener(_0x438baa,_0x36b291){return function(_0x250977){_0x36b291['emit'](_0x438baa,_0x250977);};}function removeListener(_0x4d62ed,_0x531f4a){return function(){VoiceQueueReportEvents[_0x3ea0('0x3')](_0x4d62ed,_0x531f4a);};}exports[_0x3ea0('0x4')]=function(_0x266966){for(var _0xed8a4b=0x0,_0x2be1c5=events['length'];_0xed8a4b<_0x2be1c5;_0xed8a4b++){var _0x128556=events[_0xed8a4b];var _0x13b5ab=createListener(_0x3ea0('0x5')+_0x128556,_0x266966);VoiceQueueReportEvents['on'](_0x128556,_0x13b5ab);}};