angular.module('virtoCommerce.catalogModule')
.factory('virtoCommerce.catalogModule.catalogs', ['$resource', function ($resource) {

    return $resource('api/catalog/catalogs/:id', { id: '@Id' }, {
        get: { method: 'GET' },
        getCatalogs: { method: 'GET', isArray: true },
        search: { method: 'POST', url: 'api/catalog/catalogs/search'},
        newCatalog: { method: 'GET', url: 'api/catalog/catalogs/getnew' },
        newVirtualCatalog: { method: 'GET', url: 'api/catalog/catalogs/getnewvirtual' },
        update: { method: 'PUT' },
        //getCatalogLanguages: { method: 'GET', url: 'api/catalog/catalogs/:id/languages', isArray: true },
        //updateCatalogLanguages: { method: 'POST', url: 'api/catalog/catalogs/:catalogId/languages' },
    });
}]);

