if(!obide){var obide=function(){}}obide.ServerRequests=function(){};obide.ServerRequests.soapNameSpace=saw.delivers.namespaceMap.saw;obide.ServerRequests.loadSubscription=function(b,a,d){var c=new obids.AjaxRequest("LoadSubscription",a,d);c.getRequest().addArg("iBotPath",b);c.post()};obide.ServerRequests.saveSubscription=function(a,b){var c=new obids.AjaxRequest("SaveSubscription");c.getRequest().addArg("iBotPath",a);c.getRequest().addArg("CustomizeXML",b);return c.post()};obide.ServerRequests.runIBotNow=function(a){var b=new obids.AjaxRequest("RunIBotNow");b.getRequest().addArg("AlertPath",a);return b.post()};obide.ServerRequests.checkInstanceStatus=function(a){var b=new obids.AjaxRequest("CheckInstanceStatus");b.getRequest().addArg("AlertPath",a);return b.post()};obide.ServerRequests.cancelIBotInstance=function(a){var b=new obids.AjaxRequest("CancelIBotInstance");b.getRequest().addArg("AlertPath",a);return b.post()};obide.ServerRequests.saveIBot=function(b){var a=new obids.AjaxRequest("IBotSave");a.getRequest().addArg("ibotUIXML",b);return a.post()};obide.ServerRequests.retrieveIBotInfo=function(b,c,a,e){var d;if(c==null){c=false}if(a&&e){d=new obids.AjaxRequest("RetrieveIBotInfo",a,e);d.getRequest().addArg("AlertPath",b);d.getRequest().addArg("IncludeAgentXML",c);d.bShowErrors=false;d.post()}else{d=new obids.AjaxRequest("RetrieveIBotInfo");d.getRequest().addArg("AlertPath",b);d.getRequest().addArg("IncludeAgentXML",c);return d.post()}};obide.ServerRequests.retrieveDeviceType=function(b,a,d){var c;if(a&&d){c=new obids.AjaxRequest("RetrieveDeviceType",a,d);c.getRequest().addArg("DeviceId",b);c.bShowErrors=false;c.post()}else{c=new obids.AjaxRequest("RetrieveDeviceType");c.getRequest().addArg("DeviceId",b);return c.post()}};obide.ServerRequests.updateDeviceType=function(c,f,a,b,e){var d=new obids.AjaxRequest("UpdateDeviceType");d.getRequest().addArg("DeviceId",c);d.getRequest().addArg("DeviceName",f);d.getRequest().addArg("Domain",a);d.getRequest().addArg("Category",b);d.getRequest().addArg("Enabled",e);return d.post()};obide.ServerRequests.subscribe=function(a,c){var b=new obids.AjaxRequest("Subscribe");b.getRequest().addArg("AlertPath",a);b.getRequest().addArg("Subscribe",c);return b.post()};obide.ServerRequests.requestAlerts=function(){var a=new obids.AjaxRequest("RequestAlerts");return a.post()};obide.ServerRequests.clearAlert=function(a){var b=new obids.AjaxRequest("ClearAlerts");b.getRequest().addArg("AlertPath",a);return b.post()};obide.ServerRequests.clearAllAlerts=function(){var a=new obids.AjaxRequest("ClearAlerts");return a.post()};