Built motion from commit (unavailable).|2.5.26
[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 _0x4b89=['register','length','./voiceQueueReport.events','save','remove','emit','removeListener'];(function(_0xa6f90c,_0x1d315b){var _0x2b19c8=function(_0x4817be){while(--_0x4817be){_0xa6f90c['push'](_0xa6f90c['shift']());}};_0x2b19c8(++_0x1d315b);}(_0x4b89,0x167));var _0x94b8=function(_0x2389bc,_0x167cd2){_0x2389bc=_0x2389bc-0x0;var _0x170548=_0x4b89[_0x2389bc];return _0x170548;};'use strict';var VoiceQueueReportEvents=require(_0x94b8('0x0'));var events=[_0x94b8('0x1'),_0x94b8('0x2'),'update'];function createListener(_0x4400e4,_0x5102af){return function(_0x3459d1){_0x5102af[_0x94b8('0x3')](_0x4400e4,_0x3459d1);};}function removeListener(_0x480176,_0x2c9db7){return function(){VoiceQueueReportEvents[_0x94b8('0x4')](_0x480176,_0x2c9db7);};}exports[_0x94b8('0x5')]=function(_0x1447c6){for(var _0x28b6ad=0x0,_0x5b1112=events[_0x94b8('0x6')];_0x28b6ad<_0x5b1112;_0x28b6ad++){var _0x32a154=events[_0x28b6ad];var _0x342d67=createListener('voiceQueueReport:'+_0x32a154,_0x1447c6);VoiceQueueReportEvents['on'](_0x32a154,_0x342d67);}};