var CMSService=function() {
CMSService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CMSService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return CMSService._staticInstance.get_path();},
GetTopMenu:function(isLiveContent,currentPageUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetTopMenu',false,{isLiveContent:isLiveContent,currentPageUrl:currentPageUrl},succeededCallback,failedCallback,userContext); },
UpdateContent:function(sectionID,sectionElementID,htmlContent,positionIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateContent',false,{sectionID:sectionID,sectionElementID:sectionElementID,htmlContent:htmlContent,positionIndex:positionIndex},succeededCallback,failedCallback,userContext); },
GetOfflineContent:function(sectionElementID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetOfflineContent',false,{sectionElementID:sectionElementID},succeededCallback,failedCallback,userContext); },
UpdateArticle:function(articleID,htmlContent,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateArticle',false,{articleID:articleID,htmlContent:htmlContent},succeededCallback,failedCallback,userContext); },
UpdateVacancy:function(articleID,htmlContent,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateVacancy',false,{articleID:articleID,htmlContent:htmlContent},succeededCallback,failedCallback,userContext); },
GenerateFriendlyUrl:function(stringToFormat,friendlyUrlStringToFormat,pageSectionID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GenerateFriendlyUrl',false,{stringToFormat:stringToFormat,friendlyUrlStringToFormat:friendlyUrlStringToFormat,pageSectionID:pageSectionID},succeededCallback,failedCallback,userContext); },
InsertVacancy:function(articleID,sectionID,startDate,expiryDate,isFeatured,isArchive,formID,friendlyUrl,metaTitle,metaDescription,metaKeywords,title,strapline,listPosition,positionIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'InsertVacancy',false,{articleID:articleID,sectionID:sectionID,startDate:startDate,expiryDate:expiryDate,isFeatured:isFeatured,isArchive:isArchive,formID:formID,friendlyUrl:friendlyUrl,metaTitle:metaTitle,metaDescription:metaDescription,metaKeywords:metaKeywords,title:title,strapline:strapline,listPosition:listPosition,positionIndex:positionIndex},succeededCallback,failedCallback,userContext); },
InsertArticle:function(isNews,articleID,sectionID,startDate,expiryDate,isFeatured,isArchive,caption,zoomImage,friendlyUrl,metaTitle,metaDescription,metaKeywords,title,strapline,listPosition,positionIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'InsertArticle',false,{isNews:isNews,articleID:articleID,sectionID:sectionID,startDate:startDate,expiryDate:expiryDate,isFeatured:isFeatured,isArchive:isArchive,caption:caption,zoomImage:zoomImage,friendlyUrl:friendlyUrl,metaTitle:metaTitle,metaDescription:metaDescription,metaKeywords:metaKeywords,title:title,strapline:strapline,listPosition:listPosition,positionIndex:positionIndex},succeededCallback,failedCallback,userContext); },
RegisterEmail:function(email,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RegisterEmail',false,{email:email},succeededCallback,failedCallback,userContext); },
SubmitQuery:function(queryType,name,telephone,email,business,message,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SubmitQuery',false,{queryType:queryType,name:name,telephone:telephone,email:email,business:business,message:message},succeededCallback,failedCallback,userContext); },
CreateCustomForm:function(formName,formType,submissionEmail,submissionText,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateCustomForm',false,{formName:formName,formType:formType,submissionEmail:submissionEmail,submissionText:submissionText},succeededCallback,failedCallback,userContext); },
InsertCustomFormField:function(formID,controlTypeID,compulsoryField,fieldOptions,fieldText,note,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'InsertCustomFormField',false,{formID:formID,controlTypeID:controlTypeID,compulsoryField:compulsoryField,fieldOptions:fieldOptions,fieldText:fieldText,note:note},succeededCallback,failedCallback,userContext); },
CancelCreateForm:function(formID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CancelCreateForm',false,{formID:formID},succeededCallback,failedCallback,userContext); },
UpdateFormFieldOrder:function(formFieldsOrder,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateFormFieldOrder',false,{formFieldsOrder:formFieldsOrder},succeededCallback,failedCallback,userContext); },
UpdateFieldDetail:function(formFieldID,controlTypeID,compulsoryField,fieldOptions,fieldText,note,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateFieldDetail',false,{formFieldID:formFieldID,controlTypeID:controlTypeID,compulsoryField:compulsoryField,fieldOptions:fieldOptions,fieldText:fieldText,note:note},succeededCallback,failedCallback,userContext); },
GetFieldDetails:function(formFieldID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetFieldDetails',false,{formFieldID:formFieldID},succeededCallback,failedCallback,userContext); },
UpdateFormDetails:function(formID,name,submissionEmail,submissionText,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateFormDetails',false,{formID:formID,name:name,submissionEmail:submissionEmail,submissionText:submissionText},succeededCallback,failedCallback,userContext); },
RemoveField:function(formID,fieldID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RemoveField',false,{formID:formID,fieldID:fieldID},succeededCallback,failedCallback,userContext); },
InsertUpdateEshot:function(eshotID,subscriberOptionID,fromEmail,friendlyName,title,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'InsertUpdateEshot',false,{eshotID:eshotID,subscriberOptionID:subscriberOptionID,fromEmail:fromEmail,friendlyName:friendlyName,title:title},succeededCallback,failedCallback,userContext); },
UpdateEshotHTML:function(eshotID,content,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateEshotHTML',false,{eshotID:eshotID,content:content},succeededCallback,failedCallback,userContext); },
UpdateEshotPlain:function(eshotID,content,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateEshotPlain',false,{eshotID:eshotID,content:content},succeededCallback,failedCallback,userContext); },
SendTestEmail:function(eshotID,testEmail,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendTestEmail',false,{eshotID:eshotID,testEmail:testEmail},succeededCallback,failedCallback,userContext); },
SendMailout:function(eshotID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendMailout',false,{eshotID:eshotID},succeededCallback,failedCallback,userContext); },
ParseSearchString:function(searchPhrase,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ParseSearchString',false,{searchPhrase:searchPhrase},succeededCallback,failedCallback,userContext); },
InsertSubscriber:function(subscriberID,firstname,lastname,company,email,telephone,companyAddress,postcode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'InsertSubscriber',false,{subscriberID:subscriberID,firstname:firstname,lastname:lastname,company:company,email:email,telephone:telephone,companyAddress:companyAddress,postcode:postcode},succeededCallback,failedCallback,userContext); }}
CMSService.registerClass('CMSService',Sys.Net.WebServiceProxy);
CMSService._staticInstance = new CMSService();
CMSService.set_path = function(value) { CMSService._staticInstance.set_path(value); }
CMSService.get_path = function() { return CMSService._staticInstance.get_path(); }
CMSService.set_timeout = function(value) { CMSService._staticInstance.set_timeout(value); }
CMSService.get_timeout = function() { return CMSService._staticInstance.get_timeout(); }
CMSService.set_defaultUserContext = function(value) { CMSService._staticInstance.set_defaultUserContext(value); }
CMSService.get_defaultUserContext = function() { return CMSService._staticInstance.get_defaultUserContext(); }
CMSService.set_defaultSucceededCallback = function(value) { CMSService._staticInstance.set_defaultSucceededCallback(value); }
CMSService.get_defaultSucceededCallback = function() { return CMSService._staticInstance.get_defaultSucceededCallback(); }
CMSService.set_defaultFailedCallback = function(value) { CMSService._staticInstance.set_defaultFailedCallback(value); }
CMSService.get_defaultFailedCallback = function() { return CMSService._staticInstance.get_defaultFailedCallback(); }
CMSService.set_path("/Services/CMSService.asmx");
CMSService.GetTopMenu= function(isLiveContent,currentPageUrl,onSuccess,onFailed,userContext) {CMSService._staticInstance.GetTopMenu(isLiveContent,currentPageUrl,onSuccess,onFailed,userContext); }
CMSService.UpdateContent= function(sectionID,sectionElementID,htmlContent,positionIndex,onSuccess,onFailed,userContext) {CMSService._staticInstance.UpdateContent(sectionID,sectionElementID,htmlContent,positionIndex,onSuccess,onFailed,userContext); }
CMSService.GetOfflineContent= function(sectionElementID,onSuccess,onFailed,userContext) {CMSService._staticInstance.GetOfflineContent(sectionElementID,onSuccess,onFailed,userContext); }
CMSService.UpdateArticle= function(articleID,htmlContent,onSuccess,onFailed,userContext) {CMSService._staticInstance.UpdateArticle(articleID,htmlContent,onSuccess,onFailed,userContext); }
CMSService.UpdateVacancy= function(articleID,htmlContent,onSuccess,onFailed,userContext) {CMSService._staticInstance.UpdateVacancy(articleID,htmlContent,onSuccess,onFailed,userContext); }
CMSService.GenerateFriendlyUrl= function(stringToFormat,friendlyUrlStringToFormat,pageSectionID,onSuccess,onFailed,userContext) {CMSService._staticInstance.GenerateFriendlyUrl(stringToFormat,friendlyUrlStringToFormat,pageSectionID,onSuccess,onFailed,userContext); }
CMSService.InsertVacancy= function(articleID,sectionID,startDate,expiryDate,isFeatured,isArchive,formID,friendlyUrl,metaTitle,metaDescription,metaKeywords,title,strapline,listPosition,positionIndex,onSuccess,onFailed,userContext) {CMSService._staticInstance.InsertVacancy(articleID,sectionID,startDate,expiryDate,isFeatured,isArchive,formID,friendlyUrl,metaTitle,metaDescription,metaKeywords,title,strapline,listPosition,positionIndex,onSuccess,onFailed,userContext); }
CMSService.InsertArticle= function(isNews,articleID,sectionID,startDate,expiryDate,isFeatured,isArchive,caption,zoomImage,friendlyUrl,metaTitle,metaDescription,metaKeywords,title,strapline,listPosition,positionIndex,onSuccess,onFailed,userContext) {CMSService._staticInstance.InsertArticle(isNews,articleID,sectionID,startDate,expiryDate,isFeatured,isArchive,caption,zoomImage,friendlyUrl,metaTitle,metaDescription,metaKeywords,title,strapline,listPosition,positionIndex,onSuccess,onFailed,userContext); }
CMSService.RegisterEmail= function(email,onSuccess,onFailed,userContext) {CMSService._staticInstance.RegisterEmail(email,onSuccess,onFailed,userContext); }
CMSService.SubmitQuery= function(queryType,name,telephone,email,business,message,onSuccess,onFailed,userContext) {CMSService._staticInstance.SubmitQuery(queryType,name,telephone,email,business,message,onSuccess,onFailed,userContext); }
CMSService.CreateCustomForm= function(formName,formType,submissionEmail,submissionText,onSuccess,onFailed,userContext) {CMSService._staticInstance.CreateCustomForm(formName,formType,submissionEmail,submissionText,onSuccess,onFailed,userContext); }
CMSService.InsertCustomFormField= function(formID,controlTypeID,compulsoryField,fieldOptions,fieldText,note,onSuccess,onFailed,userContext) {CMSService._staticInstance.InsertCustomFormField(formID,controlTypeID,compulsoryField,fieldOptions,fieldText,note,onSuccess,onFailed,userContext); }
CMSService.CancelCreateForm= function(formID,onSuccess,onFailed,userContext) {CMSService._staticInstance.CancelCreateForm(formID,onSuccess,onFailed,userContext); }
CMSService.UpdateFormFieldOrder= function(formFieldsOrder,onSuccess,onFailed,userContext) {CMSService._staticInstance.UpdateFormFieldOrder(formFieldsOrder,onSuccess,onFailed,userContext); }
CMSService.UpdateFieldDetail= function(formFieldID,controlTypeID,compulsoryField,fieldOptions,fieldText,note,onSuccess,onFailed,userContext) {CMSService._staticInstance.UpdateFieldDetail(formFieldID,controlTypeID,compulsoryField,fieldOptions,fieldText,note,onSuccess,onFailed,userContext); }
CMSService.GetFieldDetails= function(formFieldID,onSuccess,onFailed,userContext) {CMSService._staticInstance.GetFieldDetails(formFieldID,onSuccess,onFailed,userContext); }
CMSService.UpdateFormDetails= function(formID,name,submissionEmail,submissionText,onSuccess,onFailed,userContext) {CMSService._staticInstance.UpdateFormDetails(formID,name,submissionEmail,submissionText,onSuccess,onFailed,userContext); }
CMSService.RemoveField= function(formID,fieldID,onSuccess,onFailed,userContext) {CMSService._staticInstance.RemoveField(formID,fieldID,onSuccess,onFailed,userContext); }
CMSService.InsertUpdateEshot= function(eshotID,subscriberOptionID,fromEmail,friendlyName,title,onSuccess,onFailed,userContext) {CMSService._staticInstance.InsertUpdateEshot(eshotID,subscriberOptionID,fromEmail,friendlyName,title,onSuccess,onFailed,userContext); }
CMSService.UpdateEshotHTML= function(eshotID,content,onSuccess,onFailed,userContext) {CMSService._staticInstance.UpdateEshotHTML(eshotID,content,onSuccess,onFailed,userContext); }
CMSService.UpdateEshotPlain= function(eshotID,content,onSuccess,onFailed,userContext) {CMSService._staticInstance.UpdateEshotPlain(eshotID,content,onSuccess,onFailed,userContext); }
CMSService.SendTestEmail= function(eshotID,testEmail,onSuccess,onFailed,userContext) {CMSService._staticInstance.SendTestEmail(eshotID,testEmail,onSuccess,onFailed,userContext); }
CMSService.SendMailout= function(eshotID,onSuccess,onFailed,userContext) {CMSService._staticInstance.SendMailout(eshotID,onSuccess,onFailed,userContext); }
CMSService.ParseSearchString= function(searchPhrase,onSuccess,onFailed,userContext) {CMSService._staticInstance.ParseSearchString(searchPhrase,onSuccess,onFailed,userContext); }
CMSService.InsertSubscriber= function(subscriberID,firstname,lastname,company,email,telephone,companyAddress,postcode,onSuccess,onFailed,userContext) {CMSService._staticInstance.InsertSubscriber(subscriberID,firstname,lastname,company,email,telephone,companyAddress,postcode,onSuccess,onFailed,userContext); }

