kpi-header
Version:
KPI-header plugin for KPI NINJA react UI
3 lines • 1.62 kB
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0}),exports.insertUserCommentAPI=insertUserCommentAPI,exports.whiteLabelingAPI=whiteLabelingAPI;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)})}}var WHITE_LABELING="/whiteLabeling",INSERT_USER_COMMENT="/insertUserComment";//Feedback
function insertUserCommentAPI(){return _insertUserCommentAPI.apply(this,arguments)}// USERS API
function _insertUserCommentAPI(){return _insertUserCommentAPI=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function a(b,c){return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,request({url:b+INSERT_USER_COMMENT,method:"post",body:JSON.stringify({comment:c})});case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop();}},a)})),_insertUserCommentAPI.apply(this,arguments)}function whiteLabelingAPI(){return _whiteLabelingAPI.apply(this,arguments)}function _whiteLabelingAPI(){return _whiteLabelingAPI=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function a(b){return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,request({url:b+WHITE_LABELING,method:"GET"});case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop();}},a)})),_whiteLabelingAPI.apply(this,arguments)}