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