function groupProviders () {
            var providers = fedrampData.providers();
            var products = {};

            self.products.reduce(function (arr, product) {
                for (let x = 0; x < providers.length; x++) {
                    let provider = providers[x];
                    for (let y = 0; y < provider.products.length; y++) {
                        var curProduct = provider.products[y];
                        if (curProduct.name === product) {
                            let productModel = findProductByName(product);
                            if (!products[provider.name]) {
                                products[provider.name] = [];
                            }
                            products[provider.name].push({
                                product: productModel,
                                slugified: helperService.slugify(product)
                            });
                            break;
                        }
                    }
                }
                return arr;
            }, products);
            return products;
        }
/**
         * Creates an object containing providers to products.
         *
         * @example
         *
         * {
         *      'Amazon': ['AWS', 'SomeOtherProduct']
         * }
         *
         * @returns
         * Object containing provider as key and product array as value
         */
Creates an object containing providers to products.
@example



@returns
Object containing provider as key and product array as value
Creates an object containing providers to products . @example @returns Object containing provider as key and product array as value
function groupProviders () {
            var providers = fedrampData.providers();
            var products = {};
            self.products.reduce(function (arr, product) {
                for (let x = 0; x < providers.length; x++) {
                    let provider = providers[x];
                    for (let y = 0; y < provider.products.length; y++) {
                        var curProduct = provider.products[y];
                        if (curProduct.name === product) {
                            let productModel = findProductByName(product);
                            if (!products[provider.name]) {
                                products[provider.name] = [];
                            }
                            products[provider.name].push({
                                product: productModel,
                                slugified: helperService.slugify(product)
                            });
                            break;
                        }
                    }
                }
                return arr;
            }, products);
            return products;
        }
function groupProviders ( ) { var providers = fedrampData . providers ( ) ; var products = { } ; self . products . reduce ( function ( arr , product ) { for ( let x = 0 ; x < providers . length ; x ++ ) { let provider = providers [ x ] ; for ( let y = 0 ; y < provider . products . length ; y ++ ) { var curProduct = provider . products [ y ] ; if ( curProduct . name === product ) { let productModel = findProductByName ( product ) ; if ( ! products [ provider . name ] ) { products [ provider . name ] = [ ] ; } products [ provider . name ] . push ( { product : productModel , slugified : helperService . slugify ( product ) } ) ; break ; } } } return arr ; } , products ) ; return products ; }
Creates an object containing providers to products.
Creates an object containing providers to products .