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,101 @@
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 Transact;
(function (Transact) {
let Managers;
(function (Managers) {
class OpportunityManager extends Unibase.Platform.Core.BaseManager {
getOpportunityItems(OpportunityItemId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/opportunity/getopportunityitem/opportunityitemid/' + OpportunityItemId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getOpportunityItemsById(OpportunityId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/opportunity/getopportunityitems/opportunityid/' + OpportunityId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getOpportunity(OpportunityId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/opportunity/getopportunity/opportunityid/' + OpportunityId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getOpportunityInformaion(OrganizationId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/mobil/MobilLeads/getmobilleadbycontactid/contactid/' + OrganizationId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null && response.result !== "")
response.result = JSON.parse(response.result);
return response;
});
});
}
getDetails(url) {
return __awaiter(this, void 0, void 0, function* () {
const url1 = url;
return yield this.dataHelper().getAsync(url1).then(function (response) {
if (response.result !== null && response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
deleteOpportunityItem(OpportunityItemId) {
return __awaiter(this, void 0, void 0, function* () {
debugger;
const url = 'apis/v4/bizgaze/transact/opportunity/deleteopportunityitem/opportunityitemid/' + OpportunityItemId;
return yield this.dataHelper().postAsync(url, OpportunityItemId).then(function (response) {
if (response.result !== null && response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
deleteOpportunityItemForl360(OpportunityItemId) {
return __awaiter(this, void 0, void 0, function* () {
debugger;
const url = 'apis/v4/bizgaze/mobil/opportunity/deleteOpportunityItemForl360/opportunityitemid/' + OpportunityItemId;
return yield this.dataHelper().postAsync(url, OpportunityItemId).then(function (response) {
if (response.result !== null && response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
static Instance() {
if (this._instance === undefined)
this._instance = new OpportunityManager();
return this._instance;
}
}
Managers.OpportunityManager = OpportunityManager;
})(Managers = Transact.Managers || (Transact.Managers = {}));
})(Transact = Apps.Transact || (Apps.Transact = {}));
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
})(Bizgaze || (Bizgaze = {}));
@@ -0,0 +1 @@
{"version":3,"file":"opportunitymanager.js","sourceRoot":"","sources":["opportunitymanager.ts"],"names":[],"mappings":";;;;;;;;;AAAA,IAAU,OAAO,CAgEhB;AAhED,WAAU,OAAO;IACb,IAAiB,IAAI,CA8DpB;IA9DD,WAAiB,IAAI;QACjB,IAAiB,QAAQ,CA4DxB;QA5DD,WAAiB,QAAQ;YACrB,IAAiB,QAAQ,CA0DxB;YA1DD,WAAiB,QAAQ;gBACrB,MAAa,kBAAmB,SAAQ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW;oBAC/D,mBAAmB,CAAC,iBAAiB;;4BACvC,MAAM,GAAG,GAAG,4EAA4E,GA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,CAAC,SAAS,GAAG,IAAI,kBAAkB,EAAE,CAAC;wBAC9C,OAAO,IAAI,CAAC,SAAS,CAAC;oBAC1B,CAAC;iBACJ;gBAxDY,2BAAkB,qBAwD9B,CAAA;YACL,CAAC,EA1DgB,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QA0DxB;QACL,CAAC,EA5DgB,QAAQ,GAAR,aAAQ,KAAR,aAAQ,QA4DxB;IACL,CAAC,EA9DgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QA8DpB;AACL,CAAC,EAhES,OAAO,KAAP,OAAO,QAgEhB"}
+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{getOpportunityItems(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/opportunity/getopportunityitem/opportunityitemid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getOpportunityItemsById(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/opportunity/getopportunityitems/opportunityid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getOpportunity(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/opportunity/getopportunity/opportunityid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getOpportunityInformaion(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/mobil/MobilLeads/getmobilleadbycontactid/contactid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&n.result!==""&&(n.result=JSON.parse(n.result)),n})})}getDetails(n){return __awaiter(this,void 0,void 0,function*(){const t=n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}deleteOpportunityItem(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/opportunity/deleteopportunityitem/opportunityitemid/"+n;return yield this.dataHelper().postAsync(t,n).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}static Instance(){return this._instance===undefined&&(this._instance=new t),this._instance}}n.OpportunityManager=t})(t=n.Managers||(n.Managers={}))})(t=n.Transact||(n.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));