src/inventory/index.js
function getLegacyName(tuple) {
    if (Array.isArray(tuple)) {
      var verb = tuple[0]
      var path = getLegacyLambdaName(tuple[1])
      return [`${app}-production-${verb}${path}`, `${app}-staging-${verb}${path}`]
    }
    else {
      var path = getLegacyLambdaName(tuple)
      return [`${app}-production-get${path}`, `${app}-staging-get${path}`]
    }
  }
function getLegacyName(tuple) {
    if (Array.isArray(tuple)) {
      var verb = tuple[0]
      var path = getLegacyLambdaName(tuple[1])
      return [`${app}-production-${verb}${path}`, `${app}-staging-${verb}${path}`]
    }
    else {
      var path = getLegacyLambdaName(tuple)
      return [`${app}-production-get${path}`, `${app}-staging-get${path}`]
    }
  }
function getLegacyName ( tuple ) { if ( Array . isArray ( tuple ) ) { var verb = tuple [ 0 ] var path = getLegacyLambdaName ( tuple [ 1 ] ) return [ ` ${ app } ${ verb } ${ path } ` , ` ${ app } ${ verb } ${ path } ` ] } else { var path = getLegacyLambdaName ( tuple ) return [ ` ${ app } ${ path } ` , ` ${ app } ${ path } ` ] } }
gets an legacy lambda name
gets an legacy lambda name