a
    W!f                     @   s*   d dl mZ d dlmZ G dd dZdS )    )Environment)Messagec                   @   sH   e Zd Zejrg dng dZedddZedd Zedd	 Z	d
S )EmailService)yuvan@storyit.usjason@storyit.uszdhruvit@evincedev.com)r   r   zbranson@storyit.uszwil@storyit.uszconall@storyit.usUnknownc           	   	   C   s^   d}d}d| d| d| d| d	}t ||tjd}||_| | td	ttj  d S )
Nz New Manual Verification Requiredstoryitinternalalertsz
Hey there! A new offer has been pushed to the manual verification dashboard.

Check it out:
https://manualverification-storyit.web.app/

Details:
    Instagram username: @
    Private: 
    Required tag: @z
    Reasoning: z(
    
- StoryIt Manual Verification Bot
sender
recipientsz&Sent new manual verification alert to r   r   r   bodysendprintstr)	mailusernamerequired_tagged_usernamereasonig_is_privatesubjectr   r   msg r   L/var/www/html/python-backend/backend/services/notifications/email_service.pysend_manual_verification_alert	   s    	

z+EmailService.send_manual_verification_alertc           
   	   C   s`   d}d}|g}d| d| d| d| d	}t |||d}	||	_| |	 td	t|  d S )
Nz&Reminder: Manual Verification Requiredr   z=
Hey again! It's been 5 hours since you requested to follow @z! using the verification account @z. This is a reminder to complete the verification.

Check it out:
https://manualverification-storyit.web.app/

Details:
    Instagram username: @z&
    Private: True
    Required tag: @z)
    

- StoryIt Manual Verification Bot
r   z-Sent manual verification reminder message to )r   r   r   r   r   )
r   verification_emailverification_usernamer   r   r   r   r   r   r   r   r   r   !send_manual_verification_reminder#   s     	
z.EmailService.send_manual_verification_reminderc
                 C   s   |	d }
|	d }|	d }d| }d}d| d| d|
 d	| d
| d| d| d| d| d| d| d}t ||tjd}||_| | tdttj  d S )NscoreprosconszNew Offer Approved for r   z1
A new offer has been automatically approved for z!

See the post here: z

Evaluation:
    Score: z
    Pros: z
    Cons: z

Details:
    Phone number: z
    Instagram username: @r	   r
   z
    Content type: z$
    Specific product (in content): z#
    
- StoryIt Auto-verification

r   z!Sent new offer approved alert to r   )r   phone_numberr   content_typer   r   client_namespecific_productugc_url
evaluationr    r!   r"   r   r   r   r   r   r   r   send_offer_approved_alert<   s@    

z&EmailService.send_offer_approved_alertN)r   r   )
__name__
__module____qualname__r   USE_TEST_MODEr   staticmethodr   r   r)   r   r   r   r   r      s   
r   N)environmentr   
flask_mailr   r   r   r   r   r   <module>   s   