kpi-header
Version:
KPI-header plugin for KPI NINJA react UI
3 lines • 4.03 kB
JavaScript
;var _UtilService=require("./UtilService");Object.defineProperty(exports,"__esModule",{value:!0}),exports.notificationAfterLoginAPI=notificationAfterLoginAPI,exports.notificationAfterLoginEventAPI=notificationAfterLoginEventAPI,exports.notificationByIdAfterLoginAPI=notificationByIdAfterLoginAPI,exports.notificationReadByIdAPI=notificationReadByIdAPI,exports.downloadNotificationAttachmentAPI=downloadNotificationAttachmentAPI;function asyncGeneratorStep(a,b,c,d,e,f,g){try{var h=a[f](g),i=h.value}catch(a){return void c(a)}h.done?b(i):Promise.resolve(i).then(d,e)}function _asyncToGenerator(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a){asyncGeneratorStep(h,d,e,f,g,"next",a)}function g(a){asyncGeneratorStep(h,d,e,f,g,"throw",a)}var h=a.apply(b,c);f(void 0)})}}//Endpoints
var NOTIFICATION_LIST_AFTER_LOGIN="/showNotification",NOTIFICATION_BY_ID_AFTER_LOGIN="/fetchNotificationDetailsById",NOTIFICATION_READ="/saveNotificationAsRead",NOTIFICATION_LIST_AFTER_LOGIN_EVENT="/showNotificationEvent",DOWNLOAD_NOTIFICATION_ATTACHMENT="/downLoadReactAttachment";//APIs
function notificationAfterLoginAPI(){return _notificationAfterLoginAPI.apply(this,arguments)}function _notificationAfterLoginAPI(){return _notificationAfterLoginAPI=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function a(b,c){var d;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return d="?count="+c,a.next=3,(0,_UtilService.request)({url:b+NOTIFICATION_LIST_AFTER_LOGIN+d,method:"GET"});case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop();}},a)})),_notificationAfterLoginAPI.apply(this,arguments)}function notificationAfterLoginEventAPI(){return _notificationAfterLoginEventAPI.apply(this,arguments)}function _notificationAfterLoginEventAPI(){return _notificationAfterLoginEventAPI=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function a(b,c){var d;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return d="?count="+c,a.next=3,(0,_UtilService.request)({url:b+NOTIFICATION_LIST_AFTER_LOGIN_EVENT+d,method:"GET"});case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop();}},a)})),_notificationAfterLoginEventAPI.apply(this,arguments)}function notificationByIdAfterLoginAPI(){return _notificationByIdAfterLoginAPI.apply(this,arguments)}function _notificationByIdAfterLoginAPI(){return _notificationByIdAfterLoginAPI=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function a(b,c){var d;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return d="?notificationId="+c,a.next=3,(0,_UtilService.request)({url:b+NOTIFICATION_BY_ID_AFTER_LOGIN+d,method:"GET"});case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop();}},a)})),_notificationByIdAfterLoginAPI.apply(this,arguments)}function notificationReadByIdAPI(){return _notificationReadByIdAPI.apply(this,arguments)}function _notificationReadByIdAPI(){return _notificationReadByIdAPI=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function a(b,c){var d;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return d="?notificationId="+c,a.next=3,(0,_UtilService.request)({url:b+NOTIFICATION_READ+d,method:"GET"});case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop();}},a)})),_notificationReadByIdAPI.apply(this,arguments)}function downloadNotificationAttachmentAPI(){return _downloadNotificationAttachmentAPI.apply(this,arguments)}function _downloadNotificationAttachmentAPI(){return _downloadNotificationAttachmentAPI=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function a(b,c){var d;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return d="?notificationId="+c,a.next=3,(0,_UtilService.request)({url:b+DOWNLOAD_NOTIFICATION_ATTACHMENT+d,method:"GET"});case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop();}},a)})),_downloadNotificationAttachmentAPI.apply(this,arguments)}