define([
	'angular',
    'lib/livedesk/scripts/js/manage-feeds/manage-feeds',
    'lib/livedesk/scripts/js/manage-feeds/services/providers-blogs-data',
    'lib/livedesk/scripts/js/manage-feeds/services/all-blog-sources'
	],function(ngular, feeds){
		feeds.factory('chainedBlogsData', ['$http', '$q','providersBlogsData','allBlogSources',  function($http, $q, providersBlogsData, allBlogSources){
            return {
                getData: function(providersUrl, sourcesUrl) {
                    var deffered = $q.defer();
                    providersBlogsData.getData(providersUrl).then(function(chains){
                        allBlogSources.getData(sourcesUrl).then(function(sources){
                            console.log('chains ', chains);
                            for ( var i = 0; i < chains.length; i++ ) {
                                for ( var j = 0; j < chains[i].blogList.length; j++ ) {
                                    var chained = false;
                                    var sourceId = -1;
                                    for ( var k = 0; k < sources.length; k ++ ) {
                                        if ( sources[k].URI.href == chains[i].blogList[j].href ) {
                                            chained = true;
                                            sourceId = sources[k].Id
                                            break;
                                        }
                                    }
                                    chains[i].blogList[j].chained = chained;
                                    chains[i].blogList[j].sourceId = sourceId;
                                }
                            }
                            deffered.resolve(chains);
                        });
                    });
                    return deffered.promise;
                }
            }
        }]);
});
define([
	'angular',
    'lib/livedesk/scripts/js/manage-feeds/manage-feeds',
    'lib/livedesk/scripts/js/manage-feeds/services/providers-blogs-data',
    'lib/livedesk/scripts/js/manage-feeds/services/all-blog-sources'
	],function(ngular, feeds){
		feeds.factory('chainedBlogsData', ['$http', '$q','providersBlogsData','allBlogSources',  function($http, $q, providersBlogsData, allBlogSources){
            return {
                getData: function(providersUrl, sourcesUrl) {
                    var deffered = $q.defer();
                    providersBlogsData.getData(providersUrl).then(function(chains){
                        allBlogSources.getData(sourcesUrl).then(function(sources){
                            for ( var i = 0; i < chains.length; i++ ) {
                                for ( var j = 0; j < chains[i].blogList.length; j++ ) {
                                    var chained = false;
                                    var sourceId = -1;
                                    for ( var k = 0; k < sources.length; k ++ ) {
                                        if ( sources[k].URI.href == chains[i].blogList[j].href ) {
                                            chained = true;
                                            sourceId = sources[k].Id
                                            break;
                                        }
                                    }
                                    chains[i].blogList[j].chained = chained;
                                    chains[i].blogList[j].sourceId = sourceId;
                                }
                            }
                            deffered.resolve(chains);
                        });
                    });
                    return deffered.promise;
                }
            }
        }]);
});
Check on admin all POST, PUT, DELETE URLs to use my
LB-1458: Check on admin all POST, PUT, DELETE URLs to use my

Cleared a console.log
