ae60cc2ce646550d917b789a3cce23836613f1b2
[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 _0xcff4=['remove','update','emit','removeListener','register','voiceQueueReport:','./voiceQueueReport.events','save'];(function(_0x36d221,_0x268765){var _0x15cb44=function(_0x317c54){while(--_0x317c54){_0x36d221['push'](_0x36d221['shift']());}};_0x15cb44(++_0x268765);}(_0xcff4,0x11e));var _0x4cff=function(_0x29db36,_0x3c512f){_0x29db36=_0x29db36-0x0;var _0x71bd1f=_0xcff4[_0x29db36];return _0x71bd1f;};'use strict';var VoiceQueueReportEvents=require(_0x4cff('0x0'));var events=[_0x4cff('0x1'),_0x4cff('0x2'),_0x4cff('0x3')];function createListener(_0x3c4650,_0x627b49){return function(_0x59febf){_0x627b49[_0x4cff('0x4')](_0x3c4650,_0x59febf);};}function removeListener(_0x47a41f,_0x34a2f1){return function(){VoiceQueueReportEvents[_0x4cff('0x5')](_0x47a41f,_0x34a2f1);};}exports[_0x4cff('0x6')]=function(_0x46dfc1){for(var _0x355206=0x0,_0x3c486a=events['length'];_0x355206<_0x3c486a;_0x355206++){var _0x1af778=events[_0x355206];var _0x85a634=createListener(_0x4cff('0x7')+_0x1af778,_0x46dfc1);VoiceQueueReportEvents['on'](_0x1af778,_0x85a634);}};