"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=e(require("lodash/get"));function n(e){return"admin"===e.role}var t={is_admin:n,is_corva_admin:function(e){return n(e)&&"corva"===r.default(e,["company","provider"],null)}};function o(e,r){if(r in t)return t[r](e);throw new Error("There is no rule ".concat(r,", please check the spelling"))}module.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return r.reduce((function(r,n){return r&&o(e,n)}),!0)};
