UNPKG

@zohodesk/haas-api-creator

Version:

This is used to call server side api call as js api call in client side - hc -api javascript es6

1 lines 32.3 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Component=t():e.Component=t()}(window,(function(){return function(e){var t={};function o(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)o.d(r,a,function(t){return e[t]}.bind(null,a));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)}([function(e,t,o){"use strict";function r(e){try{JSON.parse(e)}catch(e){return!1}return!0}o.r(t),o.d(t,"APIBuilder",(function(){return A})),o.d(t,"kb",(function(){return p})),o.d(t,"helpCenter",(function(){return y})),o.d(t,"community",(function(){return g})),o.d(t,"ticket",(function(){return C})),o.d(t,"desk",(function(){return T})),o.d(t,"marketplace",(function(){return k})),o.d(t,"asap",(function(){return f})),o.d(t,"users",(function(){return I})),o.d(t,"asapOldApi",(function(){return b})),o.d(t,"smsWebApi",(function(){return v}));let a=e=>{if(!e)return!1;return e.constructor=={}.constructor};var s=(e,t)=>{var o=function(e,o,s,i,l){return new Promise((async function(n,m){var c=new XMLHttpRequest;l&&l.addEventListener("abort",()=>{c.abort()});var d=null;if((e=>!!e&&("undefined"!=typeof FormData?e.constructor==(new FormData).constructor:"function"==typeof e))(s))d=s;else if(!a(s)||"POST"!==e&&"PUT"!==e&&"PATCH"!==e&&"DELETE"!==e){var u="";if(a(s)){var h=0;for(var p in s)s.hasOwnProperty(p)&&(h++&&(u+="&"),u+=encodeURIComponent(p)+"="+encodeURIComponent(s[p]))}u&&(o+=-1==o.lastIndexOf("?")?"?"+u:"&"+u)}else d=JSON.stringify(s);if("DOWNLOADFILE"==e&&(c.responseType="arraybuffer",e="GET"),"POSTPARAMS"==e&&(e="POST"),await c.open(e,o,!0),t){let e=Object.assign({},t);Object.keys(e).forEach(t=>{let o=e[t];c.setRequestHeader(t,o)})}c.send(d),c.addEventListener("loadend",(function(){if("arraybuffer"!==c.responseType)if(200===this.status||201===this.status||204===this.status){var t=this.response?this.response:this.responseText;if(t){var o=r(t);n(o?JSON.parse(t):t)}else n(null)}else{var a=this.response?this.response:this.responseText;if(a)a=(o=r(a))?JSON.parse(a):a;m({response:{errorResponse:{status:this.status,statusText:this.statusText,servererror:!0,clientError:!1,data:a,method:e,abortSignal:l}}})}else 200===this.status&&n({content:this.response,contentType:c.getResponseHeader("Content-Type")})})),c.upload&&c.upload.addEventListener("progress",(function(e){if(e.lengthComputable){var t=e.loaded/e.total;t=parseInt(100*t),i&&i(t)}}),!1),c.onerror=function(t){var o=this.response?this.response:this.responseText;o&&(o=r(o)?JSON.parse(o):o);m({response:{errorResponse:{status:this.status,statusText:this.statusText,servererror:!1,clientError:!0,data:o,method:e,abortSignal:l}}})}}))};return{get:function(t,r,a){return o("GET",e,t,r,a)},post:function(t,r,a){return o("POST",e,t,r,a)},postAsParams:function(t,r,a){return o("POSTPARAMS",e,t,r,a)},put:function(t,r,a){return o("PUT",e,t,r,a)},delete:function(t,r,a){return o("DELETE",e,t,r,a)},downloadFile:function(t,r,a){return o("DOWNLOADFILE",e,t,r,a)},patch:function(t,r,a){return o("PATCH",e,t,r,a)}}};let i=e=>"undefined"!=typeof FormData&&e?e.constructor==(new FormData).constructor:"function"==typeof e;var l="get",n="post",m="put",c="patch",d="delete",u=class{constructor(e,t,o,r){this.prefixUrl=e,this.defaultParams=t,this.authHeaders=o,this.options=r}create(e,t){return((e,t)=>{var o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};var n=i(s),m=Object.assign({},n?l:s);if(Object.keys(m).length)for(var c=a.split("/"),d=0,u=c.length;d<u;d++){var h=(k=c[d]).replace(":","");if(k&&":"===k.charAt(0)&&m.hasOwnProperty(h)){var p=m[h];a=a.replace("/"+k,p?"/"+p:""),a=a.replace(k+"/",p?p+"/":""),delete m[h]}}let y=n?s:m;l=n?m:l;let g=Object.assign({},l,t.defaultParams(e)),C="",T=0;for(var k in g)T>0?C+=`&${k}=${g[k]}`:(C+=`${k}=${g[k]}`,T=1);if(C=C?"?"+C:"",!n){var f=y?Object.keys(y).length:0;y=f>0?y:null}if(o&&y&&(y=Object.assign({},o||{},y)),r&&r.length&&y){let e={};r.forEach(t=>{y.hasOwnProperty(t)&&(e[t]=y[t])}),y=e}return{url:t.prefixUrl(e)+a+C,param:y}},r=(e,r,a)=>function(i){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,m=arguments.length>3?arguments[3]:void 0,c="function"==typeof t.authHeaders?t.authHeaders(e):null,d=t.customOptions||{};if("function"==typeof l||"function"==typeof n){let t="function"==typeof l?l:n,u="function"==typeof l?n:m,h=o=>(d.hideLoader&&d.hideLoader(e),t?t(o):o),p=t=>(d.hideLoader&&d.hideLoader(e),u?u(t):t),y=o(e,r,a,i,"function"==typeof l?null:l);d.showLoader&&d.showLoader(e);let{param:g}=y;return g&&g.headers&&(c=Object.assign(c||{},g.headers),delete g.headers),s(y.url,c)[e](y.param).then(h,p)}let{payload:u={},headers:h,parameters:p,success:y,failure:g,progressReport:C,abortSignal:T}=l;c=c?Object.assign(c,h):h;let k=t=>(d.hideLoader&&d.hideLoader(e),y?y(t):t),f=t=>(d.hideLoader&&d.hideLoader(e),g?g(t):t),I=o(e,r,a,i,u,p);return d.showLoader&&d.showLoader(e),s(I.url,c)[e](I.param,C,T).then(k,f)},a={};for(var l in e)for(var n=l,m=e[l],c=m.url,d=m.method,u=m.defaultParameters,h=m.allowedParameters,p=n.split("."),y=a,g=0;g<p.length;g++){var C=p[g];-1==C.indexOf(":")&&(C&&void 0===y[C]&&(y[C]=r(d,u,h).bind(null,c)),C&&void 0!==y[C]&&(y=y[C]))}return a})(e||{},{defaultParams:this.defaultParams?this.defaultParams.bind(null,t):null,prefixUrl:this.prefixUrl?this.prefixUrl.bind(null,t):"",authHeaders:this.authHeaders?this.authHeaders.bind(null,t):null,customOptions:this.options?this.options:null})}},h=u,p={articles:{url:"articles",method:l},"articles.get":{url:"articles/:articleId",method:l},"articles.preview":{url:"articles/preview",method:n},"articles.versionList":{url:"articles/:articleId/versionList",method:l},"articles.create":{url:"articles",method:n},"articles.update":{url:"articles/:articleId",method:c},"articles.quickEdit":{url:"articles/:articleId/quickEdit",method:n},"articles.restore":{url:"articles/:articleId/restore",method:n},"articles.permalinks":{url:"articles/:articleId/permalinks",method:l},"articles.permalinks.update":{url:"articles/:articleId/permalinks",method:n},"articles.permalinks.removeSecondaryPermalink":{url:"articles/:articleId/permalinks/removeSecondaryPermalink",method:n},"articles.checkPermalinkAvailability":{url:"articles/checkPermalinkAvailability",method:n},"articles.history":{url:"articles/:articleId/history",method:l},"articles.attachments":{url:"articles/:articleId/attachments",method:l},"articles.attachments.create":{url:"articles/:articleId/attachments",method:n},"articles.associateAttachments":{url:"articles/:articleId/associateAttachments",method:n},"articles.dissociateAttachments":{url:"articles/:articleId/dissociateAttachments",method:n},"articles.getDocsResourcesInfo":{url:"articles/docsResourcesInfo",method:l},"articleAttachments.create":{url:"articleAttachments",method:n},"articles.discardMany":{url:"articles/discardMany",method:n},"articles.moveToTrash":{url:"articles/moveToTrash",method:n},articleTranslations:{url:"articleTranslations",method:l},"articleTranslations.search":{url:"articleTranslations/search",method:l},"articleTranslations.moveToTrash":{url:"articleTranslations/moveToTrash",method:n},"articleTranslations.updateMany":{url:"articleTranslations/updateMany",method:n},"articles.updateMany":{url:"articles/updateMany",method:n},"articles.count":{url:"articles/count",method:l},"translation.count":{url:"articleTranslations/count",method:l},articlesDashboard:{url:"articlesDashboard",method:l},"articleDashboard.statistics":{url:"articleDashboard/statistics",method:l},"articleDashboard.reports":{url:"articleDashboard/reports",method:l},"articleDashboard.counts":{url:"articleDashboard/counts",method:l},"articles.trends":{url:"articles/trends",method:l},"articles.search":{url:"articles/search",method:l},"articles.searchKeywords":{url:"articles/searchKeywords",method:l},"articles.usedTickets":{url:"articles/:articleId/usedTickets",method:l},convertFileContentToHtml:{url:"convertFileContentToHtml",method:n},"articles.translations.create":{url:"articles/:articleId/translations",method:n},"articles.translations.update":{url:"articles/:articleId/translations/:locale",method:c},"articles.translations.quickEdit":{url:"articles/:articleId/translations/:locale/quickEdit",method:n},"articles.translations.autoDraft":{url:"articles/:articleId/translations/:locale/autoDraft",method:n},"articles.translations.restoreVersion":{url:"articles/:articleId/translations/:locale/restoreVersion",method:n},"articles.translations.discardDrafts":{url:"articles/:articleId/translations/:locale/discardDrafts",method:n},"articles.translations.discardMany":{url:"articleTranslations/discardDrafts",method:n},"articles.translations.get":{url:"articles/:articleId/translations/:locale",method:l},"articles.translations":{url:"articles/:articleId/translations",method:l},"articles.translations.versions":{url:"articles/:articleId/translations/:locale/versions",method:l},"articles.translations.versionDiff":{url:"articles/:articleId/translations/:locale/versionDiff",method:l},"articles.translations.updateVersionNotes":{url:"articles/:articleId/translations/:locale/updateVersionNotes",method:n},"articles.outdateTranslations":{url:"articles/:articleId/outdateTranslations",method:n},"articles.translation.attachments":{url:"articles/:articleId/translations/:locale/attachments",method:l},"articles.translation.attachments.uploadAndAssociate":{url:"articles/:articleId/translations/:locale/attachments",method:n},"articles.translation.attachFiles":{url:"articles/:articleId/translations/:locale/associateAttachments",method:n},"articles.translations.dissociateAttachments":{url:"articles/:articleId/translations/:locale/dissociateAttachments",method:n},"articles.translations.like":{url:"articles/:articleId/translations/:locale/like",method:n},"articles.translations.disLike":{url:"articles/:articleId/translations/:locale/dislike",method:n},"articles.translations.history":{url:"articles/:articleId/translations/:locale/history",method:l},"articles.insights":{url:"articles/:articleId/insights",method:l},"articles.translations.insights":{url:"articles/:articleId/translations/:locale/insights",method:l},"articles.translations.permalinks":{url:"articles/:articleId/translations/:locale/permalinks",method:l},"articles.translations.permalinks.update":{url:"articles/:articleId/translations/:locale/permalinks",method:n},"articles.translations.permalinks.removeSecondaryPermalink":{url:"articles/:articleId/translations/:locale/permalinks/removeSecondaryPermalink",method:n},"articles.translations.delete":{url:"articles/:articleId/translations/:locale",method:d},"articles.comments.create":{url:"articles/:articleId/comments",method:n},"articles.translationsComments.create":{url:"articles/:articleId/translations/:locale/comments",method:n},"articles.comments.update":{url:"articles/:articleId/comments/:commentId",method:c},"articles.translationsComments.update":{url:"articles/:articleId/translations/:locale/comments/:commentId",method:c},"articles.comments.delete":{url:"articles/:articleId/comments/:commentId",method:d},"articles.translationsComments.delete":{url:"articles/:articleId/translations/:locale/comments/:commentId",method:d},"articles.comments.get":{url:"articles/:articleId/comments/commentId",method:l},"articles.translationsComments.get":{url:"articles/:articleId/translations/:locale/comments/:commentId",method:l},"articles.comments.getall":{url:"articles/:articleId/comments",method:l},"articles.translationsComments.getall":{url:"articles/:articleId/translations/:locale/comments",method:l},"articles.updateTranslationState":{url:"articles/:articleId/updateTranslationState",method:n},kbCategory:{url:"kbCategory",method:l},"kbCategory.create":{url:"kbCategory",method:n},"kbCategory.update":{url:"kbCategory/:categoryId",method:c},"kbCategory.delete":{url:"kbCategory/:categoryId",method:d},"kbCategory.moveAndDelete":{url:"kbCategory/:categoryId/moveAndDelete",method:n},"kbCategory.restore":{url:"kbCategory/trashedCategories/restore",method:n},"kbCategory.repositionArticles":{url:"kbCategory/:articleId/repositionArticles",method:l},reviewConfiguration:{url:"kbCategory/reviewConfiguration",method:l},"kbCategoryLogo.create":{url:"kbCategoryLogo",method:n},"kbCategory.permalinks":{url:"kbCategory/:categoryId/permalinks",method:l},"kbCategory.permalinks.update":{url:"kbCategory/:categoryId/permalinks/add",method:n},"kbCategory.permalinks.removeSecondaryPermalink":{url:"kbCategory/:categoryId/permalinks/removeSecondaryPermalink",method:n},"articles.feedbacks.list":{url:"articles/:articleId/feedbacks",method:l},"articles.feedbacks.listAll":{url:"articleFeedbacks",method:l},"articles.translations.feedbacks":{url:"articles/:articleId/translations/:locale/feedbacks",method:l},"articles.feedbacks.get":{url:"articleFeedbacks/:feedbackId",method:l},"articles.feedbacks.patch":{url:"articleFeedbacks/:feedbackId",method:c},"articles.feedbacks.delete":{url:"articleFeedbacks/:feedbackId",method:d},"articles.feedbacks.addAsTicket":{url:"articleFeedbacks/:feedbackId/addAsTicket",method:n},"articles.feedbacks.resolution.save":{url:"articleFeedbacks/:feedbackId/resolution",method:n},kbPreferences:{url:"kbPreferences",method:l},"kbPreferences.update":{url:"kbPreferences",method:c},"repositionArticles.get":{url:"kbCategory/:categoryId/repositionArticles",method:l},"repositionArticles.update":{url:"kbCategory/:categoryId/repositionArticles",method:n},moveCategory:{url:"kbCategory/:categoryId/moveCategory",method:n},languages:{url:"languages",method:l},"displayPreferences.save":{url:"displayPreferences",method:n},"displayPreferences.get":{url:"displayPreferences",method:l},"displayPreferences.articlePresence":{url:"displayPreferences/articlePresence",method:l},agents:{url:"agents",method:l},agentById:{url:"agent/:agentId",method:l},tags:{url:"tags/search",method:l},"rootCategories.get":{url:"kbRootCategories",method:l},"trashedTranslations.get":{url:"articleTranslations/trashedTranslations",method:l},"trashedTranslations.count":{url:"articleTranslations/trashedTranslations/count",method:l},"trashedTranslations.restore":{url:"articleTranslations/trashedTranslations/restore",method:n},"trashedTranslations.delete":{url:"articleTranslations/trashedTranslations/delete",method:n},"trashedCategories.get":{url:"kbCategory/trashedCategories",method:l},"trashedCategories.count":{url:"kbCategory/trashedCategories/count",method:l},"trashedCategories.restore":{url:"kbCategory/trashedCategories/restore",method:n},"trashedCategories.delete":{url:"kbCategory/trashedCategories/delete",method:n},"kbRootCategory.add":{url:"kbRootCategories",method:n},"kbRootCategory.get":{url:"kbRootCategories/:categoryId",method:l},"kbRootCategory.update":{url:"kbRootCategories/:categoryId",method:c},"kbRootCategories.reorder":{url:"kbRootCategories/reorder",method:n},"categoryTree.get":{url:"kbRootCategories/:categoryId/categoryTree",method:l},"kbRootCategory.moveArticlesAndTrash":{url:"kbRootCategories/:categoryId/moveArticlesAndTrash",method:n},"kbSections.add":{url:"kbRootCategories/:categoryId/kbSections",method:n},"kbSections.get":{url:"kbSections/:categoryId",method:l},"kbSections.reorder":{url:"kbSections/reorder",method:n},"kbSection.move":{url:"kbSections/:categoryId/move",method:n},"kbSection.moveArticlesAndTrash":{url:"kbSections/:categoryId/moveArticlesAndTrash",method:n},"categoryReviewOwners.get":{url:"kbRootCategories/:categoryId/reviewOwners",method:l},"categoryReviewOwners.add":{url:"kbRootCategories/:categoryId/reviewOwners/add",method:n},"categoryReviewOwners.remove":{url:"kbRootCategories/:categoryId/reviewOwners/remove",method:n},"articles.countByCategoryIds":{url:"articles/countByCategoryIds",method:l},uploadCloudAttachment:{url:"docsWorkspace/:workspaceId/uploadCloudAttachment",method:n},"kbRootCategory.reviewOwners":{url:"kbRootCategories/:categoryId/reviewOwners",method:"get"},"kbRootCategory.reviewOwners.add":{url:"kbRootCategories/:categoryId/reviewOwners/add",method:"post"},"kbRootCategory.reviewOwners.remove":{url:"kbRootCategories/:categoryId/reviewOwners/remove",method:"post"},"groups.get":{url:"groups",method:"get"},"kbRootCategory.users":{url:"kbRootCategories/:categoryId/users",method:"get"},"kbRootCategory.userDetail":{url:"kbRootCategories/:categoryId/users/:userId",method:"get"},"kbSection.get":{url:"kbSections/:categoryId",method:"get"},"kbSection.update":{url:"kbSections/:categoryId",method:"patch"},"kbSection.add":{url:"kbSections",method:"post"},"kbRootCategory.permalinks.add":{url:"kbRootCategories/:categoryId/translations/:locale/permalinks/add",method:"post"},"kbRootCategory.permalinks.get":{url:"kbRootCategories/:categoryId/translations/:locale/permalinks",method:"get"},"kbRootCategory.permalinks.remove":{url:"kbRootCategories/:categoryId/translations/:locale/permalinks/remove",method:"post"},"kbRootCategory.permalinks.update":{url:"kbRootCategories/:categoryId/translations/:locale/permalinks",method:n},"kbSection.permalinks.update":{url:"kbSections/:categoryId/translations/:locale/permalinks",method:n},"kbSection.permalinks.add":{url:"kbSections/:categoryId/translations/:locale/permalinks/add",method:"post"},"kbSection.permalinks.get":{url:"kbSections/:categoryId/translations/:locale/permalinks",method:"get"},"kbSection.permalinks.remove":{url:"kbSections/:categoryId/translations/:locale/permalinks/remove",method:"post"},shareDocsWorkspace:{url:"articles/shareDocsWorkspace",method:"post"},"helpCenter.get":{url:"helpCenters/:helpCenterId",method:"get"},scheduleAutoTranslate:{url:"articles/:articleId/scheduleAutoTranslate",method:"post"},"articleTranslations.concurrentEditStatus":{url:"articleTranslations/:articleId/concurrentEditStatus",method:"get"},"translations.concurrentEditStatus":{url:"articles/:articleId/translations/:locale/concurrentEditStatus",method:"get"},convertCloudDocumentToHtml:{url:"convertCloudDocumentToHtml",method:"post"},"articles.interactedUsers":{url:"articles/:articleId/translations/:locale/interactedUsers",method:l},"articles.interactedUsers.count":{url:"articles/:articleId/translations/:locale/interactedUsers/count",method:l},"articles.clone":{url:"articles/:articleId/translations/:locale/clone",method:n},googleAnalyticsReports:{url:"ganalytics/reports",method:"get"},articleTags:{url:"articleTags",method:"get"},"articles.translations.usedTickets":{url:"articles/:articleId/translations/:locale/usedTickets",method:"get"},"articles.translations.undo":{url:"articles/:articleId/translations/:locale/undoVote",method:n},"articles.translations.feedback":{url:"articles/:articleId/translations/:locale/feedbacks",method:n},"comments.uploadAttachment":{url:"uploads",method:n},"comments.uploadCloudAttachment":{url:"uploadCloudAttachment",method:n},"articles.insights.viewsCount":{url:"articleInsights/count",method:l},"articles.insights.viewsList":{url:"articleInsights/interactedUsers",method:l},"articles.comments.addAsTicket":{url:"articles/:articleId/translations/:locale/comments/:commentId/convertAsTicket",method:n},"comments.deleteTempAttach":{url:"uploads/:id",method:d},"articles.translations.resetMetrics":{url:"articles/:articleId/translations/:locale/insights/reset",method:n},"articles.translations.followArticle":{url:":moduleAPIName/:entityId/follow",method:n},"articles.translations.unfollowArticle":{url:":moduleAPIName/:entityId/unfollow",method:n},"articles.translations.followersCount":{url:":moduleAPIName/:entityId/followersCount",method:l},"articles.translations.followersDetails":{url:":moduleAPIName/:entityId/followers",method:l},"file.export":{url:"fileExport",method:n},"file.export.status":{url:"fileExport/status",method:l},"comments.trashed":{url:"kbComments/trashedComments",method:l},"comments.restore":{url:"kbComments/trashedComments/restore",method:n},"comments.delete":{url:"kbComments/trashedComments/delete",method:n},"comments.trashed.count":{url:"kbComments/trashedComments/count",method:l},"comments.moveToTrash":{url:"kbComments/moveToTrash",method:n},"comments.approve":{url:"kbComments/approve",method:n},"comments.moderated":{url:"kbComments/moderatedComments",method:l},"comments.moderated.count":{url:"kbComments/moderatedComments/count",method:l},"articles.translations.answer":{url:"articles/:articleId/translations/:locale/answer",method:l},"kbRootCategory.moderators.add":{url:"kbRootCategories/:categoryId/moderators/add",method:n},"kbRootCategory.moderators.remove":{url:"kbRootCategories/:categoryId/moderators/remove",method:n}},y={"helpCenter.get":{url:"helpCenters/:helpCenterId",method:l},"helpCenter.imageUpload":{url:"helpCenters/:helpCenterId/imageUpload",method:n},page:{url:"helpCenter/:helpCenterId/page/:pageId",method:l},"page.update":{url:"helpCenter/:helpCenterId/page/:pageId",method:c},pages:{url:"helpCenter/:helpCenterId/pages",method:l},sitemaps:{url:"helpCenters/:helpCenterId/sitemaps",method:l},"sitemaps.download":{url:"helpCenters/:helpCenterId/sitemaps/download",method:l},"sitemaps.generate":{url:"helpCenters/:helpCenterId/sitemaps",method:n},"preferences.update":{url:"helpCenter/:helpCenterId/preference",method:c},"preferences.get":{url:"helpCenter/:helpCenterId/preference",method:l},"themes.get":{url:"themes",method:l},"userAuthentication.get":{url:"helpCenter/:helpCenterId/userAuthentications",method:l},"userAuthentication.patch":{url:"helpCenter/:helpCenterId/userAuthentications/:authType",method:c},"smsTemplates.get":{url:"helpCenter/:helpCenterId/smsTemplates",method:l},"smsTemplate.get":{url:"helpCenter/:helpCenterId/smsTemplates/:smsTemplateId",method:l},"smsTemplate.update":{url:"helpCenter/:helpCenterId/smsTemplates/:smsTemplateId",method:c},"smsTemplates.associate":{url:"helpCenter/:helpCenterId/smsTemplates/associate",method:n},"jwt.get":{url:"helpCenters/:helpCenterId/jwt",method:l},"jwt.update":{url:"helpCenters/:helpCenterId/jwt",method:c},"jwt.create":{url:"helpCenters/:helpCenterId/jwt",method:n},"jwt.delete":{url:"helpCenters/:helpCenterId/jwt",method:d},"jwtSecret.get":{url:"helpCenters/:helpCenterId/jwt/secret",method:l},"federatedLoginProviders.get":{url:"helpCenters/:helpCenterId/federatedLogins",method:l},"federatedLoginProvider.delete":{url:"helpCenters/:helpCenterId/federatedLogins/:provider",method:d},"federatedLoginProvider.update":{url:"helpCenters/:helpCenterId/federatedLogins/:provider",method:n}},g={communityCategory:{url:"communityCategory",method:l},"communityCategory.follow":{url:"communityCategory/:id/follow",method:n},"communityCategory.unfollow":{url:"communityCategory/:id/unfollow",method:n},"communityCategory.followers":{url:"communityCategory/:id/followers",method:l},communityAddTopic:{url:"communityTopics",method:n},communityDraftTopic:{url:"communityTopics/saveDraft",method:n},communityUpdateDraft:{url:"communityTopics/:id/updateDraft",method:m},communityPublishDraft:{url:"communityTopics/:id/publishDraft",method:n},communityDeleteDraft:{url:"communityTopics/:id/deleteDraft",method:d},communityTopics:{url:"communityTopics",method:l},communityTopContributors:{url:"community/topContributors",method:l},communityModerationTopics:{url:"communityModeration/topics",method:l},communityModerationComments:{url:"communityModeration/comments",method:l},communityModerationStats:{url:"communityModeration/counts",method:l},communityModeratedTopics:{url:"communityModeratedTopics",method:l},communityApproveAllAwaitingTopics:{url:"community/approveAllAwaitingTopics",method:n},communityApproveAllSpamTopics:{url:"community/approveAllSpamTopics",method:n},communityApproveAllAwaitingComments:{url:"community/approveAllAwaitingComments",method:n},communityApproveAllSpamComments:{url:"community/approveAllSpamComments",method:n},communityTrashAllAwaitingTopics:{url:"community/trashAllAwaitingTopics",method:n},communityTrashAllSpamTopics:{url:"community/trashAllSpamTopics",method:n},communityTrashAllAwaitingComments:{url:"community/trashAllAwaitingComments",method:n},communityTrashAllSpamComments:{url:"community/trashAllSpamComments",method:n},communityUnModerateTopics:{url:"communityTopics/unmoderate",method:n},communityTopicAddAsTicket:{url:"communityTopics/:id/addAsTicket",method:n},communityTopicsApprove:{url:"communityTopics/approve",method:n},communityCommentsApprove:{url:"communityComments/approve",method:n},communityTopicsRestore:{url:"communityTopics/restore",method:n},communityTopicsMoveToTrash:{url:"communityTopics/moveToTrash",method:n},communityTopicsDelete:{url:"communityTopics",method:d},communityCommentsRestore:{url:"communityComments/restore",method:n},communityCommentsMoveToTrash:{url:"communityComments/moveToTrash",method:n},communityCommentsDelete:{url:"communityComments",method:d},communityModeratedUsers:{url:"communityModeratedUsers",method:l},communityTopic:{url:"communityTopics/:id",method:l},communityTopicByPermalink:{url:"communityTopicByPermalink",method:l},communityUpdateTopic:{url:"communityTopics/:id",method:c},communityTopicComments:{url:"communityTopics/:id/comments",method:l},"communityComments.create":{url:"communityTopics/:id/comments",method:n},"communityReply.create":{url:"communityTopics/:id/comments/:commentId/replies",method:n},communityUpdateComment:{url:"communityTopics/:id/comments/:commentId",method:c},communityUpdateReply:{url:"communityTopics/:id/comments/:commentId/replies/:replyId",method:c},communityCommentList:{url:"communityTopics/:id/comments",method:n},communityGetSingleComment:{url:"communityTopics/:id/comments/:commentId",method:l},communityDeleteComment:{url:"communityTopics/:id/comments/:commentId/moveToTrash",method:n},communityDeleteReply:{url:"communityTopics/:id/comments/:commentId/replies/:replyId/moveToTrash",method:n},communityAddAttachement:{url:"communityAttachments",method:n},communityGetTopicAttachment:{url:"communityTopics/:id/attachments/:attachementId/content",method:l},communityGetCommentAttachment:{url:"communityTopics/:id/comments/:commentId/attachments/:attachmentId/content",method:l},communityGetReplyAttachment:{url:"communityTopics/:id/replies/:replyId/attachments/:attachmentId/content",method:l},communityGetTicketAssociated:{url:"communityTopics/:id/ticket",method:l},communityTopicMarkSpam:{url:"communityTopics/:id/markSpam",method:n},communityMultipleTopicMarkSpam:{url:"community/markAllTopicsAsSpam",method:n},communityCommentMarkSpam:{url:"communityTopics/:id/comments/:commentId/markSpam",method:n},communityMultipleCommentMarkSpam:{url:"community/markAllCommentsAsSpam",method:n},communityLockTopic:{url:"communityTopics/:id/lock",method:n},communityUnlockTopic:{url:"communityTopics/:id/unlock",method:n},communityTopicLike:{url:"communityTopics/:id/like",method:n},communityTopicUnLike:{url:"communityTopics/:id/unlike",method:n},communityFollowTopic:{url:"communityTopics/:id/follow",method:n},communityUnFollowTopic:{url:"communityTopics/:id/unfollow",method:n},communityModerateTopic:{url:"communityTopics/:id/moderate",method:n},communityUnModerateTopic:{url:"communityTopics/:id/unmoderate",method:n},communityTrashTopic:{url:"communityTopics/:id/moveToTrash",method:n},communityMoveTopic:{url:"communityTopics/:id/move",method:n},communityAssociateTags:{url:"communityTopics/:id/associateTags",method:n},communityDeleteTags:{url:"communityTopics/:id/dissociateTags",method:n},communityTopicFollowers:{url:"communityTopics/:id/followers",method:l},communityTopicParticipants:{url:"communityTopics/:id/participants",method:l},communityTopicVoters:{url:"communityTopics/:id/voters",method:l},communityTopicVotersTrend:{url:"communityTopics/:id/voters/trend",method:l},allCommunityCategories:{url:"allCommunityCategory",method:l},topicTypeTrend:{url:"community/topicTypeTrend",method:l},uniqueUsersParticipationTrend:{url:"community/uniqueUsersParticipationTrend",method:l},"forums.sort":{url:"communityCategory/:id/sort",method:n},"category.create":{url:"communityCategory",method:n},"category.update":{url:"communityCategory/:id",method:c},"forum.create":{url:"communityCategory",method:n},"category.get":{url:"communityCategory/:id",method:l},"category.lock":{url:"communityCategory/:id/lock",method:n},"category.enable":{url:"communityCategory/:id/enable",method:n},"category.disable":{url:"communityCategory/:id/disable",method:n},"categories.sort":{url:"communityCategory/sort",method:n},"category.delete":{url:"communityCategory/:id",method:d},"category.move":{url:"communityCategory/:id/move",method:n},communityUsersUnmoderate:{url:"communityUsers/unmoderate",method:n},topicType:{url:"communityTopicTypes",method:l},user:{url:"communityUsers/:id",method:l},"user.stats":{url:"communityUsers/:id/stats",method:l},"user.updateModeration":{url:"communityUsers/:id",method:c},"user.follow":{url:"communityUsers/:id/follow",method:n},"user.unfollow":{url:"communityUsers/:id/unfollow",method:n},"user.updateBlocking":{url:"users/:id",method:c},"user.topics.moveToTrash":{url:"communityUsers/:id/topics/moveToTrash",method:n},"user.comments.moveToTrash":{url:"communityUsers/:id/comments/moveToTrash",method:n},"category.add.logo":{url:"communityCategoryLogo",method:n},"category.get.logo":{url:"communityCategory/:categoryId/logo/:logoId",method:l},"community.licenseInfo":{url:"community/licenseInfo",method:l},communityMyDraftedTopics:{url:"communityMyDraftedTopics",method:l},searchTags:{url:"communityTags",method:l},mentions:{url:"mentions",method:l},communityTopicPermalink:{url:"communityTopics/:topicId/permalinks",method:l},communityUpdateTopicPermalink:{url:"communityTopics/:topicId/permalinks",method:c},communityInitPermissions:{url:"communityInitPermissions",method:l},communityTopicsSearch:{url:"communityTopics/search",method:l},communityTopicsCount:{url:"communityTopics/count",method:l},communityCommentsCount:{url:"communityComments/count",method:l},topicInsightsCount:{url:"communityTopicsInsights/count",method:l},topicInsightsUsers:{url:"communityTopicsInsights/interactedUsers",method:l}},C={"tickets.count":{url:"ticketsCount",method:l}},T={"department.logo.update":{url:"departments/:departmentId/logo",method:n},globalSearch:{url:"globalSearch",method:n},getCustomViews:{url:"views",method:l}},k={myInstalledExtensionWidgets:{url:"myInstalledExtensionWidgets",method:l},myInstalledExtensions:{url:"myInstalledExtensions",method:l},myInstalledExtension:{url:"myInstalledExtensions/:id",method:l}},f={"asap.apps":{url:"asapApps",method:l},"asap.new":{url:"asapApp",method:n},"asap.app":{url:"asapApps/:id",method:l},"asap.update":{url:"asapApps/:id",method:c},"asap.deleteIt":{url:"asapApps/:id",method:d},"asap.uploadp12File":{url:"asapApps/:id/uploadAPNCertificate",method:n}},I={mentions:{url:"mentions",method:l},myPreferences:{url:"myPreferences",method:l},updateMyPreferences:{url:"myPreferences",method:c}},b={departmentChatDetails:{url:"support/:portalName/AsapwebSetup.do",method:l}},v={"smsAuthInitConf.get":{url:"api/web/helpCenter/:helpCenterId/smsAuthInitConf",method:l},"smsAuthentication.post":{url:"api/web/helpCenter/:helpCenterId/smsAuthentication/init",method:n},"userAuthInitConf.get":{url:"api/web/helpCenter/:helpCenterId/userAuthInitConfig",method:l}},A=(t.default=function(e,t,o,r,a){for(var s=new u(t,o,r,a),i={},l=Object.keys(e),n=0,m=l.length;n<m;n++){var c=l[n];i[c]=s.create(e[c],c)}return i},h)}])}));