var ContentHandler=function() {
ContentHandler.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ContentHandler.prototype={
SendPassword:function(EMail,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'SendPassword',false,{EMail:EMail},succeededCallback,failedCallback,userContext); },
SearchKeyword3:function(argKeyword,argContext,argExtra,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'SearchKeyword3',false,{argKeyword:argKeyword,argContext:argContext,argExtra:argExtra},succeededCallback,failedCallback,userContext); },
SearchKeyword2:function(argKeyword,argContext,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'SearchKeyword2',false,{argKeyword:argKeyword,argContext:argContext},succeededCallback,failedCallback,userContext); },
GetLatLong:function(Placekey,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'GetLatLong',false,{Placekey:Placekey},succeededCallback,failedCallback,userContext); },
GetCurrencyConversion:function(FromCode,ToCode,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'GetCurrencyConversion',false,{FromCode:FromCode,ToCode:ToCode},succeededCallback,failedCallback,userContext); },
GetDialCodes:function(FromKey,ToKey,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'GetDialCodes',false,{FromKey:FromKey,ToKey:ToKey},succeededCallback,failedCallback,userContext); },
GetFolderReportItems:function(FolderKey,ShowLink,Selected,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'GetFolderReportItems',false,{FolderKey:FolderKey,ShowLink:ShowLink,Selected:Selected},succeededCallback,failedCallback,userContext); },
GetFolderItems:function(FolderKey,ShowLink,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'GetFolderItems',false,{FolderKey:FolderKey,ShowLink:ShowLink},succeededCallback,failedCallback,userContext); },
SaveReportBasic:function(ReportID,Name,Description,Status,SavedFolderKey,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'SaveReportBasic',false,{ReportID:ReportID,Name:Name,Description:Description,Status:Status,SavedFolderKey:SavedFolderKey},succeededCallback,failedCallback,userContext); },
SavePostcard:function(Temporary,Hidden,PostcardID,SavedFolderKey,Name,Description,Comments,DmartImageKey,ReferencedReportID,Emails,Names,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'SavePostcard',false,{Temporary:Temporary,Hidden:Hidden,PostcardID:PostcardID,SavedFolderKey:SavedFolderKey,Name:Name,Description:Description,Comments:Comments,DmartImageKey:DmartImageKey,ReferencedReportID:ReferencedReportID,Emails:Emails,Names:Names},succeededCallback,failedCallback,userContext); },
QuickPrint:function(Placekey,PlaceOptions,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'QuickPrint',false,{Placekey:Placekey,PlaceOptions:PlaceOptions},succeededCallback,failedCallback,userContext); },
SaveReport:function(Temporary,Hidden,ReportID,TemplateKey,ExcludeMaps,ExcludeImages,ExcludeBizCard,ReportTitle,Comments,Price,PreparedFor,ReferencedReportID,PostcardImageKey,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'SaveReport',false,{Temporary:Temporary,Hidden:Hidden,ReportID:ReportID,TemplateKey:TemplateKey,ExcludeMaps:ExcludeMaps,ExcludeImages:ExcludeImages,ExcludeBizCard:ExcludeBizCard,ReportTitle:ReportTitle,Comments:Comments,Price:Price,PreparedFor:PreparedFor,ReferencedReportID:ReferencedReportID,PostcardImageKey:PostcardImageKey},succeededCallback,failedCallback,userContext); },
AddPlaceToReport:function(ReportID,PlaceKey,PlaceOptions,Comments,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'AddPlaceToReport',false,{ReportID:ReportID,PlaceKey:PlaceKey,PlaceOptions:PlaceOptions,Comments:Comments},succeededCallback,failedCallback,userContext); },
AddPlacesToReport:function(ReportID,PlaceKeys,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'AddPlacesToReport',false,{ReportID:ReportID,PlaceKeys:PlaceKeys},succeededCallback,failedCallback,userContext); },
GetReportPlaces:function(ReportID,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'GetReportPlaces',false,{ReportID:ReportID},succeededCallback,failedCallback,userContext); },
GetReportDetails:function(ReportID,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'GetReportDetails',false,{ReportID:ReportID},succeededCallback,failedCallback,userContext); },
RemovePlaceFromReport:function(ReportID,PlaceKey,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'RemovePlaceFromReport',false,{ReportID:ReportID,PlaceKey:PlaceKey},succeededCallback,failedCallback,userContext); },
GetRecipActions:function(RecipientID,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'GetRecipActions',false,{RecipientID:RecipientID},succeededCallback,failedCallback,userContext); },
Resend:function(RecipientID,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'Resend',false,{RecipientID:RecipientID},succeededCallback,failedCallback,userContext); },
SaveReportDelivery:function(ReportID,EmailSubject,EMailBody,EmaiRecips,EmailNames,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'SaveReportDelivery',false,{ReportID:ReportID,EmailSubject:EmailSubject,EMailBody:EMailBody,EmaiRecips:EmaiRecips,EmailNames:EmailNames},succeededCallback,failedCallback,userContext); },
AddNewFolder:function(FolderName,ParentFolderKey,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'AddNewFolder',false,{FolderName:FolderName,ParentFolderKey:ParentFolderKey},succeededCallback,failedCallback,userContext); },
AddPlaceToFolder:function(PlaceGuids,Folderkey,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'AddPlaceToFolder',false,{PlaceGuids:PlaceGuids,Folderkey:Folderkey},succeededCallback,failedCallback,userContext); },
AddReportToFolder:function(PlaceGuids,Folderkey,SelFolderKey,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'AddReportToFolder',false,{PlaceGuids:PlaceGuids,Folderkey:Folderkey,SelFolderKey:SelFolderKey},succeededCallback,failedCallback,userContext); },
RemoveFromFolder:function(PlaceGuids,Folderkey,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'RemoveFromFolder',false,{PlaceGuids:PlaceGuids,Folderkey:Folderkey},succeededCallback,failedCallback,userContext); },
DeleteReports:function(PlaceGuids,Folderkey,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'DeleteReports',false,{PlaceGuids:PlaceGuids,Folderkey:Folderkey},succeededCallback,failedCallback,userContext); },
CopyReport:function(ReportID,NewName,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'CopyReport',false,{ReportID:ReportID,NewName:NewName},succeededCallback,failedCallback,userContext); },
DeleteReport2:function(ReportID,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'DeleteReport2',false,{ReportID:ReportID},succeededCallback,failedCallback,userContext); },
UnDeleteReport2:function(ReportID,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'UnDeleteReport2',false,{ReportID:ReportID},succeededCallback,failedCallback,userContext); },
DeleteFolder:function(Folderkey,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'DeleteFolder',false,{Folderkey:Folderkey},succeededCallback,failedCallback,userContext); },
UnDeleteFolder:function(Folderkey,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'UnDeleteFolder',false,{Folderkey:Folderkey},succeededCallback,failedCallback,userContext); },
RenameFolder:function(Folderkey,Name,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'RenameFolder',false,{Folderkey:Folderkey,Name:Name},succeededCallback,failedCallback,userContext); },
MoveFolder:function(Folderkey,ParentFolderKey,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'MoveFolder',false,{Folderkey:Folderkey,ParentFolderKey:ParentFolderKey},succeededCallback,failedCallback,userContext); },
SendRemindEmail:function(FromName,FromEMail,ToEMail,RemindType,SubscriptionID,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'SendRemindEmail',false,{FromName:FromName,FromEMail:FromEMail,ToEMail:ToEMail,RemindType:RemindType,SubscriptionID:SubscriptionID},succeededCallback,failedCallback,userContext); },
GetContentTemplate:function(TemplateID,Placekey,AllDests,ReportID,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'GetContentTemplate',false,{TemplateID:TemplateID,Placekey:Placekey,AllDests:AllDests,ReportID:ReportID},succeededCallback,failedCallback,userContext); },
SaveContentTemplate:function(TemplateID,TemplateName,Comments,Items,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'SaveContentTemplate',false,{TemplateID:TemplateID,TemplateName:TemplateName,Comments:Comments,Items:Items},succeededCallback,failedCallback,userContext); },
GetPostcardImages:function(GroupID,Keyword,nStart,nEnd,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'GetPostcardImages',false,{GroupID:GroupID,Keyword:Keyword,nStart:nStart,nEnd:nEnd},succeededCallback,failedCallback,userContext); },
AddEmailsToClientList:function(Emails,AddToList,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'AddEmailsToClientList',false,{Emails:Emails,AddToList:AddToList},succeededCallback,failedCallback,userContext); },
SaveClient:function(ClientKey,Email,Firstname,LastName,AddToList,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'SaveClient',false,{ClientKey:ClientKey,Email:Email,Firstname:Firstname,LastName:LastName,AddToList:AddToList},succeededCallback,failedCallback,userContext); },
GetClientList:function(succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'GetClientList',false,{},succeededCallback,failedCallback,userContext); },
DeleteClients:function(ClientKeys,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'DeleteClients',false,{ClientKeys:ClientKeys},succeededCallback,failedCallback,userContext); },
SaveOption:function(Optionname,OptionValue,succeededCallback, failedCallback, userContext) {
return this._invoke(ContentHandler.get_path(), 'SaveOption',false,{Optionname:Optionname,OptionValue:OptionValue},succeededCallback,failedCallback,userContext); }}
ContentHandler.registerClass('ContentHandler',Sys.Net.WebServiceProxy);
ContentHandler._staticInstance = new ContentHandler();
ContentHandler.set_path = function(value) { ContentHandler._staticInstance._path = value; }
ContentHandler.get_path = function() { return ContentHandler._staticInstance._path; }
ContentHandler.set_timeout = function(value) { ContentHandler._staticInstance._timeout = value; }
ContentHandler.get_timeout = function() { return ContentHandler._staticInstance._timeout; }
ContentHandler.set_defaultUserContext = function(value) { ContentHandler._staticInstance._userContext = value; }
ContentHandler.get_defaultUserContext = function() { return ContentHandler._staticInstance._userContext; }
ContentHandler.set_defaultSucceededCallback = function(value) { ContentHandler._staticInstance._succeeded = value; }
ContentHandler.get_defaultSucceededCallback = function() { return ContentHandler._staticInstance._succeeded; }
ContentHandler.set_defaultFailedCallback = function(value) { ContentHandler._staticInstance._failed = value; }
ContentHandler.get_defaultFailedCallback = function() { return ContentHandler._staticInstance._failed; }
ContentHandler.set_path("/ContentHandler.asmx");
ContentHandler.SendPassword= function(EMail,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.SendPassword(EMail,onSuccess,onFailed,userContext); }
ContentHandler.SearchKeyword3= function(argKeyword,argContext,argExtra,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.SearchKeyword3(argKeyword,argContext,argExtra,onSuccess,onFailed,userContext); }
ContentHandler.SearchKeyword2= function(argKeyword,argContext,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.SearchKeyword2(argKeyword,argContext,onSuccess,onFailed,userContext); }
ContentHandler.GetLatLong= function(Placekey,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.GetLatLong(Placekey,onSuccess,onFailed,userContext); }
ContentHandler.GetCurrencyConversion= function(FromCode,ToCode,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.GetCurrencyConversion(FromCode,ToCode,onSuccess,onFailed,userContext); }
ContentHandler.GetDialCodes= function(FromKey,ToKey,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.GetDialCodes(FromKey,ToKey,onSuccess,onFailed,userContext); }
ContentHandler.GetFolderReportItems= function(FolderKey,ShowLink,Selected,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.GetFolderReportItems(FolderKey,ShowLink,Selected,onSuccess,onFailed,userContext); }
ContentHandler.GetFolderItems= function(FolderKey,ShowLink,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.GetFolderItems(FolderKey,ShowLink,onSuccess,onFailed,userContext); }
ContentHandler.SaveReportBasic= function(ReportID,Name,Description,Status,SavedFolderKey,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.SaveReportBasic(ReportID,Name,Description,Status,SavedFolderKey,onSuccess,onFailed,userContext); }
ContentHandler.SavePostcard= function(Temporary,Hidden,PostcardID,SavedFolderKey,Name,Description,Comments,DmartImageKey,ReferencedReportID,Emails,Names,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.SavePostcard(Temporary,Hidden,PostcardID,SavedFolderKey,Name,Description,Comments,DmartImageKey,ReferencedReportID,Emails,Names,onSuccess,onFailed,userContext); }
ContentHandler.QuickPrint= function(Placekey,PlaceOptions,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.QuickPrint(Placekey,PlaceOptions,onSuccess,onFailed,userContext); }
ContentHandler.SaveReport= function(Temporary,Hidden,ReportID,TemplateKey,ExcludeMaps,ExcludeImages,ExcludeBizCard,ReportTitle,Comments,Price,PreparedFor,ReferencedReportID,PostcardImageKey,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.SaveReport(Temporary,Hidden,ReportID,TemplateKey,ExcludeMaps,ExcludeImages,ExcludeBizCard,ReportTitle,Comments,Price,PreparedFor,ReferencedReportID,PostcardImageKey,onSuccess,onFailed,userContext); }
ContentHandler.AddPlaceToReport= function(ReportID,PlaceKey,PlaceOptions,Comments,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.AddPlaceToReport(ReportID,PlaceKey,PlaceOptions,Comments,onSuccess,onFailed,userContext); }
ContentHandler.AddPlacesToReport= function(ReportID,PlaceKeys,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.AddPlacesToReport(ReportID,PlaceKeys,onSuccess,onFailed,userContext); }
ContentHandler.GetReportPlaces= function(ReportID,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.GetReportPlaces(ReportID,onSuccess,onFailed,userContext); }
ContentHandler.GetReportDetails= function(ReportID,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.GetReportDetails(ReportID,onSuccess,onFailed,userContext); }
ContentHandler.RemovePlaceFromReport= function(ReportID,PlaceKey,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.RemovePlaceFromReport(ReportID,PlaceKey,onSuccess,onFailed,userContext); }
ContentHandler.GetRecipActions= function(RecipientID,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.GetRecipActions(RecipientID,onSuccess,onFailed,userContext); }
ContentHandler.Resend= function(RecipientID,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.Resend(RecipientID,onSuccess,onFailed,userContext); }
ContentHandler.SaveReportDelivery= function(ReportID,EmailSubject,EMailBody,EmaiRecips,EmailNames,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.SaveReportDelivery(ReportID,EmailSubject,EMailBody,EmaiRecips,EmailNames,onSuccess,onFailed,userContext); }
ContentHandler.AddNewFolder= function(FolderName,ParentFolderKey,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.AddNewFolder(FolderName,ParentFolderKey,onSuccess,onFailed,userContext); }
ContentHandler.AddPlaceToFolder= function(PlaceGuids,Folderkey,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.AddPlaceToFolder(PlaceGuids,Folderkey,onSuccess,onFailed,userContext); }
ContentHandler.AddReportToFolder= function(PlaceGuids,Folderkey,SelFolderKey,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.AddReportToFolder(PlaceGuids,Folderkey,SelFolderKey,onSuccess,onFailed,userContext); }
ContentHandler.RemoveFromFolder= function(PlaceGuids,Folderkey,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.RemoveFromFolder(PlaceGuids,Folderkey,onSuccess,onFailed,userContext); }
ContentHandler.DeleteReports= function(PlaceGuids,Folderkey,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.DeleteReports(PlaceGuids,Folderkey,onSuccess,onFailed,userContext); }
ContentHandler.CopyReport= function(ReportID,NewName,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.CopyReport(ReportID,NewName,onSuccess,onFailed,userContext); }
ContentHandler.DeleteReport2= function(ReportID,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.DeleteReport2(ReportID,onSuccess,onFailed,userContext); }
ContentHandler.UnDeleteReport2= function(ReportID,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.UnDeleteReport2(ReportID,onSuccess,onFailed,userContext); }
ContentHandler.DeleteFolder= function(Folderkey,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.DeleteFolder(Folderkey,onSuccess,onFailed,userContext); }
ContentHandler.UnDeleteFolder= function(Folderkey,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.UnDeleteFolder(Folderkey,onSuccess,onFailed,userContext); }
ContentHandler.RenameFolder= function(Folderkey,Name,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.RenameFolder(Folderkey,Name,onSuccess,onFailed,userContext); }
ContentHandler.MoveFolder= function(Folderkey,ParentFolderKey,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.MoveFolder(Folderkey,ParentFolderKey,onSuccess,onFailed,userContext); }
ContentHandler.SendRemindEmail= function(FromName,FromEMail,ToEMail,RemindType,SubscriptionID,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.SendRemindEmail(FromName,FromEMail,ToEMail,RemindType,SubscriptionID,onSuccess,onFailed,userContext); }
ContentHandler.GetContentTemplate= function(TemplateID,Placekey,AllDests,ReportID,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.GetContentTemplate(TemplateID,Placekey,AllDests,ReportID,onSuccess,onFailed,userContext); }
ContentHandler.SaveContentTemplate= function(TemplateID,TemplateName,Comments,Items,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.SaveContentTemplate(TemplateID,TemplateName,Comments,Items,onSuccess,onFailed,userContext); }
ContentHandler.GetPostcardImages= function(GroupID,Keyword,nStart,nEnd,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.GetPostcardImages(GroupID,Keyword,nStart,nEnd,onSuccess,onFailed,userContext); }
ContentHandler.AddEmailsToClientList= function(Emails,AddToList,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.AddEmailsToClientList(Emails,AddToList,onSuccess,onFailed,userContext); }
ContentHandler.SaveClient= function(ClientKey,Email,Firstname,LastName,AddToList,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.SaveClient(ClientKey,Email,Firstname,LastName,AddToList,onSuccess,onFailed,userContext); }
ContentHandler.GetClientList= function(onSuccess,onFailed,userContext) {ContentHandler._staticInstance.GetClientList(onSuccess,onFailed,userContext); }
ContentHandler.DeleteClients= function(ClientKeys,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.DeleteClients(ClientKeys,onSuccess,onFailed,userContext); }
ContentHandler.SaveOption= function(Optionname,OptionValue,onSuccess,onFailed,userContext) {ContentHandler._staticInstance.SaveOption(Optionname,OptionValue,onSuccess,onFailed,userContext); }

