var umbracoAppDev = angular.module('umbraco.httpbackend', ['umbraco', 'ngMockE2E', 'umbraco.mocks']);


function initBackEnd($httpBackend, contentMocks, mediaMocks, treeMocks, userMocks, contentTypeMocks, sectionMocks, entityMocks, dataTypeMocks, dashboardMocks, macroMocks, utilMocks, localizationMocks, prevaluesMocks) {

	console.log("httpBackend inited");
	
    //Register mocked http responses
	contentMocks.register();
    mediaMocks.register();
    sectionMocks.register();
    treeMocks.register();
    dataTypeMocks.register();
    dashboardMocks.register();
    userMocks.register();
    macroMocks.register();
    contentTypeMocks.register();
    utilMocks.register();
    localizationMocks.register();
    prevaluesMocks.register();
    entityMocks.register();

    $httpBackend.whenGET(/^..\/config\//).passThrough();
	$httpBackend.whenGET(/^views\//).passThrough();
	$httpBackend.whenGET(/^js\//).passThrough();
	$httpBackend.whenGET(/^lib\//).passThrough();
	$httpBackend.whenGET(/^assets\//).passThrough();
}


umbracoAppDev.run(initBackEnd);
