var woo_appProperties = (function() {
var woo_appProperties_Global = {};
var self = document.getElementById('woo_appProperties');
self.classList.add("woo-ui-gadget");
woo_appProperties_Global.unload = () => {
//Unload callbacks here
console.log("Unloaded woo_appProperties");
}
return woo_appProperties_Global;
})();var login = (function() {
var login_Global = {};
var loginDom = document.getElementById('login-text_login');
var loginDomMob = document.getElementById('mob_icon_login');
var loggedIn = false;
var loggingInOrOut = false;
var openModal = false;
var whatIs = document.querySelector(".woo_whatIsWooID_login");
var forgotPass = document.querySelector(".forgot_pass_login");
function getAppData(){
return new Promise((resolve) => {
var url = woo.getRemoteCouch() + "/woogloo$public/woogloo-invoice-settings";
var data = {}
resolve(woo.queryCouch(url, "GET", data));
}).catch((error) => {
return null;
});
}
getAppData().then((data) => {
if (data){
$("#login .website_name").html(data.brandName);
$("#login #fullLogoImage").attr("src", "/resources/woogloo/uploads/" + data.logoImage);
}
})
function forgotPass_login(){
woo.updateCurrentPage("forgot-password");
}
function whatIsClick_login(){
var note = "
What is the Woo ID?
With a growing awareness of on-line privacy and security issues, further tightening of the spam laws worldwide and the need for businesses to have more robust collection of data systems in place, Woo has risen to the challenge by creating a universal ID for users on the platform - called a Woo ID.
The Woo ID provides you with the security that Woo is dedicated, and bound by law, to ensure your information is kept private and that all anti-spam laws are adhered to. Every user added to a Woo website gets to verify their email address. This ensures issues with data entry and out-of-date email accounts are spotted early.
The Woo ID universal ID is the market leader: creating a safe and spam free environment for you.