This commit is contained in:
2023-03-11 17:30:20 +00:00
commit b6c4e025bc
5124 changed files with 1153349 additions and 0 deletions
@@ -0,0 +1 @@
{"version":3,"file":"isupportmanager.js","sourceRoot":"","sources":["isupportmanager.ts"],"names":[],"mappings":""}
@@ -0,0 +1,201 @@
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var Bizgaze;
(function (Bizgaze) {
let Apps;
(function (Apps) {
let Support;
(function (Support) {
let Managers;
(function (Managers) {
class SupportManager extends Unibase.Platform.Core.BaseManager {
updateTicket(ticketId, acceptedby) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/support/tickets/update/ticketid/' + ticketId + '/acceptedby/' + acceptedby;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(JSON.parse(response.result));
return response;
});
});
}
getRoleTicketGroups(ticketgroupid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/support/tickets/getroleticketgroups/ticketgroupid/' + ticketgroupid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getRoleTicketGroup(roleids) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/employees/getemployeesbyroleids/roleid/' + roleids;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getTicketGroup(ticketgroupid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/support/ticketgroups/getticketgroup/ticketgroupid/' + ticketgroupid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null && response.result != "") {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getTicket(ticketid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/support/tickets/getticket/ticketid/' + ticketid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null && response.result != "") {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getTicketIssue(ticketid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/support/tickets/getticketissuesbyticketid/ticketid/' + ticketid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null && response.result != "") {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getIssueGroup(issuegroupid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/support/issuegroups/getissuegroup/issuegroupid/' + issuegroupid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null && response.result != "") {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getRoleEmployee(employeeid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/employees/getemployees/employeeid/' + employeeid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
UpdateAllocate(ticketId, allocatedto) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/support/tickets/updateallocate/ticketid/' + ticketId + '/allocatedto/' + allocatedto;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
UpdatePriority(ticketId, priorityid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/support/tickets/updatepriority/ticketid/' + ticketId + '/priorityid/' + priorityid;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
deletelevel(levelid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/support/ticketgroups/deletelevel/id/' + levelid;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
deleteissue(issueid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/support/ticketgroups/deleteissue/id/' + issueid;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getLevelMembers(levelid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/support/tickets/getlevelmembers/levelid/' + levelid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getSuppotSettings() {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/support/tickets/getsuppotsettings';
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getSuppotSetting(supportsettingid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/support/tickets/getsuppotsetting/settingid/' + supportsettingid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
savehelpusertenant(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/tickets/savehelpusertenant';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
}).fail(function () {
});
});
}
static Instance() {
if (this._instance === undefined)
this._instance = new SupportManager();
return this._instance;
}
}
Managers.SupportManager = SupportManager;
})(Managers = Support.Managers || (Support.Managers = {}));
})(Support = Apps.Support || (Apps.Support = {}));
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
})(Bizgaze || (Bizgaze = {}));
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +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())})},Bizgaze;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t extends Unibase.Platform.Core.BaseManager{updateTicket(n,t){return __awaiter(this,void 0,void 0,function*(){const i="apis/v4/bizgaze/support/tickets/update/ticketid/"+n+"/acceptedby/"+t;return yield this.dataHelper().postAsync(i,null).then(function(n){return n.result!==null&&(n.result=JSON.parse(JSON.parse(n.result))),n})})}getRoleTicketGroups(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/support/tickets/getroleticketgroups/ticketgroupid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getRoleTicketGroup(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/crm/employees/getemployeesbyroleids/roleid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getTicketGroup(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/support/ticketgroups/getticketgroup/ticketgroupid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}getTicket(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/support/tickets/getticket/ticketid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}getTicketIssue(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/support/tickets/getticketissuesbyticketid/ticketid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}getIssueGroup(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/support/issuegroups/getissuegroup/issuegroupid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}getRoleEmployee(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/crm/employees/getemployees/employeeid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}UpdateAllocate(n,t){return __awaiter(this,void 0,void 0,function*(){const i="apis/v4/bizgaze/support/tickets/updateallocate/ticketid/"+n+"/allocatedto/"+t;return yield this.dataHelper().postAsync(i,null).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}UpdatePriority(n,t){return __awaiter(this,void 0,void 0,function*(){const i="apis/v4/bizgaze/support/tickets/updatepriority/ticketid/"+n+"/priorityid/"+t;return yield this.dataHelper().postAsync(i,null).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}deletelevel(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/support/ticketgroups/deletelevel/id/"+n;return yield this.dataHelper().postAsync(t,null).then(function(n){return n.result!=null&&(n.result=JSON.parse(n.result)),n})})}deleteissue(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/support/ticketgroups/deleteissue/id/"+n;return yield this.dataHelper().postAsync(t,null).then(function(n){return n.result!=null&&(n.result=JSON.parse(n.result)),n})})}getLevelMembers(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/support/tickets/getlevelmembers/levelid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getSuppotSettings(){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().getAsync("apis/v4/bizgaze/support/tickets/getsuppotsettings").then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getSuppotSetting(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/support/tickets/getsuppotsetting/settingid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}savehelpusertenant(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/unibase/platform/tickets/savehelpusertenant",n).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n}).fail(function(){})})}static Instance(){return this._instance===undefined&&(this._instance=new t),this._instance}}n.SupportManager=t})(t=n.Managers||(n.Managers={}))})(t=n.Support||(n.Support={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));