'use strict';

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

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

exports.default = function (pluginContext) {
  var _pluginContext$search = pluginContext.searchOperators,
      OP_OR = _pluginContext$search.OP_OR,
      OP_EQ = _pluginContext$search.OP_EQ,
      OP_CONTAIN = _pluginContext$search.OP_CONTAIN;
  var extensions = pluginContext.config.extensions;


  return {
    op: OP_OR,
    value: [{
      op: OP_CONTAIN,
      path: 'ns2:persons_common/personTermGroupList/personTermGroup/termDisplayName'
    }, {
      op: OP_EQ,
      path: 'ns2:persons_common/personTermGroupList/personTermGroup/termStatus'
    }, {
      op: OP_EQ,
      path: 'ns2:persons_common/personTermGroupList/personTermGroup/termFlag'
    }, {
      op: OP_EQ,
      path: 'ns2:persons_common/gender'
    }, {
      op: OP_CONTAIN,
      path: 'ns2:persons_common/occupations/occupation'
    }, {
      op: OP_CONTAIN,
      path: 'ns2:persons_common/schoolsOrStyles/schoolOrStyle'
    }, {
      op: OP_CONTAIN,
      path: 'ns2:persons_common/groups/group'
    }, {
      op: OP_CONTAIN,
      path: 'ns2:persons_common/nationalities/nationality'
    }].concat(_toConsumableArray(extensions.core.advancedSearch))
  };
};