var _globals=new Globals,schedulers=_globals.apiGetDataList("scheduler"),_userInfoCookie=_globals.getCookie("_loginInfo"),_userInfo=JSON.parse(_userInfoCookie);_userInfo=_globals.apiGetDataList("user/"+_userInfo.id);var staffs=[];function hasRole(s){let a=$("#roleList").attr("data-role").split(","),e=a.find((function(a){return a===s}));return null!=e&&"undefined"!==e&&0!=e.length}hasRole("00605")?staffs=_globals.apiGetDataList("staffs"):staffs.push(_globals.apiGetDataList("staffs/"+_userInfo.staffId));