# Copyright 2018-2019 The Wazo Authors  (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

from .http import MobileAuth, MobileAuthSenderID


class Plugin(object):
    def load(self, dependencies):
        api = dependencies['api']
        api.add_resource(
            MobileAuth,
            '/users/<uuid:user_uuid>/external/mobile',
            resource_class_args=[
                dependencies['external_auth_service'],
                dependencies['config'],
            ],
        )
        api.add_resource(
            MobileAuthSenderID,
            '/users/<uuid:user_uuid>/external/mobile/sender_id',
            resource_class_args=[
                dependencies['external_auth_service'],
                dependencies['user_service'],
            ],
        )
