getCurrentCategoriesState = () => {
    const {
        _invalidConsent,
        _acceptedCategories,
        _allCategoryNames
    } = globalObj._state;

    return {
        accepted: _acceptedCategories,
        rejected: _invalidConsent
            ? []
            : _allCategoryNames.filter(category =>
                !elContains(_acceptedCategories, category)
            )
    };
}
Obtain accepted and rejected categories
@returns {{accepted: string[], rejected: string[]}}