Built files from Bizgaze WebServer
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

gallerymanager.js 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 Communications;
  15. (function (Communications) {
  16. let Events;
  17. (function (Events) {
  18. let Managers;
  19. (function (Managers) {
  20. class GalleryManager extends Unibase.Platform.Core.BaseManager {
  21. changephotplike(data) {
  22. return __awaiter(this, void 0, void 0, function* () {
  23. const url = 'apis/v4/bizgaze/communications/events/likedphoto';
  24. return yield this.dataHelper().postAsync(url, data).then(function (response) {
  25. if (response.result !== null)
  26. response.result = JSON.parse(response.result);
  27. return response;
  28. });
  29. });
  30. }
  31. getGuestUsers() {
  32. return __awaiter(this, void 0, void 0, function* () {
  33. const url = 'apis/v4/bizgaze/communications/events/getguestusers';
  34. return yield this.dataHelper().getAsync(url).then(function (response) {
  35. if (response.result !== null)
  36. response.result = JSON.parse(response.result);
  37. return response;
  38. });
  39. });
  40. }
  41. shareImage(data) {
  42. return __awaiter(this, void 0, void 0, function* () {
  43. const url = 'apis/v4/bizgaze/communications/events/sharedphotos';
  44. return yield this.dataHelper().postAsync(url, data).then(function (response) {
  45. if (response.result !== null)
  46. response.result = JSON.parse(response.result);
  47. return response;
  48. });
  49. });
  50. }
  51. predictedImages() {
  52. return __awaiter(this, void 0, void 0, function* () {
  53. const url = 'apis/v4/bizgaze/integrations/image/predict';
  54. return yield this.dataHelper().getAsync(url).then(function (response) {
  55. if (response.result !== null)
  56. response.result = JSON.parse(response.result);
  57. return response;
  58. });
  59. });
  60. }
  61. eventWisePredictedImages(eventId) {
  62. return __awaiter(this, void 0, void 0, function* () {
  63. const url = 'apis/v4/bizgaze/integrations/image/eventwisepredict/eventid/' + eventId;
  64. return yield this.dataHelper().getAsync(url).then(function (response) {
  65. if (response.result !== null)
  66. response.result = JSON.parse(response.result);
  67. return response;
  68. });
  69. });
  70. }
  71. getLikesbyPhoto(photoid) {
  72. return __awaiter(this, void 0, void 0, function* () {
  73. const url = 'apis/v4/bizgaze/communications/events/getlikesbyphoto/photoid' + photoid;
  74. return yield this.dataHelper().getAsync(url).then(function (response) {
  75. if (response.result !== null)
  76. response.result = JSON.parse(response.result);
  77. return response;
  78. });
  79. });
  80. }
  81. approvedImage(DocumentFileId, statusid) {
  82. return __awaiter(this, void 0, void 0, function* () {
  83. debugger;
  84. const url = 'apis/v4/bizgaze/communications/events/approvedImage/statusid/' + statusid + '/documentfileid/' + DocumentFileId;
  85. return yield this.dataHelper().postAsync(url, null).then(function (response) {
  86. return response;
  87. });
  88. });
  89. }
  90. static Instance() {
  91. if (this._instance === undefined)
  92. this._instance = new GalleryManager();
  93. return this._instance;
  94. }
  95. }
  96. Managers.GalleryManager = GalleryManager;
  97. })(Managers = Events.Managers || (Events.Managers = {}));
  98. })(Events = Communications.Events || (Communications.Events = {}));
  99. })(Communications = Apps.Communications || (Apps.Communications = {}));
  100. })(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
  101. })(Bizgaze || (Bizgaze = {}));