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 34.7 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 D})),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 f})),o.d(t,"asap",(function(){return I})),o.d(t,"users",(function(){return k})),o.d(t,"asapOldApi",(function(){return b})),o.d(t,"smsWebApi",(function(){return v})),o.d(t,"helpCenterWebApi",(function(){return A})),o.d(t,"training",(function(){return w})),o.d(t,"agentPortal",(function(){return P})),o.d(t,"tcInteg",(function(){return S})),o.d(t,"layouts",(function(){return R}));let a=e=>{if(!e)return!1;return e.constructor=={}.constructor};var s=(e,t)=>{var o=function(e,o,s,l,i){return new Promise((async function(n,m){var c=new XMLHttpRequest;i&&i.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:i}}})}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),l&&l(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:i}}})}}))};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 l=e=>"undefined"!=typeof FormData&&e?e.constructor==(new FormData).constructor:"function"==typeof e;var i="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]:{},i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};var n=l(s),m=Object.assign({},n?i:s);if(Object.keys(m).length)for(var c=a.split("/"),d=0,u=c.length;d<u;d++){var h=(f=c[d]).replace(":","");if(f&&":"===f.charAt(0)&&m.hasOwnProperty(h)){var p=m[h];a=a.replace("/"+f,p?"/"+p:""),a=a.replace(f+"/",p?p+"/":""),delete m[h]}}let y=n?s:m;i=n?m:i;let g=Object.assign({},i,t.defaultParams(e)),C="",T=0;for(var f in g)T>0?C+=`&${f}=${g[f]}`:(C+=`${f}=${g[f]}`,T=1);if(C=C?"?"+C:"",!n){var I=y?Object.keys(y).length:0;y=I>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(l){let i=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 i||"function"==typeof n){let t="function"==typeof i?i:n,u="function"==typeof i?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,l,"function"==typeof i?null:i);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}=i;c=c?Object.assign(c,h):h;let f=t=>(d.hideLoader&&d.hideLoader(e),y?y(t):t),I=t=>(d.hideLoader&&d.hideLoader(e),g?g(t):t),k=o(e,r,a,l,u,p);return d.showLoader&&d.showLoader(e),s(k.url,c)[e](k.param,C,T).then(f,I)},a={};for(var i in e)for(var n=i,m=e[i],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:i},"articles.get":{url:"articles/:articleId",method:i},"articles.preview":{url:"articles/preview",method:n},"articles.versionList":{url:"articles/:articleId/versionList",method:i},"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:i},"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:i},"articles.attachments":{url:"articles/:articleId/attachments",method:i},"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:i},"articleAttachments.create":{url:"articleAttachments",method:n},"articles.discardMany":{url:"articles/discardMany",method:n},"articles.moveToTrash":{url:"articles/moveToTrash",method:n},articleTranslations:{url:"articleTranslations",method:i},"articleTranslations.search":{url:"articleTranslations/search",method:i},"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:i},"translation.count":{url:"articleTranslations/count",method:i},articlesDashboard:{url:"articlesDashboard",method:i},"articleDashboard.statistics":{url:"articleDashboard/statistics",method:i},"articleDashboard.reports":{url:"articleDashboard/reports",method:i},"articleDashboard.counts":{url:"articleDashboard/counts",method:i},"articles.trends":{url:"articles/trends",method:i},"articles.search":{url:"articles/search",method:i},"articles.searchKeywords":{url:"articles/searchKeywords",method:i},"articles.usedTickets":{url:"articles/:articleId/usedTickets",method:i},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:i},"articles.translations":{url:"articles/:articleId/translations",method:i},"articles.translations.versions":{url:"articles/:articleId/translations/:locale/versions",method:i},"articles.translations.versionDiff":{url:"articles/:articleId/translations/:locale/versionDiff",method:i},"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:i},"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:i},"articles.insights":{url:"articles/:articleId/insights",method:i},"articles.translations.insights":{url:"articles/:articleId/translations/:locale/insights",method:i},"articles.translations.permalinks":{url:"articles/:articleId/translations/:locale/permalinks",method:i},"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:i},"articles.translationsComments.get":{url:"articles/:articleId/translations/:locale/comments/:commentId",method:i},"articles.comments.getall":{url:"articles/:articleId/comments",method:i},"articles.translationsComments.getall":{url:"articles/:articleId/translations/:locale/comments",method:i},"articles.updateTranslationState":{url:"articles/:articleId/updateTranslationState",method:n},kbCategory:{url:"kbCategory",method:i},"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:i},reviewConfiguration:{url:"kbCategory/reviewConfiguration",method:i},"kbCategoryLogo.create":{url:"kbCategoryLogo",method:n},"kbCategory.permalinks":{url:"kbCategory/:categoryId/permalinks",method:i},"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:i},"articles.feedbacks.listAll":{url:"articleFeedbacks",method:i},"articles.translations.feedbacks":{url:"articles/:articleId/translations/:locale/feedbacks",method:i},"articles.feedbacks.get":{url:"articleFeedbacks/:feedbackId",method:i},"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:i},"kbPreferences.update":{url:"kbPreferences",method:c},"repositionArticles.get":{url:"kbCategory/:categoryId/repositionArticles",method:i},"repositionArticles.update":{url:"kbCategory/:categoryId/repositionArticles",method:n},moveCategory:{url:"kbCategory/:categoryId/moveCategory",method:n},languages:{url:"languages",method:i},"displayPreferences.save":{url:"displayPreferences",method:n},"displayPreferences.get":{url:"displayPreferences",method:i},"displayPreferences.articlePresence":{url:"displayPreferences/articlePresence",method:i},agents:{url:"agents",method:i},agentById:{url:"agent/:agentId",method:i},tags:{url:"tags/search",method:i},"rootCategories.get":{url:"kbRootCategories",method:i},"trashedTranslations.get":{url:"articleTranslations/trashedTranslations",method:i},"trashedTranslations.count":{url:"articleTranslations/trashedTranslations/count",method:i},"trashedTranslations.restore":{url:"articleTranslations/trashedTranslations/restore",method:n},"trashedTranslations.delete":{url:"articleTranslations/trashedTranslations/delete",method:n},"trashedCategories.get":{url:"kbCategory/trashedCategories",method:i},"trashedCategories.count":{url:"kbCategory/trashedCategories/count",method:i},"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:i},"kbRootCategory.update":{url:"kbRootCategories/:categoryId",method:c},"kbRootCategories.reorder":{url:"kbRootCategories/reorder",method:n},"categoryTree.get":{url:"kbRootCategories/:categoryId/categoryTree",method:i},"kbRootCategory.moveArticlesAndTrash":{url:"kbRootCategories/:categoryId/moveArticlesAndTrash",method:n},"kbSections.add":{url:"kbRootCategories/:categoryId/kbSections",method:n},"kbSections.get":{url:"kbSections/:categoryId",method:i},"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:i},"categoryReviewOwners.add":{url:"kbRootCategories/:categoryId/reviewOwners/add",method:n},"categoryReviewOwners.remove":{url:"kbRootCategories/:categoryId/reviewOwners/remove",method:n},"articles.countByCategoryIds":{url:"articles/countByCategoryIds",method:i},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"},"scheduleAutoTranslate.updateMany":{url:"articles/scheduleAutoTranslate",method:"post"},"stopAutoTranslate.updateMany":{url:"articles/stopAutoTranslate",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:i},"articles.interactedUsers.count":{url:"articles/:articleId/translations/:locale/interactedUsers/count",method:i},"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:i},"articles.insights.viewsList":{url:"articleInsights/interactedUsers",method:i},"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:i},"articles.translations.followersDetails":{url:":moduleAPIName/:entityId/followers",method:i},"file.export":{url:"fileExport",method:n},"file.export.status":{url:"fileExport/status",method:i},"comments.trashed":{url:"kbComments/trashedComments",method:i},"comments.restore":{url:"kbComments/trashedComments/restore",method:n},"comments.delete":{url:"kbComments/trashedComments/delete",method:n},"comments.trashed.count":{url:"kbComments/trashedComments/count",method:i},"comments.moveToTrash":{url:"kbComments/moveToTrash",method:n},"comments.approve":{url:"kbComments/approve",method:n},"comments.moderated":{url:"kbComments/moderatedComments",method:i},"comments.moderated.count":{url:"kbComments/moderatedComments/count",method:i},"articles.translations.answer":{url:"articles/:articleId/translations/:locale/answer",method:i},"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:i},"helpCenter.imageUpload":{url:"helpCenters/:helpCenterId/imageUpload",method:n},page:{url:"helpCenter/:helpCenterId/page/:pageId",method:i},"page.update":{url:"helpCenter/:helpCenterId/page/:pageId",method:c},pages:{url:"helpCenter/:helpCenterId/pages",method:i},sitemaps:{url:"helpCenters/:helpCenterId/sitemaps",method:i},"sitemaps.download":{url:"helpCenters/:helpCenterId/sitemaps/download",method:i},"sitemaps.generate":{url:"helpCenters/:helpCenterId/sitemaps",method:n},"preferences.update":{url:"helpCenter/:helpCenterId/preference",method:c},"preferences.get":{url:"helpCenter/:helpCenterId/preference",method:i},"themes.get":{url:"themes",method:i},"userAuthentication.get":{url:"helpCenter/:helpCenterId/userAuthentications",method:i},"userAuthentication.patch":{url:"helpCenter/:helpCenterId/userAuthentications/:authType",method:c},"smsTemplates.get":{url:"helpCenter/:helpCenterId/smsTemplates",method:i},"smsTemplate.get":{url:"helpCenter/:helpCenterId/smsTemplates/:smsTemplateId",method:i},"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:i},"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:i},"federatedLoginProviders.get":{url:"helpCenters/:helpCenterId/federatedLogins",method:i},"federatedLoginProvider.delete":{url:"helpCenters/:helpCenterId/federatedLogins/:provider",method:d},"federatedLoginProvider.update":{url:"helpCenters/:helpCenterId/federatedLogins/:provider",method:n},"saml.get":{url:"helpCenters/:helpCenterId/samlConfig",method:i},"saml.create":{url:"helpCenters/:helpCenterId/samlConfig",method:n},"saml.delete":{url:"helpCenters/:helpCenterId/samlConfig",method:d},"saml.enable":{url:"helpCenters/:helpCenterId/samlSignupConfig/enable",method:n},"saml.disable":{url:"helpCenters/:helpCenterId/samlSignupConfig/disable",method:n},"oidcMetaData.get":{url:"helpCenter/:helpCenterId/oidcAuthentication/metaData",method:i},"oidc.get":{url:"helpCenter/:helpCenterId/oidcAuthentication/:oidcId",method:i},"oidc.create":{url:"helpCenter/:helpCenterId/oidcAuthentication",method:n},"oidc.update":{url:"helpCenter/:helpCenterId/oidcAuthentication/:oidcId",method:m},"oidc.delete":{url:"helpCenter/:helpCenterId/oidcAuthentication/:oidcId",method:d},"mfaPolicy.patch":{url:"helpCenter/:helpCenterId/mfaPolicy",method:c},"mfaPolicy.get":{url:"helpCenter/:helpCenterId/mfaPolicy",method:i},"mfaPolicy.delete":{url:"helpCenter/:helpCenterId/mfaPolicy",method:d}},g={communityCategory:{url:"communityCategory",method:i},"communityCategory.follow":{url:"communityCategory/:id/follow",method:n},"communityCategory.unfollow":{url:"communityCategory/:id/unfollow",method:n},"communityCategory.followers":{url:"communityCategory/:id/followers",method:i},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:i},communityTopContributors:{url:"community/topContributors",method:i},communityModerationTopics:{url:"communityModeration/topics",method:i},communityModerationComments:{url:"communityModeration/comments",method:i},communityModerationStats:{url:"communityModeration/counts",method:i},communityModeratedTopics:{url:"communityModeratedTopics",method:i},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:i},communityTopic:{url:"communityTopics/:id",method:i},communityTopicByPermalink:{url:"communityTopicByPermalink",method:i},communityUpdateTopic:{url:"communityTopics/:id",method:c},communityTopicComments:{url:"communityTopics/:id/comments",method:i},"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:i},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:i},communityGetCommentAttachment:{url:"communityTopics/:id/comments/:commentId/attachments/:attachmentId/content",method:i},communityGetReplyAttachment:{url:"communityTopics/:id/replies/:replyId/attachments/:attachmentId/content",method:i},communityGetTicketAssociated:{url:"communityTopics/:id/ticket",method:i},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:i},communityTopicParticipants:{url:"communityTopics/:id/participants",method:i},communityTopicVoters:{url:"communityTopics/:id/voters",method:i},communityTopicVotersTrend:{url:"communityTopics/:id/voters/trend",method:i},allCommunityCategories:{url:"allCommunityCategory",method:i},topicTypeTrend:{url:"community/topicTypeTrend",method:i},uniqueUsersParticipationTrend:{url:"community/uniqueUsersParticipationTrend",method:i},"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:i},"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:i},user:{url:"communityUsers/:id",method:i},"user.stats":{url:"communityUsers/:id/stats",method:i},"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:i},"community.licenseInfo":{url:"community/licenseInfo",method:i},communityMyDraftedTopics:{url:"communityMyDraftedTopics",method:i},searchTags:{url:"communityTags",method:i},mentions:{url:"mentions",method:i},communityTopicPermalink:{url:"communityTopics/:topicId/permalinks",method:i},communityUpdateTopicPermalink:{url:"communityTopics/:topicId/permalinks",method:c},communityInitPermissions:{url:"communityInitPermissions",method:i},communityTopicsSearch:{url:"communityTopics/search",method:i},communityTopicsCount:{url:"communityTopics/count",method:i},communityCommentsCount:{url:"communityComments/count",method:i},topicInsightsCount:{url:"communityTopicsInsights/count",method:i},topicInsightsUsers:{url:"communityTopicsInsights/interactedUsers",method:i}},C={"tickets.count":{url:"ticketsCount",method:i}},T={"department.logo.update":{url:"departments/:departmentId/logo",method:n},globalSearch:{url:"globalSearch",method:n},getCustomViews:{url:"views",method:i}},f={myInstalledExtensionWidgets:{url:"myInstalledExtensionWidgets",method:i},myInstalledExtensions:{url:"myInstalledExtensions",method:i},myInstalledExtension:{url:"myInstalledExtensions/:id",method:i}},I={"asap.apps":{url:"asapApps",method:i},"asap.new":{url:"asapApp",method:n},"asap.app":{url:"asapApps/:id",method:i},"asap.update":{url:"asapApps/:id",method:c},"asap.deleteIt":{url:"asapApps/:id",method:d},"asap.uploadp12File":{url:"asapApps/:id/uploadAPNCertificate",method:n}},k={mentions:{url:"mentions",method:i},myPreferences:{url:"myPreferences",method:i},updateMyPreferences:{url:"myPreferences",method:c}},b={departmentChatDetails:{url:"support/:portalName/AsapwebSetup.do",method:i}},v={"smsAuthInitConf.get":{url:"api/web/helpCenter/:helpCenterId/smsAuthInitConf",method:i},"smsAuthentication.post":{url:"api/web/helpCenter/:helpCenterId/smsAuthentication/init",method:n},"userAuthInitConf.get":{url:"api/web/helpCenter/:helpCenterId/userAuthInitConfig",method:i}},A={"migrateNow.post":{url:"api/web/helpCenter/:helpCenterId/migrateToIAM2",method:n},"samlMetaData.get":{url:"api/web/helpCenter/:helpCenterId/samlConfigMetaData",method:i}},w={courses:{url:"courses",method:i},"courses.create":{url:"courses",method:n},"courses.get":{url:"courses/:id",method:i},"courses.update":{url:"courses/:id",method:c},"courses.delete":{url:"courses/moveToTrash",method:n},"courses.count":{url:"courses/count",method:i},"courses.layouts":{url:"layouts",method:i},"courses.layoutDetails":{url:"layouts/:id",method:i},"courses.lastAccessedView":{url:"lastAccessedView",method:i},"courses.updateLastAccessedView":{url:"lastAccessedView/:viewId",method:c}},P={"agentPortal.list":{url:"hcApps",method:i},"agentPortal.get":{url:"hcApps/:id",method:i},"agentPortal.create":{url:"hcApp",method:n},"agentPortal.update":{url:"hcApps/:id",method:c}},S={tcInteg:{url:"tcInteg",method:i},"tcInteg.create":{url:"tcInteg",method:n}},R={layouts:{url:"layouts",method:i},"layouts.get":{url:"layouts/:id",method:i}},D=(t.default=function(e,t,o,r,a){for(var s=new u(t,o,r,a),l={},i=Object.keys(e),n=0,m=i.length;n<m;n++){var c=i[n];l[c]=s.create(e[c],c)}return l},h)}])}));