Built motion from commit b58257bb.|2.5.37
[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 _0xcfeb=['length','voiceQueueReport:','./voiceQueueReport.events','save','remove','update','emit','register'];(function(_0x1e3c0e,_0x4aa31f){var _0x1b7fb7=function(_0x3c31d7){while(--_0x3c31d7){_0x1e3c0e['push'](_0x1e3c0e['shift']());}};_0x1b7fb7(++_0x4aa31f);}(_0xcfeb,0x1b2));var _0xbcfe=function(_0x2f0d47,_0x3d48eb){_0x2f0d47=_0x2f0d47-0x0;var _0x5c52f3=_0xcfeb[_0x2f0d47];return _0x5c52f3;};'use strict';var VoiceQueueReportEvents=require(_0xbcfe('0x0'));var events=[_0xbcfe('0x1'),_0xbcfe('0x2'),_0xbcfe('0x3')];function createListener(_0x4e0dc9,_0x5e2e1c){return function(_0x264f6a){_0x5e2e1c[_0xbcfe('0x4')](_0x4e0dc9,_0x264f6a);};}function removeListener(_0x3c6522,_0x562b14){return function(){VoiceQueueReportEvents['removeListener'](_0x3c6522,_0x562b14);};}exports[_0xbcfe('0x5')]=function(_0x3de8ae){for(var _0x351b20=0x0,_0x24743b=events[_0xbcfe('0x6')];_0x351b20<_0x24743b;_0x351b20++){var _0x586e64=events[_0x351b20];var _0x43af4c=createListener(_0xbcfe('0x7')+_0x586e64,_0x3de8ae);VoiceQueueReportEvents['on'](_0x586e64,_0x43af4c);}};