123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- 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 = {}));
|