1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xd2ea=['./chatQueue.events','save','remove','update','emit','removeListener','register','length','chatQueue:'];(function(_0x4bb3d1,_0x1a668a){var _0x247662=function(_0x26cd7c){while(--_0x26cd7c){_0x4bb3d1['push'](_0x4bb3d1['shift']());}};_0x247662(++_0x1a668a);}(_0xd2ea,0x15f));var _0xad2e=function(_0x3344f1,_0x54a676){_0x3344f1=_0x3344f1-0x0;var _0x50a21c=_0xd2ea[_0x3344f1];return _0x50a21c;};'use strict';var ChatQueueEvents=require(_0xad2e('0x0'));var events=[_0xad2e('0x1'),_0xad2e('0x2'),_0xad2e('0x3')];function createListener(_0x44b30d,_0x5c9fa9){return function(_0x3a9d11){_0x5c9fa9[_0xad2e('0x4')](_0x44b30d,_0x3a9d11);};}function removeListener(_0xcba7cb,_0x3e0741){return function(){ChatQueueEvents[_0xad2e('0x5')](_0xcba7cb,_0x3e0741);};}exports[_0xad2e('0x6')]=function(_0x29e97f){for(var _0x592e8b=0x0,_0x3b5170=events[_0xad2e('0x7')];_0x592e8b<_0x3b5170;_0x592e8b++){var _0x2ff7b2=events[_0x592e8b];var _0x5710ac=createListener(_0xad2e('0x8')+_0x2ff7b2,_0x29e97f);ChatQueueEvents['on'](_0x2ff7b2,_0x5710ac);}};