<s> from __future__ import absolute_import <EOL> from zerver . models import get_client <EOL> from zerver . lib . actions import check_send_message <EOL> from zerver . lib . response import json_success <EOL> from zerver . decorator import REQ , has_request_variables , authenticated_rest_api_view <EOL> @ authenticated_rest_api_view <EOL> @ has_request_variables <EOL> def api_deskdotcom_webhook ( request , user_profile , data = REQ ( ) , <EOL> topic = REQ ( default = "<STR_LIT>" ) , <EOL> stream = REQ ( default = "<STR_LIT>" ) ) : <EOL> check_send_message ( user_profile , get_client ( "<STR_LIT>" ) , "<STR_LIT>" , <EOL> [ stream ] , topic , data ) <EOL> return json_success ( ) </s>
