54d3485932a6db7d8a33bde527be4a857ba8adc0
[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 _0x9fce=['./voiceQueueReport.events','save','remove','update','emit','removeListener','register','length','voiceQueueReport:'];(function(_0x3703a7,_0xb8f06e){var _0x129994=function(_0x1210a4){while(--_0x1210a4){_0x3703a7['push'](_0x3703a7['shift']());}};_0x129994(++_0xb8f06e);}(_0x9fce,0x99));var _0xe9fc=function(_0x55ef8b,_0x5deb5e){_0x55ef8b=_0x55ef8b-0x0;var _0x359c84=_0x9fce[_0x55ef8b];return _0x359c84;};'use strict';var VoiceQueueReportEvents=require(_0xe9fc('0x0'));var events=[_0xe9fc('0x1'),_0xe9fc('0x2'),_0xe9fc('0x3')];function createListener(_0xcd06ec,_0x1fd55f){return function(_0x419108){_0x1fd55f[_0xe9fc('0x4')](_0xcd06ec,_0x419108);};}function removeListener(_0x152208,_0xa6b640){return function(){VoiceQueueReportEvents[_0xe9fc('0x5')](_0x152208,_0xa6b640);};}exports[_0xe9fc('0x6')]=function(_0x3610d6){for(var _0x684c98=0x0,_0x5a4d6b=events[_0xe9fc('0x7')];_0x684c98<_0x5a4d6b;_0x684c98++){var _0x35aa38=events[_0x684c98];var _0x37be81=createListener(_0xe9fc('0x8')+_0x35aa38,_0x3610d6);VoiceQueueReportEvents['on'](_0x35aa38,_0x37be81);}};