1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- 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 Unibase;
- (function (Unibase) {
- let Apps;
- (function (Apps) {
- let Communications;
- (function (Communications) {
- let Managers;
- (function (Managers) {
- class SmsManager extends Unibase.Platform.Core.BaseManager {
- getDefaultSmsSender() {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/bizgaze/communications/sms/defaultsmssender';
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- getSmsSender(SmsSenderId) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/bizgaze/communications/sms/getsmssender/smssenderid/' + SmsSenderId;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- getSmsByExecutedActionId(executedactionid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/bizgaze/communications/sms/getsmsbyexecutedactionid/executedactionid/' + executedactionid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- static Instance() {
- if (this._instance === undefined)
- this._instance = new SmsManager();
- return this._instance;
- }
- }
- Managers.SmsManager = SmsManager;
- })(Managers = Communications.Managers || (Communications.Managers = {}));
- })(Communications = Apps.Communications || (Apps.Communications = {}));
- })(Apps = Unibase.Apps || (Unibase.Apps = {}));
- })(Unibase || (Unibase = {}));
|