(function () {
    'use strict';
    angular.module('pruexpress').controller('registerController', registerController);
   
    function registerController(PruxpressConfig) {
        var vm = this;
        vm.regLoginUrl = PruxpressConfig.regLoginUrl;
        vm.register_type = null;
		vm.goToHome = function() {
			if(environment === "DEV" || environment === "QA") {
				window.location.href = "https://pxbportal-" + environment.toLowerCase() + ".prudential.com";
			} else if(environment === "STAGE" || environment === "STAGEAUTH") {
				window.location.href = "https://pxbportal-stage.prudential.com";
			} else if(environment === "PROD" || environment === "PRODAUTH") {
				window.location.href = "https://pxbportal2.prudential.com";
			}
		}
        vm.setRegisterType = function(type){
        	vm.register_type = type;
        }
       
    }
})();