Built files from Bizgaze WebServer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

notificationgroupmanager.js 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. var Unibase;
  2. (function (Unibase) {
  3. let Platform;
  4. (function (Platform) {
  5. let Automation;
  6. (function (Automation) {
  7. let Managers;
  8. (function (Managers) {
  9. class NotificationGroupManager extends Platform.Core.BaseManager {
  10. static Instance() {
  11. if (this.instance == undefined) {
  12. this.instance = new NotificationGroupManager();
  13. }
  14. return this.instance;
  15. }
  16. saveNotificationGroup(model) {
  17. const url = 'apis/v4/unibase/NotificationGroup/platform/SaveNotificationGroup';
  18. return this.dataHelper().postAsync(url, model).then(function (response) {
  19. return response;
  20. });
  21. }
  22. GetNotificationGroupInfo(GroupId) {
  23. const url = 'apis/v4/unibase/NotificationGroup/platform/GetNotificationGroupById/GroupId/' + GroupId;
  24. return this.dataHelper().getAsync(url).then(function (response) {
  25. var res = response.result;
  26. if (response.result != null) {
  27. res = JSON.parse(response.result);
  28. }
  29. return res;
  30. });
  31. }
  32. GetNotificationGroups() {
  33. const url = 'apis/v4/unibase/NotificationGroup/platform/GetNotificationGroups';
  34. return this.dataHelper().getAsync(url).then(function (response) {
  35. if (response.result != null) {
  36. response.result = JSON.parse(response.result);
  37. }
  38. return response.result;
  39. });
  40. }
  41. GetCurrentIndex() {
  42. const url = 'apis/v4/unibase/NotificationGroup/platform/GetCurrentIndex';
  43. return this.dataHelper().getAsync(url).then(function (response) {
  44. return response;
  45. });
  46. }
  47. }
  48. Managers.NotificationGroupManager = NotificationGroupManager;
  49. })(Managers = Automation.Managers || (Automation.Managers = {}));
  50. })(Automation = Platform.Automation || (Platform.Automation = {}));
  51. })(Platform = Unibase.Platform || (Unibase.Platform = {}));
  52. })(Unibase || (Unibase = {}));