Built files from Bizgaze WebServer
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

mbcmccmtcleadsmanager.js 5.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  2. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  3. return new (P || (P = Promise))(function (resolve, reject) {
  4. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  5. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  6. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  7. step((generator = generator.apply(thisArg, _arguments || [])).next());
  8. });
  9. };
  10. var Bizgaze;
  11. (function (Bizgaze) {
  12. let Apps;
  13. (function (Apps) {
  14. let Transact;
  15. (function (Transact) {
  16. let Managers;
  17. (function (Managers) {
  18. class MbcMccMtcLeadsManager extends Unibase.Platform.Core.BaseManager {
  19. checkdocument(MbcMccMtcLeadId, InstalledAppId, VersionGuid, StageId) {
  20. return __awaiter(this, void 0, void 0, function* () {
  21. const url = 'apis/v4/bizgaze/mobil/mbcmccttcleads/checkmbcmccmtcleadsdocuments/mbcmccmtcleadid/' + MbcMccMtcLeadId + '/installedappid/' + InstalledAppId + '/versionguid/' + VersionGuid + '/stageid/' + StageId;
  22. return yield this.dataHelper().postAsync(url, null).then(function (response) {
  23. if (response.result !== null)
  24. response.result = JSON.parse(response.result);
  25. return response;
  26. });
  27. });
  28. }
  29. changeStage(MbcMccMtcLeadId, InstalledAppId, VersionGuid, StageId) {
  30. return __awaiter(this, void 0, void 0, function* () {
  31. const url = 'apis/v4/bizgaze/mobil/mbcmccttcleads/stagechangebymasterapproval/mbcmccmtcleadid/' + MbcMccMtcLeadId + '/installedappid/' + InstalledAppId + '/versionguid/' + VersionGuid + '/stageid/' + StageId;
  32. return yield this.dataHelper().postAsync(url, null).then(function (response) {
  33. if (response.result !== null)
  34. response.result = JSON.parse(response.result);
  35. return response;
  36. });
  37. });
  38. }
  39. downloadfiles(MbcMccMtcLeadId) {
  40. return __awaiter(this, void 0, void 0, function* () {
  41. const url = 'apis/v4/bizgaze/mobil/mbcmccttcleads/getdocumentfilepath/mbcmccmtcleadid/' + MbcMccMtcLeadId;
  42. return yield this.dataHelper().getAsync(url).then(function (response) {
  43. if (response.result !== null)
  44. return response;
  45. });
  46. });
  47. }
  48. deletembcoffercontacts(offercontactid) {
  49. return __awaiter(this, void 0, void 0, function* () {
  50. const url = 'apis/v4/bizgaze/mobil/mbcmccttcleads/deletembcoffercontacts/offercontactid/' + offercontactid;
  51. return yield this.dataHelper().postAsync(url, null).then(function (response) {
  52. if (response.result !== null)
  53. response.result = JSON.parse(response.result);
  54. return response;
  55. });
  56. });
  57. }
  58. mbccsvfiledata() {
  59. return __awaiter(this, void 0, void 0, function* () {
  60. const url = 'apis/v4/bizgaze/mobil/mbcmccttcleads/refreshmbcleadcsvfiledataasync/np';
  61. return yield this.dataHelper().postAsync(url, null).then(function (response) {
  62. if (response.result !== null)
  63. response.result = JSON.parse(response.result);
  64. return response;
  65. });
  66. });
  67. }
  68. monthlywiseeligibility() {
  69. return __awaiter(this, void 0, void 0, function* () {
  70. const url = 'apis/v4/bizgaze/mobil/mbcmccttcleads/refreshmonthlywiseeligibilityforalltenantsasync/np';
  71. return yield this.dataHelper().postAsync(url, null).then(function (response) {
  72. if (response.result !== null)
  73. response.result = JSON.parse(response.result);
  74. return response;
  75. });
  76. });
  77. }
  78. static Instance() {
  79. if (this._instance === undefined)
  80. this._instance = new MbcMccMtcLeadsManager();
  81. return this._instance;
  82. }
  83. }
  84. Managers.MbcMccMtcLeadsManager = MbcMccMtcLeadsManager;
  85. })(Managers = Transact.Managers || (Transact.Managers = {}));
  86. })(Transact = Apps.Transact || (Apps.Transact = {}));
  87. })(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
  88. })(Bizgaze || (Bizgaze = {}));