b070460062c3eaa7e43561f4d8d1d63ae7731aa4
[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 _0x4c60=['remove','update','removeListener','register','length','voiceQueueReport:','./voiceQueueReport.events','save'];(function(_0x3a2147,_0x536e69){var _0x158499=function(_0x2244e4){while(--_0x2244e4){_0x3a2147['push'](_0x3a2147['shift']());}};_0x158499(++_0x536e69);}(_0x4c60,0x166));var _0x04c6=function(_0x5b14f1,_0x258f25){_0x5b14f1=_0x5b14f1-0x0;var _0x225640=_0x4c60[_0x5b14f1];return _0x225640;};'use strict';var VoiceQueueReportEvents=require(_0x04c6('0x0'));var events=[_0x04c6('0x1'),_0x04c6('0x2'),_0x04c6('0x3')];function createListener(_0x4fa03c,_0xb730cc){return function(_0x59028f){_0xb730cc['emit'](_0x4fa03c,_0x59028f);};}function removeListener(_0xe2e1d7,_0xbfdbd0){return function(){VoiceQueueReportEvents[_0x04c6('0x4')](_0xe2e1d7,_0xbfdbd0);};}exports[_0x04c6('0x5')]=function(_0x59afa6){for(var _0x2c2365=0x0,_0x3d843f=events[_0x04c6('0x6')];_0x2c2365<_0x3d843f;_0x2c2365++){var _0x1d703e=events[_0x2c2365];var _0x2e124c=createListener(_0x04c6('0x7')+_0x1d703e,_0x59afa6);VoiceQueueReportEvents['on'](_0x1d703e,_0x2e124c);}};