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 _0x77cc=['removeListener','register','length','chatGroup:','./chatGroup.events','save','remove','update','emit'];(function(_0x6cf19c,_0x2f3f02){var _0xce14f3=function(_0x474587){while(--_0x474587){_0x6cf19c['push'](_0x6cf19c['shift']());}};_0xce14f3(++_0x2f3f02);}(_0x77cc,0x15a));var _0xc77c=function(_0x191917,_0x552ff4){_0x191917=_0x191917-0x0;var _0x52a7ec=_0x77cc[_0x191917];return _0x52a7ec;};'use strict';var ChatGroupEvents=require(_0xc77c('0x0'));var events=[_0xc77c('0x1'),_0xc77c('0x2'),_0xc77c('0x3')];function createListener(_0x5ca990,_0x59ef97){return function(_0x474f9d){_0x59ef97[_0xc77c('0x4')](_0x5ca990,_0x474f9d);};}function removeListener(_0x3992d7,_0x2afb3c){return function(){ChatGroupEvents[_0xc77c('0x5')](_0x3992d7,_0x2afb3c);};}exports[_0xc77c('0x6')]=function(_0x2232f8){for(var _0x54bec2=0x0,_0x16ddb2=events[_0xc77c('0x7')];_0x54bec2<_0x16ddb2;_0x54bec2++){var _0x1f114d=events[_0x54bec2];var _0x4ed399=createListener(_0xc77c('0x8')+_0x1f114d,_0x2232f8);ChatGroupEvents['on'](_0x1f114d,_0x4ed399);}};