
// javascript proxy for webservices
// by Matthias Hertel
/* Use this service to report and manage incidents. */

proxies.IFIncidentService = {
url: "http://www.streetlightoutages.com/webservices/IFIncidentService.asmx",
ns: "http://www.ifactorconsulting.com/webservices"
} // proxies.IFIncidentService

/** Marks an incident as 'resolved'.  The incident is referenced by a customer-specific incident ID. */

proxies.IFIncidentService.ResolveIncidentByCustomerID = function () { return(proxies.callSoap(arguments)); }
proxies.IFIncidentService.ResolveIncidentByCustomerID.fname = "ResolveIncidentByCustomerID";
proxies.IFIncidentService.ResolveIncidentByCustomerID.service = proxies.IFIncidentService;
proxies.IFIncidentService.ResolveIncidentByCustomerID.action = "http://www.ifactorconsulting.com/webservices/ResolveIncidentByCustomerID";
proxies.IFIncidentService.ResolveIncidentByCustomerID.params = ["userToken:string","customerIncidentId:string"];
proxies.IFIncidentService.ResolveIncidentByCustomerID.rtype = ["ResolveIncidentByCustomerIDResult:bool"];

/** Marks an incident as 'resolved'.  The incident is referenced by a StreetLightOutages-specific incident ID. */

proxies.IFIncidentService.ResolveIncidentBySLOID = function () { return(proxies.callSoap(arguments)); }
proxies.IFIncidentService.ResolveIncidentBySLOID.fname = "ResolveIncidentBySLOID";
proxies.IFIncidentService.ResolveIncidentBySLOID.service = proxies.IFIncidentService;
proxies.IFIncidentService.ResolveIncidentBySLOID.action = "http://www.ifactorconsulting.com/webservices/ResolveIncidentBySLOID";
proxies.IFIncidentService.ResolveIncidentBySLOID.params = ["userToken:string","sloIncidentId:int"];
proxies.IFIncidentService.ResolveIncidentBySLOID.rtype = ["ResolveIncidentBySLOIDResult:bool"];

/** Returns a street address for the given latitude and longitude */

proxies.IFIncidentService.RequestReverseGeocode = function () { return(proxies.callSoap(arguments)); }
proxies.IFIncidentService.RequestReverseGeocode.fname = "RequestReverseGeocode";
proxies.IFIncidentService.RequestReverseGeocode.service = proxies.IFIncidentService;
proxies.IFIncidentService.RequestReverseGeocode.action = "http://www.ifactorconsulting.com/webservices/RequestReverseGeocode";
proxies.IFIncidentService.RequestReverseGeocode.params = ["userToken:string","latitude:float","longitude:float"];
proxies.IFIncidentService.RequestReverseGeocode.rtype = ["RequestReverseGeocodeResult:string"];

/** Marks an incident as 'closed'.  The incident is referenced by a StreetLightOutages-specific incident ID. */

proxies.IFIncidentService.CloseIncidentBySLOID = function () { return(proxies.callSoap(arguments)); }
proxies.IFIncidentService.CloseIncidentBySLOID.fname = "CloseIncidentBySLOID";
proxies.IFIncidentService.CloseIncidentBySLOID.service = proxies.IFIncidentService;
proxies.IFIncidentService.CloseIncidentBySLOID.action = "http://www.ifactorconsulting.com/webservices/CloseIncidentBySLOID";
proxies.IFIncidentService.CloseIncidentBySLOID.params = ["userToken:string","sloIncidentId:int"];
proxies.IFIncidentService.CloseIncidentBySLOID.rtype = ["CloseIncidentBySLOIDResult:bool"];

/** get associated details of an incident.  The incident is referenced by a StreetLightOutages-specific incident ID. */

proxies.IFIncidentService.GetIncidentDetails = function () { return(proxies.callSoap(arguments)); }
proxies.IFIncidentService.GetIncidentDetails.fname = "GetIncidentDetails";
proxies.IFIncidentService.GetIncidentDetails.service = proxies.IFIncidentService;
proxies.IFIncidentService.GetIncidentDetails.action = "http://www.ifactorconsulting.com/webservices/GetIncidentDetails";
proxies.IFIncidentService.GetIncidentDetails.params = ["userToken:string","sloIncidentId:int"];
proxies.IFIncidentService.GetIncidentDetails.rtype = ["GetIncidentDetailsResult:other"];

/** set incident status by incidentid. Only available for authorized utility customers to update status for an incident. */

proxies.IFIncidentService.SetIncidentStatusBySLOID = function () { return(proxies.callSoap(arguments)); }
proxies.IFIncidentService.SetIncidentStatusBySLOID.fname = "SetIncidentStatusBySLOID";
proxies.IFIncidentService.SetIncidentStatusBySLOID.service = proxies.IFIncidentService;
proxies.IFIncidentService.SetIncidentStatusBySLOID.action = "http://www.ifactorconsulting.com/webservices/SetIncidentStatusBySLOID";
proxies.IFIncidentService.SetIncidentStatusBySLOID.params = ["userToken:string","SLOID:int","statusType:string"];
proxies.IFIncidentService.SetIncidentStatusBySLOID.rtype = ["SetIncidentStatusBySLOIDResult:bool"];

/** set incident status by customerid. Only available for authorized utility customers to update status for an incident. */

proxies.IFIncidentService.SetIncidentStatusByCustomerID = function () { return(proxies.callSoap(arguments)); }
proxies.IFIncidentService.SetIncidentStatusByCustomerID.fname = "SetIncidentStatusByCustomerID";
proxies.IFIncidentService.SetIncidentStatusByCustomerID.service = proxies.IFIncidentService;
proxies.IFIncidentService.SetIncidentStatusByCustomerID.action = "http://www.ifactorconsulting.com/webservices/SetIncidentStatusByCustomerID";
proxies.IFIncidentService.SetIncidentStatusByCustomerID.params = ["userToken:string","customerIncidentId:string","statusType:string"];
proxies.IFIncidentService.SetIncidentStatusByCustomerID.rtype = ["SetIncidentStatusByCustomerIDResult:bool"];

/** ADMIN ONLY */

proxies.IFIncidentService.ByPass = function () { return(proxies.callSoap(arguments)); }
proxies.IFIncidentService.ByPass.fname = "ByPass";
proxies.IFIncidentService.ByPass.service = proxies.IFIncidentService;
proxies.IFIncidentService.ByPass.action = "http://www.ifactorconsulting.com/webservices/ByPass";
proxies.IFIncidentService.ByPass.params = ["usertoken:string"];
proxies.IFIncidentService.ByPass.rtype = ["ByPassResult:bool"];
