3a06e654d88e743c746984779dbe95758613b0c2
[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 _0x722b=['update','emit','removeListener','register','length','./voiceQueueReport.events','save','remove'];(function(_0x4bbc9f,_0x3bc3c0){var _0x575b0c=function(_0x3b9371){while(--_0x3b9371){_0x4bbc9f['push'](_0x4bbc9f['shift']());}};_0x575b0c(++_0x3bc3c0);}(_0x722b,0xed));var _0xb722=function(_0x4e2d9a,_0x46cc34){_0x4e2d9a=_0x4e2d9a-0x0;var _0x11540c=_0x722b[_0x4e2d9a];return _0x11540c;};'use strict';var VoiceQueueReportEvents=require(_0xb722('0x0'));var events=[_0xb722('0x1'),_0xb722('0x2'),_0xb722('0x3')];function createListener(_0x3db013,_0xc6f870){return function(_0xb5a9){_0xc6f870[_0xb722('0x4')](_0x3db013,_0xb5a9);};}function removeListener(_0x1b4f79,_0x341ed3){return function(){VoiceQueueReportEvents[_0xb722('0x5')](_0x1b4f79,_0x341ed3);};}exports[_0xb722('0x6')]=function(_0x4a0080){for(var _0x2d2f54=0x0,_0x51c2ee=events[_0xb722('0x7')];_0x2d2f54<_0x51c2ee;_0x2d2f54++){var _0x581cc1=events[_0x2d2f54];var _0x275394=createListener('voiceQueueReport:'+_0x581cc1,_0x4a0080);VoiceQueueReportEvents['on'](_0x581cc1,_0x275394);}};