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 Communications; (function (Communications) { let Events; (function (Events) { let Managers; (function (Managers) { class GalleryManager extends Unibase.Platform.Core.BaseManager { changephotplike(data) { return __awaiter(this, void 0, void 0, function* () { const url = 'apis/v4/bizgaze/communications/events/likedphoto'; return yield this.dataHelper().postAsync(url, data).then(function (response) { if (response.result !== null) response.result = JSON.parse(response.result); return response; }); }); } getGuestUsers() { return __awaiter(this, void 0, void 0, function* () { const url = 'apis/v4/bizgaze/communications/events/getguestusers'; return yield this.dataHelper().getAsync(url).then(function (response) { if (response.result !== null) response.result = JSON.parse(response.result); return response; }); }); } shareImage(data) { return __awaiter(this, void 0, void 0, function* () { const url = 'apis/v4/bizgaze/communications/events/sharedphotos'; return yield this.dataHelper().postAsync(url, data).then(function (response) { if (response.result !== null) response.result = JSON.parse(response.result); return response; }); }); } predictedImages() { return __awaiter(this, void 0, void 0, function* () { const url = 'apis/v4/bizgaze/integrations/image/predict'; return yield this.dataHelper().getAsync(url).then(function (response) { if (response.result !== null) response.result = JSON.parse(response.result); return response; }); }); } eventWisePredictedImages(eventId) { return __awaiter(this, void 0, void 0, function* () { const url = 'apis/v4/bizgaze/integrations/image/eventwisepredict/eventid/' + eventId; return yield this.dataHelper().getAsync(url).then(function (response) { if (response.result !== null) response.result = JSON.parse(response.result); return response; }); }); } getLikesbyPhoto(photoid) { return __awaiter(this, void 0, void 0, function* () { const url = 'apis/v4/bizgaze/communications/events/getlikesbyphoto/photoid' + photoid; return yield this.dataHelper().getAsync(url).then(function (response) { if (response.result !== null) response.result = JSON.parse(response.result); return response; }); }); } approvedImage(DocumentFileId, statusid) { return __awaiter(this, void 0, void 0, function* () { debugger; const url = 'apis/v4/bizgaze/communications/events/approvedImage/statusid/' + statusid + '/documentfileid/' + DocumentFileId; return yield this.dataHelper().postAsync(url, null).then(function (response) { return response; }); }); } static Instance() { if (this._instance === undefined) this._instance = new GalleryManager(); return this._instance; } } Managers.GalleryManager = GalleryManager; })(Managers = Events.Managers || (Events.Managers = {})); })(Events = Communications.Events || (Communications.Events = {})); })(Communications = Apps.Communications || (Apps.Communications = {})); })(Apps = Bizgaze.Apps || (Bizgaze.Apps = {})); })(Bizgaze || (Bizgaze = {}));