# -*- coding: utf-8 -*-
# Copyright 2016 The Wazo Authors  (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

from xivo_dao.alchemy.conference import Conference
from xivo_dao.resources.utils.search import SearchSystem
from xivo_dao.resources.utils.search import SearchConfig


config = SearchConfig(table=Conference,
                      columns={'id': Conference.id,
                               'name': Conference.name,
                               'preprocess_subroutine': Conference.preprocess_subroutine},
                      default_sort='name')

conference_search = SearchSystem(config)
