o
    Q?hn                     @   sH   d dl mZmZ d dlmZ d dlmZ defddZde	fdd	Z
d
S )    )	getClientgetSupplierCredentials)db)helpersblankProductc              	   C   s   |  d}t|d\}}| r?|  d}t|}t|jj|| d| dd|dt}| di  d	g }d
d |D }|S g S )N
supplierIdmediablankProductIdusernamepasswordImage)	wsVersionidr   	mediaType	productIdMediaContentArrayMediaContentc                 S   s   g | ]}| d dkr|qS )r   r   )get).0image r   O/var/www/html/riverr-enterprise-integrations-main/functions/Suppliers/Images.py
<listcomp>   s    z"getBlankImages.<locals>.<listcomp>)r   r   r   r   serialize_objectservicegetMediaContentdict)r   r   clientversionr   credsimagesResponseimagesr   r   r   getBlankImages   s&   


r"   r   c                 C   s&   t d|  }|jr| S d S )NblankProducts)r   
collectiondocumentr   existsto_dict)r   refr   r   r   getBlankProduct   s   r)   N)functions.Suppliers.Authr   r   configs.firebaser   zeepr   r   r"   strr)   r   r   r   r   <module>   s
    