o
    µQ?htw  ã                   @   s"   d dl mZ ddd„Zdd„ ZdS )é    )ÚdbNc                 C   sN   t  d¡ | ¡ ¡ }|jr#| ¡ }| d¡}|r|t| |ƒfS |i fS i i fS )NÚmanualProductsÚproductMapping)r   Ú
collectionÚdocumentÚgetÚexistsÚto_dictÚgetManualVariantMapping)Ú	productIdÚ	variantIdÚrefÚdataÚmapping© r   úM/var/www/html/riverr-enterprise-integrations-main/functions/ManualProducts.pyÚgetManualProductMapping‹  s   
r   c                 C   s2   t  d¡ | ¡ d¡ |¡ ¡ }|jr| ¡ S i S )Nr   ÚvariantsMapping)r   r   r   r   r   r	   )r   r   r   r   r   r   r
   •  s    r
   )N)Úconfigs.firebaser   r   r
   r   r   r   r   Ú<module>   s        

