Built motion from commit ab870f9e.|2.5.44
[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 _0xc903=['removeListener','length','voiceQueueReport:','./voiceQueueReport.events','remove','emit'];(function(_0x3cda78,_0x5672f0){var _0x5e4062=function(_0x217ae2){while(--_0x217ae2){_0x3cda78['push'](_0x3cda78['shift']());}};_0x5e4062(++_0x5672f0);}(_0xc903,0x177));var _0x3c90=function(_0x422be2,_0x1c439e){_0x422be2=_0x422be2-0x0;var _0x1b820e=_0xc903[_0x422be2];return _0x1b820e;};'use strict';var VoiceQueueReportEvents=require(_0x3c90('0x0'));var events=['save',_0x3c90('0x1'),'update'];function createListener(_0x51177e,_0x2554f5){return function(_0x539f79){_0x2554f5[_0x3c90('0x2')](_0x51177e,_0x539f79);};}function removeListener(_0x54545a,_0x1e9e2b){return function(){VoiceQueueReportEvents[_0x3c90('0x3')](_0x54545a,_0x1e9e2b);};}exports['register']=function(_0x3d9d9c){for(var _0x361068=0x0,_0x37f629=events[_0x3c90('0x4')];_0x361068<_0x37f629;_0x361068++){var _0x15c161=events[_0x361068];var _0x256f5f=createListener(_0x3c90('0x5')+_0x15c161,_0x3d9d9c);VoiceQueueReportEvents['on'](_0x15c161,_0x256f5f);}};