Built motion from commit 25580385.|2.6.2
[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 _0xfd0f=['save','update','emit','removeListener','register','length','./voiceQueueReport.events'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0xfd0f,0x1b8));var _0xffd0=function(_0x475bbc,_0x10cda2){_0x475bbc=_0x475bbc-0x0;var _0x3300d8=_0xfd0f[_0x475bbc];return _0x3300d8;};'use strict';var VoiceQueueReportEvents=require(_0xffd0('0x0'));var events=[_0xffd0('0x1'),'remove',_0xffd0('0x2')];function createListener(_0x28aea8,_0xe1219f){return function(_0x4d3300){_0xe1219f[_0xffd0('0x3')](_0x28aea8,_0x4d3300);};}function removeListener(_0x5e9c0a,_0x303f38){return function(){VoiceQueueReportEvents[_0xffd0('0x4')](_0x5e9c0a,_0x303f38);};}exports[_0xffd0('0x5')]=function(_0x9e9c1f){for(var _0xd7f075=0x0,_0x1b64a5=events[_0xffd0('0x6')];_0xd7f075<_0x1b64a5;_0xd7f075++){var _0x3fcf31=events[_0xd7f075];var _0x55488d=createListener('voiceQueueReport:'+_0x3fcf31,_0x9e9c1f);VoiceQueueReportEvents['on'](_0x3fcf31,_0x55488d);}};