1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- var Bizgaze;
- (function (Bizgaze) {
- let Apps;
- (function (Apps) {
- let Transact;
- (function (Transact) {
- let Components;
- (function (Components) {
- let Offers;
- (function (Offers) {
- class RefreshWallets extends Unibase.Platform.Core.BaseComponent {
- cssFiles() {
- throw new Error("Method not implemented.");
- }
- jsFiles() {
- return ['apps/transact/managers/offers/offermanager.js'];
- }
- html(id, containerid) {
- throw new Error("Method not implemented.");
- }
- load(id, containerid, callback) {
- throw new Error("Method not implemented.");
- }
- init() {
- var instance = this;
- var offerid = Number(Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_offerid").Value);
- var offername = Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_offername").Value;
- instance.fileCacheHelper.loadJsFile('apps/transact/managers/offers/offermanager.js', function () {
- Bizgaze.Apps.Transact.Managers.OfferManager.Instance().refreshallwallets(offerid, offername).then(function (response) {
- MessageHelper.Instance().showSuccess(response.message, "div_message");
- });
- });
- }
- refreshwallets() {
- var instance = this;
- instance.fileCacheHelper.loadJsFile('apps/transact/managers/offers/offermanager.js', function () {
- Bizgaze.Apps.Transact.Managers.OfferManager.Instance().refreshallofferswallets().then(function (response) {
- MessageHelper.Instance().showSuccess(response.message, "div_message");
- });
- });
- }
- static Instance() {
- if (this._instance === undefined)
- this._instance = new RefreshWallets();
- return this._instance;
- }
- }
- Offers.RefreshWallets = RefreshWallets;
- })(Offers = Components.Offers || (Components.Offers = {}));
- })(Components = Transact.Components || (Transact.Components = {}));
- })(Transact = Apps.Transact || (Apps.Transact = {}));
- })(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
- })(Bizgaze || (Bizgaze = {}));
|