"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("moment"),t=require("../constants/alerts.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=a(e);exports.getStartTimeByRelativeRange=function(e){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;switch(e){case t.DATE_RANGE_FILTERS_BY_KEYS.last12hours.value:r=u.default().subtract(12,"hours");break;case t.DATE_RANGE_FILTERS_BY_KEYS.last24hours.value:r=u.default().subtract(1,"days");break;case t.DATE_RANGE_FILTERS_BY_KEYS.last7days.value:r=u.default().subtract(7,"days");break;case t.DATE_RANGE_FILTERS_BY_KEYS.lastMonth.value:r=u.default().subtract(1,"month");break;default:return null}return a?r.valueOf():r.unix()};
//# sourceMappingURL=alerts.js.map
