function UserServiceFacade(){this.urlRestChangePassword=inet.pwdrecoverWSContext+"/api/user/{loginOrEmployeeid}/changePassword";
this.urlRestGetDeliveryType=inet.pwdrecoverWSContext+"/api/user/{loginOrEmployeeid}";
this.urlRestSendPIN=inet.pwdrecoverWSContext+"/api/user/{loginOrEmployeeid}/sendPIN";
this.urlRestSupportMail=inet.pwdrecoverWSContext+"/api/user/supportcontact";
this.urlRestGetCountries=inet.pwdrecoverWSContext+"/api/user/countries";
this.urlRestCheckCaptcha=inet.pwdrecoverWSContext+"/api/user/exceedsAttempts";
this.urlRestUserLocation=inet.pwdrecoverWSContext+"/user-location-detection";
this.urlRestRefreshCaptcha=inet.pwdrecoverWSContext+"/api/user/captchaImage";
}UserServiceFacade.prototype.changePassword=function(loginOrEmployeeid,data,onSuccess,onError,context){var url=this.urlRestChangePassword.replace("{loginOrEmployeeid}",loginOrEmployeeid);
return $.ajax({async:true,context:context,cache:false,timeout:30000,type:"PUT",dataType:"json",contentType:"application/json",data:JSON.stringify(data),url:url,success:onSuccess,error:onError});
};
UserServiceFacade.prototype.getDeliveryType=function(loginOrEmployeeid,data,onSuccess,onError,context){var url=this.urlRestGetDeliveryType.replace("{loginOrEmployeeid}",loginOrEmployeeid);
return $.ajax({async:true,cache:false,context:context,timeout:15000,type:"GET",dataType:"json",data:data,url:url,success:onSuccess,error:onError});
};
UserServiceFacade.prototype.sendPIN=function(loginOrEmployeeid,data,onSuccess,onError,context){var url=this.urlRestSendPIN.replace("{loginOrEmployeeid}",loginOrEmployeeid);
return $.ajax({async:true,context:context,cache:false,type:"POST",dataType:"json",url:url,data:data,success:onSuccess,error:onError});
};
UserServiceFacade.prototype.getCountries=function(onSuccess,onError,context){var url=this.urlRestGetCountries;
return $.ajax({async:false,context:context,timeout:15000,cache:true,type:"GET",dataType:"json",url:url,success:onSuccess,error:onError});
};
UserServiceFacade.prototype.getSupportMail=function(countryId,onSuccess,onError,context){var url=this.urlRestSupportMail;
return $.ajax({async:true,context:context,cache:true,type:"GET",dataType:"json",data:{country:countryId},url:url,success:onSuccess,error:onError});
};
UserServiceFacade.prototype.checkCaptcha=function(data,onSuccess,onError,context){var url=this.urlRestCheckCaptcha;
return $.ajax({async:true,context:context,cache:false,type:"GET",dataType:"json",url:url,data:data,success:onSuccess,error:onError});
};
UserServiceFacade.prototype.refreshCaptchaImg=function(data,onSuccess,onError,context){var url=this.urlRestRefreshCaptcha;
return $.ajax({async:true,context:context,cache:false,type:"GET",dataType:"json",url:url,data:data,success:onSuccess,error:onError});
};
UserServiceFacade.prototype.getUserLocation=function(onSuccess,onError,context){return $.ajax({async:true,context:context,timeout:3000,cache:false,type:"GET",dataType:"json",url:this.urlRestUserLocation,success:onSuccess,error:onError});
};
var userServiceFacade=new UserServiceFacade();