a443f90b1fd02bb3711db98740748ee4b7bda3b4
[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 _0x44f6=['emit','length','voiceQueueReport:','./voiceQueueReport.events','save','remove','update'];(function(_0x2b0395,_0x1bef0c){var _0x2633fb=function(_0x9e5819){while(--_0x9e5819){_0x2b0395['push'](_0x2b0395['shift']());}};_0x2633fb(++_0x1bef0c);}(_0x44f6,0xa4));var _0x644f=function(_0x4480b9,_0x5c2949){_0x4480b9=_0x4480b9-0x0;var _0x3f0f02=_0x44f6[_0x4480b9];return _0x3f0f02;};'use strict';var VoiceQueueReportEvents=require(_0x644f('0x0'));var events=[_0x644f('0x1'),_0x644f('0x2'),_0x644f('0x3')];function createListener(_0x5f1c92,_0x483e79){return function(_0x3715c3){_0x483e79[_0x644f('0x4')](_0x5f1c92,_0x3715c3);};}function removeListener(_0x1045bd,_0x3e95c7){return function(){VoiceQueueReportEvents['removeListener'](_0x1045bd,_0x3e95c7);};}exports['register']=function(_0x1839b8){for(var _0xb6b9b5=0x0,_0x353dae=events[_0x644f('0x5')];_0xb6b9b5<_0x353dae;_0xb6b9b5++){var _0x1c79ce=events[_0xb6b9b5];var _0x204c12=createListener(_0x644f('0x6')+_0x1c79ce,_0x1839b8);VoiceQueueReportEvents['on'](_0x1c79ce,_0x204c12);}};