
    '6Ii}                         d dl mZ d dlmZ d dlZd dlmZ  ej                  e      Z	 G d dej                        Z G d dej                        Zy)	    )serializers)TonyCallN)CompanyNamePhoneSerializerc                   Z    e Zd Z ed      Z ej                         Zd Z G d d      Z	y)TonyCallListSerializerT	read_onlyc                 6    |j                   xs |j                  S )N)call_date_time
created_at)selfobjs     J/var/www/html/dp2/backend_v2.1/server/apps/calls/serializers/tony_calls.pyget_call_date_timez)TonyCallListSerializer.get_call_date_time   s    !!3S^^3    c                       e Zd ZeZdZeZy)TonyCallListSerializer.Meta)idcall_idr   called_number	called_to	intentionstatusrecording_urlcompanyrescheduledbooking_datetimeN)__name__
__module____qualname__r   modelfieldsread_only_fields r   r   Metar      s    
 "r   r%   N)
r   r   r    r   r   r   SerializerMethodFieldr   r   r%   r$   r   r   r   r      s+    (48G6[668N4" "r   r   c                   2    e Zd Z ed      Z G d d      Zy)TonyCallDetailSerializerTr   c                       e Zd ZeZdZy)TonyCallDetailSerializer.Meta)r   r   r   
end_reasonr   r   
transcriptr   r   r   r   r   r   r   N)r   r   r    r   r!   r"   r$   r   r   r%   r*   &   s    
r   r%   N)r   r   r    r   r   r%   r$   r   r   r(   r(   #   s    (48G
 
r   r(   )rest_frameworkr   apps.calls.modelsr   loggingapps.companies.serializersr   	getLoggerr   loggerModelSerializerr   r(   r$   r   r   <module>r4      sI    & &  A 
		8	$"[88 "0
{:: 
r   