// Copyright (c) Pickware GmbH. All rights reserved.
// This file is part of software that is released under a proprietary license.
// You must not copy, modify, distribute, make publicly available, or execute
// its contents or parts thereof without express permission by the copyright
// holder, unless otherwise permitted by law.

// Copied (and changed class name/storeId) from ViisonArticleAnalytics v1.0.10.
Ext.define('Shopware.apps.ViisonCommonAnalytics.store.FilterModule.ArticleCategory', {

    extend: 'Ext.data.Store',
    alias: 'widget.analytics-store-category',
    fields: ['id', 'name'],
    storeId: 'Shopware.apps.ViisonCommonAnalytics.store.FilterModule.ArticleCategory',
    proxy: {
        type: 'ajax',
        url: ViisonCommonApp.assembleBackendUrl('Category/getPathByQuery', {
            parents: 1,
        }),
        reader: {
            type: 'json',
            root: 'data',
        },
    },

});
