function additionalParams(){var result="";var host=window.location.hostname;const url=new URL(window.location.href);var snode=!1;if(url.port!=undefined){const port=url.port;if(port==25320){snode=!0}}
if((host.includes("localhost"))||(validateIPaddress(host))||(snode)){result="&sds=0&"}
return result}
function hostAndPort(){var host=window.location.hostname;const url=new URL(window.location.href);var newPort="";var snode=!1;if(url.port!=undefined){const port=url.port;if(port==25320){snode=!0}}
if((host.includes("localhost"))||(validateIPaddress(host))||(snode)){newPort=":25319"}
return url.protocol+"//"+url.hostname+newPort}
function repositoryHostAndPort(){return hostAndPort()+"/srepository/_attachs/"}
function urlRepositoryReplace(url){let tag="/_attachs/";if(!url.includes(tag)){return url}
let parts=url.split(tag);let p=(parts.length>=2)?parts[1]:"";return repositoryHostAndPort()+p}
var URL_SRH_INDEX_DESKTOP_SECURITY_CHECK_X='_cox_srh_3.24.1.0/treatment.php?f=-2'+additionalParams();var URL_SRH_DESKTOP_SECURITY_CHECK_X='../../_cox_srh_3.24.1.0/treatment.php?f=-2'+additionalParams();var URL_SRH_INDEX_LOGIN_X="_cox_srh_3.24.1.0/treatment.php?f=0"+additionalParams();var URL_SRH_LOGOUT_X="../../_cox_srh_3.24.1.0/treatment.php?f=0"+additionalParams();var URL_SRH_LOGIN_STATUS_X="../../_cox_srh_3.24.1.0/treatment.php?f=0"+additionalParams();var URL_SRH_MENU_X="../../_cox_srh_3.24.1.0/treatment.php?f=1"+additionalParams();var URL_SRH_HOME_PAGE_X="../../_cox_srh_3.24.1.0/treatment.php?f=2"+additionalParams();var URL_SRH_SYSTEM_USER_X="../../_cox_srh_3.24.1.0/treatment.php?f=3"+additionalParams();var URL_SRH_COMPANY_X="../../_cox_srh_3.24.1.0/treatment.php?f=4"+additionalParams();var URL_SRH_CRUD_X="../../_cox_srh_3.24.1.0/treatment.php?f=5"+additionalParams();var URL_SRH_DEPARTMENT_X="../../_cox_srh_3.24.1.0/treatment.php?f=6"+additionalParams();var URL_SRH_EMPLOYEE_X="../../_cox_srh_3.24.1.0/treatment.php?f=7"+additionalParams();var URL_SRH_WORKSCHEDULE_X="../../_cox_srh_3.24.1.0/treatment.php?f=8"+additionalParams();var URL_SRH_POINT_CONTROL_X="../../_cox_srh_3.24.1.0/treatment.php?f=9"+additionalParams();var URL_SRH_UPLOAD_TEMP_X="../../_cox_srh_3.24.1.0/treatment.php?f=10"+additionalParams();var URL_SRH_VACATION_X="../../_cox_srh_3.24.1.0/treatment.php?f=11"+additionalParams();var URL_SRH_PAYROLL_X="../../_cox_srh_3.24.1.0/treatment.php?f=12"+additionalParams();var URL_SRH_TEMP_FILE_X=repositoryHostAndPort()+"_temp/";var URL_SRH_ACTIVITY_EXTRA_X="../../_cox_srh_3.24.1.0/treatment.php?f=13"+additionalParams();var URL_SU_COMMON_ROOT_X=hostAndPort()+"/slibrary_desk/_commonroot/index.php?"+additionalParams();var URL_SSYNCH_REVIEW_X='../../../ssynch_desk/_cox_ssynch_3.24.1.0/treatment.php?f=15'+additionalParams();var URL_SSETT_SYSTEM_USER_X='../../../ssetting_desk/_cox_ssett_3.24.1.0/treatment.php?f=3'+additionalParams();var URL_SSETT_SYNC_X='../../../ssetting_desk/_cox_ssett_3.24.1.0/treatment.php?f=14'+additionalParams()