Built motion from commit (unavailable).|2.5.18
[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 _0x4cf7=['emit','removeListener','voiceQueueReport:','./voiceQueueReport.events','save','remove'];(function(_0x41edd8,_0x1258aa){var _0x76267d=function(_0x533185){while(--_0x533185){_0x41edd8['push'](_0x41edd8['shift']());}};_0x76267d(++_0x1258aa);}(_0x4cf7,0x12f));var _0x74cf=function(_0x169ccf,_0x3b5d92){_0x169ccf=_0x169ccf-0x0;var _0x3f6c27=_0x4cf7[_0x169ccf];return _0x3f6c27;};'use strict';var VoiceQueueReportEvents=require(_0x74cf('0x0'));var events=[_0x74cf('0x1'),_0x74cf('0x2'),'update'];function createListener(_0x417c57,_0x2145f5){return function(_0xf35b56){_0x2145f5[_0x74cf('0x3')](_0x417c57,_0xf35b56);};}function removeListener(_0x5942e3,_0x7ed5d2){return function(){VoiceQueueReportEvents[_0x74cf('0x4')](_0x5942e3,_0x7ed5d2);};}exports['register']=function(_0x23194d){for(var _0x53a576=0x0,_0x41e42a=events['length'];_0x53a576<_0x41e42a;_0x53a576++){var _0xe4a21f=events[_0x53a576];var _0x5dc56b=createListener(_0x74cf('0x5')+_0xe4a21f,_0x23194d);VoiceQueueReportEvents['on'](_0xe4a21f,_0x5dc56b);}};