'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _columns = require('./columns');

var _columns2 = _interopRequireDefault(_columns);

var _fields = require('./fields');

var _fields2 = _interopRequireDefault(_fields);

var _forms = require('./forms');

var _forms2 = _interopRequireDefault(_forms);

var _normalizeRecordData = require('./normalizeRecordData');

var _normalizeRecordData2 = _interopRequireDefault(_normalizeRecordData);

var _optionLists = require('./optionLists');

var _optionLists2 = _interopRequireDefault(_optionLists);

var _messages = require('./messages');

var _messages2 = _interopRequireDefault(_messages);

var _prepareForSending = require('./prepareForSending');

var _prepareForSending2 = _interopRequireDefault(_prepareForSending);

var _requestConfig = require('./requestConfig');

var _requestConfig2 = _interopRequireDefault(_requestConfig);

var _serviceConfig = require('./serviceConfig');

var _serviceConfig2 = _interopRequireDefault(_serviceConfig);

var _title = require('./title');

var _title2 = _interopRequireDefault(_title);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = () => configContext => ({
  optionLists: _optionLists2.default,
  recordTypes: {
    vocabulary: {
      messages: _messages2.default,
      prepareForSending: _prepareForSending2.default,
      requestConfig: _requestConfig2.default,
      serviceConfig: _serviceConfig2.default,
      columns: (0, _columns2.default)(configContext),
      fields: (0, _fields2.default)(configContext),
      forms: (0, _forms2.default)(configContext),
      normalizeRecordData: (0, _normalizeRecordData2.default)(configContext),
      title: (0, _title2.default)(configContext)
    }
  }
});