Built motion from commit (unavailable).|2.5.0
[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 _0x3471=['voiceQueueReport:','./voiceQueueReport.events','save','update','emit','removeListener','length'];(function(_0x83b8ee,_0x2e97b0){var _0x26bf01=function(_0x571bbf){while(--_0x571bbf){_0x83b8ee['push'](_0x83b8ee['shift']());}};_0x26bf01(++_0x2e97b0);}(_0x3471,0x143));var _0x1347=function(_0x507661,_0x1564df){_0x507661=_0x507661-0x0;var _0x38fcc3=_0x3471[_0x507661];return _0x38fcc3;};'use strict';var VoiceQueueReportEvents=require(_0x1347('0x0'));var events=[_0x1347('0x1'),'remove',_0x1347('0x2')];function createListener(_0x2899ec,_0x5d7a68){return function(_0x5f3078){_0x5d7a68[_0x1347('0x3')](_0x2899ec,_0x5f3078);};}function removeListener(_0x487587,_0x26097e){return function(){VoiceQueueReportEvents[_0x1347('0x4')](_0x487587,_0x26097e);};}exports['register']=function(_0x1ad7d5){for(var _0x8ed533=0x0,_0x42e4dd=events[_0x1347('0x5')];_0x8ed533<_0x42e4dd;_0x8ed533++){var _0x1d1756=events[_0x8ed533];var _0x4965e1=createListener(_0x1347('0x6')+_0x1d1756,_0x1ad7d5);VoiceQueueReportEvents['on'](_0x1d1756,_0x4965e1);}};