Type.registerNamespace('EZP.Api.Presentation.Web.Ajax');
EZP.Api.Presentation.Web.Ajax.CustomerSupport=function() {
EZP.Api.Presentation.Web.Ajax.CustomerSupport.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
EZP.Api.Presentation.Web.Ajax.CustomerSupport.prototype={
SubmitSupportRequest:function(supportRequest,customFields,succeededCallback, failedCallback, userContext) {
return this._invoke(EZP.Api.Presentation.Web.Ajax.CustomerSupport.get_path(), 'SubmitSupportRequest',false,{supportRequest:supportRequest,customFields:customFields},succeededCallback,failedCallback,userContext); }}
EZP.Api.Presentation.Web.Ajax.CustomerSupport.registerClass('EZP.Api.Presentation.Web.Ajax.CustomerSupport',Sys.Net.WebServiceProxy);
EZP.Api.Presentation.Web.Ajax.CustomerSupport._staticInstance = new EZP.Api.Presentation.Web.Ajax.CustomerSupport();
EZP.Api.Presentation.Web.Ajax.CustomerSupport.set_path = function(value) { EZP.Api.Presentation.Web.Ajax.CustomerSupport._staticInstance._path = value; }
EZP.Api.Presentation.Web.Ajax.CustomerSupport.get_path = function() { return EZP.Api.Presentation.Web.Ajax.CustomerSupport._staticInstance._path; }
EZP.Api.Presentation.Web.Ajax.CustomerSupport.set_timeout = function(value) { EZP.Api.Presentation.Web.Ajax.CustomerSupport._staticInstance._timeout = value; }
EZP.Api.Presentation.Web.Ajax.CustomerSupport.get_timeout = function() { return EZP.Api.Presentation.Web.Ajax.CustomerSupport._staticInstance._timeout; }
EZP.Api.Presentation.Web.Ajax.CustomerSupport.set_defaultUserContext = function(value) { EZP.Api.Presentation.Web.Ajax.CustomerSupport._staticInstance._userContext = value; }
EZP.Api.Presentation.Web.Ajax.CustomerSupport.get_defaultUserContext = function() { return EZP.Api.Presentation.Web.Ajax.CustomerSupport._staticInstance._userContext; }
EZP.Api.Presentation.Web.Ajax.CustomerSupport.set_defaultSucceededCallback = function(value) { EZP.Api.Presentation.Web.Ajax.CustomerSupport._staticInstance._succeeded = value; }
EZP.Api.Presentation.Web.Ajax.CustomerSupport.get_defaultSucceededCallback = function() { return EZP.Api.Presentation.Web.Ajax.CustomerSupport._staticInstance._succeeded; }
EZP.Api.Presentation.Web.Ajax.CustomerSupport.set_defaultFailedCallback = function(value) { EZP.Api.Presentation.Web.Ajax.CustomerSupport._staticInstance._failed = value; }
EZP.Api.Presentation.Web.Ajax.CustomerSupport.get_defaultFailedCallback = function() { return EZP.Api.Presentation.Web.Ajax.CustomerSupport._staticInstance._failed; }
EZP.Api.Presentation.Web.Ajax.CustomerSupport.set_path("/PrintstoreApi/Ajax/customersupport.asmx");
EZP.Api.Presentation.Web.Ajax.CustomerSupport.SubmitSupportRequest= function(supportRequest,customFields,onSuccess,onFailed,userContext) {EZP.Api.Presentation.Web.Ajax.CustomerSupport._staticInstance.SubmitSupportRequest(supportRequest,customFields,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('EZP.CustomerSupport.Dto');
if (typeof(EZP.CustomerSupport.Dto.SupportRequest) === 'undefined') {
EZP.CustomerSupport.Dto.SupportRequest=gtc("EZP.CustomerSupport.Dto.SupportRequest");
EZP.CustomerSupport.Dto.SupportRequest.registerClass('EZP.CustomerSupport.Dto.SupportRequest');
}
if (typeof(EZP.CustomerSupport.Dto.CustomSupportRequestField) === 'undefined') {
EZP.CustomerSupport.Dto.CustomSupportRequestField=gtc("EZP.CustomerSupport.Dto.CustomSupportRequestField");
EZP.CustomerSupport.Dto.CustomSupportRequestField.registerClass('EZP.CustomerSupport.Dto.CustomSupportRequestField');
}
