Built motion from commit d1eab355.|2.6.28
[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 _0x02b1=['save','remove','update','removeListener','register','length','voiceQueueReport:','./voiceQueueReport.events'];(function(_0x1e3907,_0x5c4939){var _0x55d402=function(_0x5485e4){while(--_0x5485e4){_0x1e3907['push'](_0x1e3907['shift']());}};_0x55d402(++_0x5c4939);}(_0x02b1,0x7f));var _0x102b=function(_0x9aeb24,_0x14142a){_0x9aeb24=_0x9aeb24-0x0;var _0x57a1fc=_0x02b1[_0x9aeb24];return _0x57a1fc;};'use strict';var VoiceQueueReportEvents=require(_0x102b('0x0'));var events=[_0x102b('0x1'),_0x102b('0x2'),_0x102b('0x3')];function createListener(_0x29f8ad,_0x51c458){return function(_0x6a5cb8){_0x51c458['emit'](_0x29f8ad,_0x6a5cb8);};}function removeListener(_0x58abc3,_0x13ffce){return function(){VoiceQueueReportEvents[_0x102b('0x4')](_0x58abc3,_0x13ffce);};}exports[_0x102b('0x5')]=function(_0x779f1f){for(var _0x2cf25c=0x0,_0x5acb02=events[_0x102b('0x6')];_0x2cf25c<_0x5acb02;_0x2cf25c++){var _0xd105fb=events[_0x2cf25c];var _0x282f51=createListener(_0x102b('0x7')+_0xd105fb,_0x779f1f);VoiceQueueReportEvents['on'](_0xd105fb,_0x282f51);}};