d07e4bb769149719a769de020fc828826cae91bf
[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 _0x94aa=['voiceQueueReport:','./voiceQueueReport.events','emit','removeListener','register'];(function(_0x1d2437,_0x5ed10e){var _0x5a6941=function(_0xfd2c58){while(--_0xfd2c58){_0x1d2437['push'](_0x1d2437['shift']());}};_0x5a6941(++_0x5ed10e);}(_0x94aa,0x65));var _0xa94a=function(_0x171ae3,_0x2fbde6){_0x171ae3=_0x171ae3-0x0;var _0x4f2337=_0x94aa[_0x171ae3];return _0x4f2337;};'use strict';var VoiceQueueReportEvents=require(_0xa94a('0x0'));var events=['save','remove','update'];function createListener(_0x16d042,_0x28fe51){return function(_0x8fd7f2){_0x28fe51[_0xa94a('0x1')](_0x16d042,_0x8fd7f2);};}function removeListener(_0x28a625,_0x4bcf6b){return function(){VoiceQueueReportEvents[_0xa94a('0x2')](_0x28a625,_0x4bcf6b);};}exports[_0xa94a('0x3')]=function(_0x3ed81e){for(var _0x549948=0x0,_0x514dff=events['length'];_0x549948<_0x514dff;_0x549948++){var _0x4dc20f=events[_0x549948];var _0x5d65c3=createListener(_0xa94a('0x4')+_0x4dc20f,_0x3ed81e);VoiceQueueReportEvents['on'](_0x4dc20f,_0x5d65c3);}};