"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("moment"),u=require("../constants.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=t(e);exports.getTimestampByPeriod=function(e,t,r){var n,l=a.default().unix();return e===u.OBJECTIVE_PERIOD_LIST[1].value?n=a.default().subtract(12,"hours").unix():e===u.OBJECTIVE_PERIOD_LIST[2].value?n=a.default().subtract(24,"hours").unix():e===u.OBJECTIVE_PERIOD_LIST[3].value?n=a.default().subtract(7,"days").unix():e===u.OBJECTIVE_PERIOD_LIST[4].value?n=a.default().subtract(1,"month").unix():e===u.OBJECTIVE_PERIOD_LIST[5].value?(n=t,l=r):(n=null,l=null),[n,l]};
