1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- 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 Platform;
- (function (Platform) {
- let InviteUsers;
- (function (InviteUsers) {
- let Managers;
- (function (Managers) {
- class InviteUserManager extends Platform.Core.BaseManager {
- sendMail(obj) {
- return __awaiter(this, void 0, void 0, function* () {
- const serverurl = 'apis/v4/unibase/platform/mails/sendmail';
- return yield this.dataHelper().postAsync(serverurl, obj).then(function (response) {
- return response;
- });
- });
- }
- getcontactconflicts(contactid, userid) {
- return __awaiter(this, void 0, void 0, function* () {
- const serverurl = 'apis/v4/bizgaze/crm/contacts/getcontactconflicts/ContactId/' + contactid + '/UserId/' + userid;
- return yield this.dataHelper().getAsync(serverurl).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- updatepassword(obj) {
- return __awaiter(this, void 0, void 0, function* () {
- const serverurl = 'account/UpdatePassword';
- return yield this.dataHelper().postAsync(serverurl, obj).then(function (response) {
- return response;
- });
- });
- }
- changeuserslocktatus(unibaseid) {
- return __awaiter(this, void 0, void 0, function* () {
- const serverurl = 'account/UserName/' + unibaseid + '/ChangeLockStatus';
- return yield this.dataHelper().postAsync(serverurl, null).then(function (response) {
- return response;
- });
- });
- }
- validatelocktatus(unibaseid) {
- return __awaiter(this, void 0, void 0, function* () {
- const serverurl = 'account/ValidateLockStatus/UserName/' + unibaseid;
- return yield this.dataHelper().postAsync(serverurl, null).then(function (response) {
- return response;
- });
- });
- }
- static Instance() {
- if (this._instance === undefined)
- this._instance = new InviteUserManager();
- return this._instance;
- }
- }
- Managers.InviteUserManager = InviteUserManager;
- })(Managers = InviteUsers.Managers || (InviteUsers.Managers = {}));
- })(InviteUsers = Platform.InviteUsers || (Platform.InviteUsers = {}));
- })(Platform = Unibase.Platform || (Unibase.Platform = {}));
- })(Unibase || (Unibase = {}));
|