@mopinion/deploy
Version:
Deploy your Mopinion feedback forms with ease
29 lines (23 loc) • 853 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getFormConfig = getFormConfig;
var _request = _interopRequireDefault(require("../request"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function getFormConfig(_ref) {
var formKey = _ref.formKey,
domain = _ref.domain;
var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
_ref2$onSuccess = _ref2.onSuccess,
onSuccess = _ref2$onSuccess === void 0 ? function () {} : _ref2$onSuccess;
(0, _request["default"])({
url: "https://".concat(domain, "/survey/public/json-config?key=").concat(formKey),
cachePath: formKey,
shouldCache: function shouldCache() {
return true;
},
onSuccess: onSuccess
});
}
//# sourceMappingURL=api.js.map