{"version":3,"sources":["jsdelivr-header.js","/npm/hubot-rocketchat-attachment@0.0.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,GAAK,QAAQ,MACb,KAAO,QAAQ,QAErB,OAAO,QAAU,CAAC,EAAO,KACvB,MAAM,EAAc,KAAK,QAAQ,UAAW,OAE5C,GAAI,GAAG,WAAW,GAAc,CAC9B,MAAM,EAAM,GAAG,YAAY,GACrB,EAAU,GAEhB,IAAK,IAAI,EAAI,EAAG,EAAM,EAAI,OAAQ,EAAI,EAAK,IAAK,CAC9C,MAAM,EAAS,EAAI,GAEH,MAAX,GAAoB,QAAQ,KAAK,EAAS,KAAO,EAChD,QAAQ,KAAK,EAAS,IAAW,EACnC,EAAQ,KAAK,EAAM,SAAS,EAAa,IAEzC,EAAQ,UAAK,GAGf,EAAQ,KAAK,EAAM,SAAS,EAAa,GAE7C,CACA,OAAO,CACT","file":"/npm/hubot-rocketchat-attachment@0.0.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/hubot-rocketchat-attachment@0.0.1/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const fs = require('fs');\nconst path = require('path');\n\nmodule.exports = (robot, scripts) => {\n  const scriptsPath = path.resolve(__dirname, 'src');\n\n  if (fs.existsSync(scriptsPath)) {\n    const ref = fs.readdirSync(scriptsPath);\n    const results = [];\n\n    for (let i = 0, len = ref.length; i < len; i++) {\n      const script = ref[i];\n\n      if ((scripts != null) && indexOf.call(scripts, '*') < 0) {\n        if (indexOf.call(scripts, script) >= 0) {\n          results.push(robot.loadFile(scriptsPath, script));\n        } else {\n          results.push(void 0);\n        }\n      } else {\n        results.push(robot.loadFile(scriptsPath, script));\n      }\n    }\n    return results;\n  }\n};\n"]}