File: //home/arjun/projects/buyercall_forms/buyercall/buyercall/__pycache__/app.cpython-38.pyc
U
k�if� � @ s� d dl mZmZmZ d dlmZ d dlmZ d dlm Z m
Z
mZmZm
Z
mZmZmZ d dlmZmZ dddd d
ddd
dddddddddddgZd dd�Zedfdd�Zd!dd�ZdS )"� )�Flask�has_request_context�request)�Celery)�User)�api_keys�
blueprints�error_templates�exception_handler�
extensions�logging_handler�
middleware�template_processors)�authentication�localez#buyercall.blueprints.activity.taskszbuyercall.blueprints.user.tasksz buyercall.blueprints.issue.tasksz"buyercall.blueprints.billing.tasksz buyercall.blueprints.admin.tasksz+buyercall.blueprints.contacts.contact_tasksz"buyercall.blueprints.widgets.tasksz%buyercall.blueprints.widgets.bw_tasksz*buyercall.blueprints.form_leads.form_tasksz"buyercall.blueprints.reports.tasksz&buyercall.blueprints.partnership.tasksz'buyercall.blueprints.phonenumbers.tasksz*buyercall.blueprints.phonenumbers.bw_tasksz6buyercall.blueprints.phonenumbers.bw_operational_tasksz!buyercall.blueprints.mobile.tasksz%buyercall.blueprints.sms.bw_sms_tasksz%buyercall.blueprints.sms.tw_sms_taskszbuyercall.blueprints.sms.tasksz#buyercall.blueprints.sysadmin.tasksNc sj �pt � �t�j�jd �jd d�}|jtdd� |j��j� |j�G � ��fdd�d��� � |_|S )z�
Create a new celery object and tie together the celery config to the app's
config. Wrap all tasks in the context of the application.
:param app: Flask app
:return: Celery app
�CELERY_BROKER_URL�CELERY_RESULT_BACKEND)ZbrokerZresult_backendT)�forcec s>