12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- 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 MbcMccMtcLeadsManager extends Unibase.Platform.Core.BaseManager {
- checkdocument(MbcMccMtcLeadId, InstalledAppId, VersionGuid, StageId) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/bizgaze/mobil/mbcmccttcleads/checkmbcmccmtcleadsdocuments/mbcmccmtcleadid/' + MbcMccMtcLeadId + '/installedappid/' + InstalledAppId + '/versionguid/' + VersionGuid + '/stageid/' + StageId;
- return yield this.dataHelper().postAsync(url, null).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- changeStage(MbcMccMtcLeadId, InstalledAppId, VersionGuid, StageId) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/bizgaze/mobil/mbcmccttcleads/stagechangebymasterapproval/mbcmccmtcleadid/' + MbcMccMtcLeadId + '/installedappid/' + InstalledAppId + '/versionguid/' + VersionGuid + '/stageid/' + StageId;
- return yield this.dataHelper().postAsync(url, null).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- downloadfiles(MbcMccMtcLeadId) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/bizgaze/mobil/mbcmccttcleads/getdocumentfilepath/mbcmccmtcleadid/' + MbcMccMtcLeadId;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result !== null)
- return response;
- });
- });
- }
- deletembcoffercontacts(offercontactid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/bizgaze/mobil/mbcmccttcleads/deletembcoffercontacts/offercontactid/' + offercontactid;
- return yield this.dataHelper().postAsync(url, null).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- mbccsvfiledata() {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/bizgaze/mobil/mbcmccttcleads/refreshmbcleadcsvfiledataasync/np';
- return yield this.dataHelper().postAsync(url, null).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- monthlywiseeligibility() {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/bizgaze/mobil/mbcmccttcleads/refreshmonthlywiseeligibilityforalltenantsasync/np';
- return yield this.dataHelper().postAsync(url, null).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- static Instance() {
- if (this._instance === undefined)
- this._instance = new MbcMccMtcLeadsManager();
- return this._instance;
- }
- }
- Managers.MbcMccMtcLeadsManager = MbcMccMtcLeadsManager;
- })(Managers = Transact.Managers || (Transact.Managers = {}));
- })(Transact = Apps.Transact || (Apps.Transact = {}));
- })(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
- })(Bizgaze || (Bizgaze = {}));
|