Built motion from commit d5e4af8c.|2.6.23
[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 _0x3e03=['emit','removeListener','register','length','voiceQueueReport:','./voiceQueueReport.events','save'];(function(_0x4b075e,_0x57874c){var _0x31385c=function(_0x3ab6ef){while(--_0x3ab6ef){_0x4b075e['push'](_0x4b075e['shift']());}};_0x31385c(++_0x57874c);}(_0x3e03,0xc2));var _0x33e0=function(_0x381379,_0x3f3b86){_0x381379=_0x381379-0x0;var _0x3e1063=_0x3e03[_0x381379];return _0x3e1063;};'use strict';var VoiceQueueReportEvents=require(_0x33e0('0x0'));var events=[_0x33e0('0x1'),'remove','update'];function createListener(_0x5a3614,_0x4837d6){return function(_0x5324e5){_0x4837d6[_0x33e0('0x2')](_0x5a3614,_0x5324e5);};}function removeListener(_0x5acfab,_0x221365){return function(){VoiceQueueReportEvents[_0x33e0('0x3')](_0x5acfab,_0x221365);};}exports[_0x33e0('0x4')]=function(_0x36609d){for(var _0x42a979=0x0,_0x558408=events[_0x33e0('0x5')];_0x42a979<_0x558408;_0x42a979++){var _0x577f2a=events[_0x42a979];var _0x2d0a79=createListener(_0x33e0('0x6')+_0x577f2a,_0x36609d);VoiceQueueReportEvents['on'](_0x577f2a,_0x2d0a79);}};