Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
w["number"]="10*1";
w["nwsearchfnt"]="2*2";
w["nwsearchfnt.j"]="2*2";
w["o"]="2*1,12*1";
w["oasis-open"]="10*1";
w["object"]="10*4";
w["object."]="10*3";
w["obtain"]="3*1";
w["odd"]="4*1";
w["ok"]="0*1";
w["ok-xsl-1"]="0*1";
w["ok-xsl-1.77.0"]="0*2";
w["onc"]="8*1";
w["one"]="2*1,10*1,15*1";
w["onli"]="8*2,10*3,14*1";
w["only."]="10*2";
w["open"]="2*1,8*1,10*2";
w["open.org"]="10*1";
w["openstack"]="3*1";
w["oper"]="0*2";
w["option"]="9*1";
w["org"]="10*1";
w["organ"]="5*1";
w["origin"]="3*1";
w["other"]="0*2,3*6,6*1,7*1,8*3,10*2,14*46";
w["others:"]="3*1";
w["otherwis"]="3*2";
w["ouput"]="8*1";
w["out"]="3*1,6*1";
w["output"]="0*3,2*1,4*1,5*1,6*2,7*2,8*56,10*1,13*2,15*47";
w["output-dir"]="8*2";
w["output."]="3*1,6*1";
w["number"]="9*1";
w["nwsearchfnt"]="1*2";
w["nwsearchfnt.j"]="1*2";
w["o"]="1*1,16*1";
w["oasis-open"]="9*1";
w["object"]="9*4";
w["object."]="9*3";
w["obtain"]="5*1";
w["odd"]="8*1";
w["ok"]="11*1";
w["ok-xsl-1"]="11*1";
w["ok-xsl-1.77.0"]="11*2";
w["onc"]="6*1";
w["one"]="1*1,9*1,15*1";
w["onli"]="6*2,9*3,13*1";
w["only."]="9*2";
w["open"]="1*1,6*1,9*2";
w["open.org"]="9*1";
w["openstack"]="5*1";
w["oper"]="11*2";
w["option"]="2*1";
w["org"]="9*1";
w["organ"]="3*1";
w["origin"]="5*1";
w["other"]="0*1,5*6,6*3,9*2,10*1,11*2,13*46";
w["others:"]="5*1";
w["otherwis"]="5*2";
w["ouput"]="6*1";
w["out"]="5*1,10*1";
w["output"]="0*2,1*1,3*1,6*55,7*2,8*1,9*1,10*2,11*3,15*47";
w["output-dir"]="6*2";
w["output."]="5*1,10*1";
w["omit"]="117*2,130*2,156*2,221*2,238*1,402*1,473*2,495*1";
w["omitted."]="117*2,473*2";
w["onc"]="42*1,58*1,132*1,234*2,278*1,288*1,385*1,462*1,518*3";
w["once."]="518*1";
w["once:"]="234*1";
w["ondari"]="402*1";
w["ondit"]="33*1";
w["one"]="6*1,21*1,22*1,26*3,33*1,35*1,39*1,42*4,43*1,56*2,60*1,70*1,71*1,72*1,78*1,86*1,91*1,105*1,107*3,109*3,112*1,116*1,117*1,120*1,124*2,132*2,153*1,155*1,158*1,159*1,163*1,171*1,185*2,196*1,200*1,208*2,210*1,227*1,234*2,237*1,239*1,242*1,249*2,250*1,254*1,257*2,262*1,265*2,268*1,280*1,294*2,306*1,315*1,327*1,334*3,335*2,339*1,340*1,342*3,343*1,354*2,363*1,369*1,375*1,376*1,377*4,382*1,390*1,395*1,397*1,400*1,402*12,403*2,405*1,407*1,413*1,430*1,433*1,440*1,445*1,447*1,458*2,467*1,474*1,478*2,484*2,486*2,492*1,502*1,504*2,506*1,507*3,512*1,518*2,521*1";
w["one-lin"]="200*1,234*1,447*1";
w["one."]="91*1,237*1,402*1,403*2,413*1";
w["onelin"]="107*1,287*1";
w["onerror"]="111*1";
w["ong"]="42*1";
w["onli"]="15*1,17*1,26*2,31*1,33*1,35*1,42*6,58*2,60*1,62*1,70*1,76*1,87*1,97*1,98*1,102*1,109*5,111*1,132*4,138*3,149*1,158*3,165*1,166*1,178*1,182*1,184*1,193*1,212*1,226*1,227*1,234*4,257*1,259*1,264*1,280*2,291*1,306*2,317*1,325*1,326*1,329*2,334*5,343*1,354*2,356*1,357*2,363*2,376*2,385*1,389*1,395*1,402*5,403*2,411*2,415*1,417*1,420*1,422*1,423*1,425*1,445*2,448*1,451*1,455*2,460*2,465*1,470*1,475*1,483*3,484*1,493*1,505*1,509*1,518*3,521*2,523*1";
w["onlin"]="79*1";
w["only."]="35*1,402*1";
w["onsibl"]="402*1";
w["onto"]="402*1,464*1";
w["oo"]="318*1";
w["oop"]="31*1";
w["opaqu"]="402*7";
w["open"]="138*1,160*1,280*1,282*1,328*1,445*1,504*1,520*43";
w["open-sourc"]="160*1";
w["openbsd"]="302*1";
w["openoffic"]="138*1";
w["openssh"]="440*2,504*2";
w["oper"]="15*1,28*1,42*7,82*1,85*1,108*1,109*1,133*1,154*1,159*1,174*1,190*1,243*5,278*2,295*1,302*41,318*3,323*1,388*1,389*2,397*1,400*1,402*1,404*1,406*3,439*1,458*1,465*1,478*1,494*1,502*1,518*2";
w["operation."]="133*1,159*1,295*1";
w["opportun"]="282*1";
w["opt"]="2*9,15*2,42*1,439*2";
w["optim"]="18*1,204*2,238*2,318*1,365*4,460*3";
w["option"]="23*1,27*2,42*5,53*14,73*1,78*1,103*1,129*1,135*2,154*1,158*1,159*2,166*1,201*1,204*6,221*4,222*1,229*1,234*2,236*1,238*3,239*1,250*2,258*1,270*1,272*16,275*8,295*1,307*2,310*1,320*1,328*1,347*1,358*1,365*3,377*10,386*8,389*1,392*1,402*3,413*1,422*1,441*1,445*3,446*52,464*1,484*3,501*2,509*1,521*1,528*6";
w["number"]="10*1";
w["nwsearchfnt"]="2*2";
w["nwsearchfnt.j"]="2*2";
w["o"]="2*1,12*1";
w["oasis-open"]="10*1";
w["object"]="10*4";
w["object."]="10*3";
w["obtain"]="3*1";
w["odd"]="4*1";
w["ok"]="0*1";
w["ok-xsl-1"]="0*1";
w["ok-xsl-1.77.0"]="0*2";
w["onc"]="8*1";
w["one"]="2*1,10*1,15*1";
w["onli"]="8*2,10*3,14*1";
w["only."]="10*2";
w["open"]="2*1,8*1,10*2";
w["open.org"]="10*1";
w["openstack"]="3*1";
w["oper"]="0*2";
w["option"]="9*1";
w["org"]="10*1";
w["organ"]="5*1";
w["origin"]="3*1";
w["other"]="0*2,3*6,6*1,7*1,8*3,10*2,14*46";
w["others:"]="3*1";
w["otherwis"]="3*2";
w["ouput"]="8*1";
w["out"]="3*1,6*1";
w["output"]="0*3,2*1,4*1,5*1,6*2,7*2,8*57,10*1,13*2,15*47";
w["output-dir"]="8*2";
w["output."]="6*1,8*1";
: null
if (!item) return res.sendStatus(404)
const metadata = { source: 'nanopos', item: req.body.item }
if (item.metadata) Object.assign(metadata, item.metadata)
const inv = await charge.invoice({
amount: item.price
, currency: item.price ? app.settings.currency : null
, description: `${ app.settings.title }${ item.title ? ': ' + item.title : '' }`
, expiry: 599
, metadata
})
res.send(only(inv, 'id payreq msatoshi quoted_currency quoted_amount expires_at'))
}))
.map(item => only(item, [
"holiday",
"holidayRegion",
"name",
"type",
"startDate",
"endDate",
"noEnd",
"repeat",
"repeatCount",
"repeatInterval",
"repeatPeriod"].join(" ")))
}).then(res => {
data: param.map(item => only(item, "dayOfWeek endTime startTime"))
}).then(res => {