Built files from Bizgaze WebServer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

commentmanager.min.js 2.0KB

1
  1. var __awaiter=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},Unibase;(function(n){let t;(function(n){let t;(function(t){let i;(function(t){class i extends n.Core.BaseManager{getMyCommentsByGuid(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/platform/communications/getmycommentsbyguid/refGuid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getCommentsByParentId(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/platform/communications/getcommentsbyparentid/commentid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getCommentByCommentId(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/platform/communications/getcomment/commentid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}saveComment(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/unibase/platform/communications/savecomment",n).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}deleteComment(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/platform/communications/deletecomment/commentid/"+n;return yield this.dataHelper().postAsync(t,null).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}static Instance(){return this.instance==undefined&&(this.instance=new i),this.instance}}t.CommentManager=i})(i=t.Managers||(t.Managers={}))})(t=n.Automation||(n.Automation={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));