Built motion from commit e0fa946e.|2.6.5
[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 _0xf50a=['save','update','emit','removeListener','length'];(function(_0x1e1056,_0x2b4420){var _0x4bc0d3=function(_0x581b48){while(--_0x581b48){_0x1e1056['push'](_0x1e1056['shift']());}};_0x4bc0d3(++_0x2b4420);}(_0xf50a,0x1b8));var _0xaf50=function(_0xf852,_0x4ddd76){_0xf852=_0xf852-0x0;var _0x5b2550=_0xf50a[_0xf852];return _0x5b2550;};'use strict';var VoiceQueueReportEvents=require('./voiceQueueReport.events');var events=[_0xaf50('0x0'),'remove',_0xaf50('0x1')];function createListener(_0x50d2b3,_0x25c2a0){return function(_0x44ebdd){_0x25c2a0[_0xaf50('0x2')](_0x50d2b3,_0x44ebdd);};}function removeListener(_0x570778,_0x3db96b){return function(){VoiceQueueReportEvents[_0xaf50('0x3')](_0x570778,_0x3db96b);};}exports['register']=function(_0x6b142f){for(var _0x55abcd=0x0,_0x2b8805=events[_0xaf50('0x4')];_0x55abcd<_0x2b8805;_0x55abcd++){var _0x1d9247=events[_0x55abcd];var _0x28375f=createListener('voiceQueueReport:'+_0x1d9247,_0x6b142f);VoiceQueueReportEvents['on'](_0x1d9247,_0x28375f);}};