
    )Jf                     h    d dl mZ d dlmZ d dlmZ  G d de          Z G d de          ZegZdS )	    )EmailAddress)ProviderAccount)OAuth2Providerc                        e Zd Z fdZ xZS )ZohoAccountc                     t          t          |                                           }| j        j                            d|          S )NDisplay_Name)superr   to_straccount
extra_dataget)selfdflt	__class__s     p/home/alex/cs2snipeproduction/venv/lib/python3.11/site-packages/allauth/socialaccount/providers/zoho/provider.pyr   zZohoAccount.to_str   s9    [$''..00|&**>4@@@    )__name__
__module____qualname__r   __classcell__)r   s   @r   r   r      sA        A A A A A A A A Ar   r   c                   2    e Zd ZdZdZeZd Zd Zd Z	d Z
dS )ZohoProviderzohoZohoc                     dgS )Nzaaaserver.profile.READ )r   s    r   get_default_scopezZohoProvider.get_default_scope   s    ())r   c                 ,    t          |d                   S )NZUID)strr   datas     r   extract_uidzZohoProvider.extract_uid   s    4<   r   c                 X    t          |d         |d         |d         |d                   S )NEmailr	   
First_Name	Last_Name)emailusername
first_name	last_name)dictr"   s     r   extract_common_fieldsz"ZohoProvider.extract_common_fields   s8    w-.)L);'	
 
 
 	
r   c                     g }|                     d          }|r%|                    t          |dd                     |S )Nr&   FT)r)   verifiedprimary)r   appendr   )r   r#   retr)   s       r   extract_email_addressesz$ZohoProvider.extract_email_addresses   sX    !! 	JJ"      
r   N)r   r   r   idnamer   account_classr   r$   r.   r4   r   r   r   r   r      s_        	BDM* * *! ! !
 
 
    r   r   N)	allauth.account.modelsr   $allauth.socialaccount.providers.baser   /allauth.socialaccount.providers.oauth2.providerr   r   r   provider_classesr   r   r   <module>r<      s    / / / / / / @ @ @ @ @ @ J J J J J JA A A A A/ A A A    >   B !>   r   