66dba2dd5074c62737d8022bd0ff68f97807762f
[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 _0x7b4c=['voiceQueueReport:','save','remove','emit','register'];(function(_0x155096,_0x1c63c3){var _0x266965=function(_0x6a070f){while(--_0x6a070f){_0x155096['push'](_0x155096['shift']());}};_0x266965(++_0x1c63c3);}(_0x7b4c,0x1dc));var _0xc7b4=function(_0x36071b,_0x32d0cc){_0x36071b=_0x36071b-0x0;var _0x3ae7eb=_0x7b4c[_0x36071b];return _0x3ae7eb;};'use strict';var VoiceQueueReportEvents=require('./voiceQueueReport.events');var events=[_0xc7b4('0x0'),_0xc7b4('0x1'),'update'];function createListener(_0x41fed5,_0x1748aa){return function(_0x18f913){_0x1748aa[_0xc7b4('0x2')](_0x41fed5,_0x18f913);};}function removeListener(_0x2aecfb,_0x29799e){return function(){VoiceQueueReportEvents['removeListener'](_0x2aecfb,_0x29799e);};}exports[_0xc7b4('0x3')]=function(_0x2ba472){for(var _0x28daa6=0x0,_0x3283fd=events['length'];_0x28daa6<_0x3283fd;_0x28daa6++){var _0x22be2f=events[_0x28daa6];var _0x5b498c=createListener(_0xc7b4('0x4')+_0x22be2f,_0x2ba472);VoiceQueueReportEvents['on'](_0x22be2f,_0x5b498c);}};