Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
584 B
0
Indexable
Never
function feedDashboards(categories)
	{
		authMicrosoftService.signin().then(function (response) {
			console.log(response);
		}, function (error) {
			console.log(error);
		});
		//faire apple ici
		var dashboards = [];
		categories.forEach(function (category)
		{
			category.dashboards.forEach(function (orderedDash)
			{
				var dash = orderedDash.dashboard;
				dashboards.push({
					name: dash.name,
					categoryName: category.name,
					logo: dash.logo,
					displayLogoOnMainPart: dash.displayLogoOnMainPart
				});
			});
		});
		return dashboards;
	}