
    h$                     <   S SK Jr  S SKrS SKJr  S SKJr  \" 5         \R                  " SS5      rS r	S r
S	\S
\4S jrS	\S\4S jrSS	\S\S\S\S\S\\   4S jjrS	\S\4S jrS	\S\4S jrS	\S
\S\S\4S jrS	\S
\S\4S jrS	\S
\S\4S jrS	\S\4S jrg)    )
send_emailN)load_dotenv)OptionalMY_APP_DOMAINzhttps://www.movex.aic                 ,   [         R                  R                  [         R                  R                  [        5      5      n[         R                  R                  X5      n[        USSS9 nUR                  5       sS S S 5        $ ! , (       d  f       g = f)Nrzutf-8)encoding)ospathdirnamerealpath__file__joinopenread)filenamedir_path	file_pathfiles       NC:\Suresh\moveshuttle\MDcreated\moveengine\app\v1\libraries\email_templates.pyread_templater   
   sX    wwrww//9:HX0I	iw	/4yy{ 
0	/	/s   +B
Bc                 z    [        S5      nU R                  5        H  u  p#UR                  SU S3U5      nM     U$ )Nzemail_template.htm{})r   itemsreplace)contexttemplatekeyvalues       r   prepare_email_contentr!      s>    12Hmmo
##bRL%8 &O    emailnamec                 z    U(       a  UOSnUSU S[          S[          S3SS.n[        U5      n[        SX@/5        g )	Ntherez"
            <p>Welcome to MOVEX, a  ! You've successfully activated your account, and we're thrilled to have you with us.</p>
            <p>Here's what you can expect:</p>
            <ul>
                <li><strong>Comprehensive Movement Management:</strong> Our platform enables efficient handling of people, goods, and service operations.</li>
                <li><strong>AI & IoT Driven Optimization:</strong> Route planning, fleet tracking, and smart service management with cutting-edge tech.</li>
                <li><strong>Future-Ready Platform:</strong> Seamless integrations, scalability, and intelligence built-in.</li>
            </ul>
            <p>To make the most out of MOVEX, check out our <a href='zl'>Platform</a>.</p>
            <p>If you need assistance, our support team is here to help at the <a href='uz   /support'>Support Portal</a>.</p>
            <p>Thank you for choosing MOVEX. Let’s move smarter together.</p>
         recipient_namemain_messageadditional_contentzWelcome to MOVEX!
APP_DOMAINr!   r   )r#   r$   r)   r   
email_bodys        r   send_welcome_emailr/      se    !TwN(""0!1 2F GQ\ RYYcXd e	 !G  'w/J"J8r"   codec                 j    [          SU  SU 3nSSSU SU S3S.n[        U5      n[        S	X@/5        g )
Nz/verify?email=&code=r'   zEThank you for signing up for MOVEX! Please verify your email address.z&<p>Your verification code is: <strong></strong></p><p>Click <a href='z$'>here</a> to verify your email.</p>r(   zVerify Your MOVEX Accountr,   )r#   r0   verification_linkr   r.   s        r   send_verification_emailr5   -   s\    %,nUG6$H_ FtfLkl}k~  c  dG
 'w/J*J@r"   role_id	role_nameaccount_namereferral_codec                     [          SU  SU SU 3nUS:X  a
  SU SU S3nOUS:X  a  S	U S
U SU S3nO	SU SU S3nSUSS.n[        U5      n	[        SX/5        g )Nz/invite?email=r2   z
&referral=   u  
            <p>You're invited to become a <strong>Partner</strong> of MOVEX!</p>
            <p>We’re excited to collaborate with you as a valued reseller or integration partner in building the future of smart mobility, logistics, and field services.</p>
            <p>As a partner, you'll gain access to:</p>
            <ul>
                <li>Partner dashboard to manage your clients</li>
                <li>Revenue-sharing programs and incentives</li>
                <li>Marketing and co-branding opportunities</li>
                <li>Priority support and training</li>
            </ul>
            <p>Your invitation code is: <strong>z,</strong></p>
            <p>Click <a href='z:'>here</a> to join the MOVEX Partner Network.</p>
           uC   
            <p>Welcome to MOVEX! You’ve been invited by <strong>aN  </strong> to start using our intelligent mobility and service management platform.</p>
            <p>MOVEX helps businesses like yours streamline operations, manage transportation, logistics, and workforce with real-time dashboards, automation, and powerful AI & IoT integrations.</p>
            <p>Your invitation code is: <strong>zG'>here</a> to accept the invite and activate your account.</p>
        ud  
            <p>You’ve been invited to join MOVEX, the all-in-one SaaS platform for intelligent mobility and service operations.</p>
            <p>Whether you’re joining as a team member, operator, or service partner, MOVEX offers everything you need to manage fleets, jobs, and people effectively.</p>
            <p>Your invitation code is: <strong>z-'>here</a> to join the platform.</p>
        r'   r(   zYou're Invited to Join MOVEXr,   )
r#   r0   r6   r7   r8   r9   invitation_linkr*   r   r.   s
             r   send_invite_emailr>   8   s    #N5'vZP]_O!|
1 26 7./ 0	 
ACCO. Q115 7./ 0		1 26 7./ 0		 $ G
 'w/J-z7Cr"   c                 j    [          SU  SU 3nSSSU SU S3S.n[        U5      n[        S	X@/5        g 
Nz/reset-password?email=r2   r'   zDWe received a request to reset your password for your MOVEX account.z(<p>Your password reset code is: <strong>r3   z&'>here</a> to reset your password.</p>r(   zReset Your MOVEX Passwordr,   r#   r0   
reset_linkr   r.   s        r   send_forgot_password_emailrC   c   \    <5eWF4&IJ^ HNmnxmy  z`  aG
 'w/J*J@r"   c                 j    [          SU  SU 3nSSSU SU S3S.n[        U5      n[        S	X@/5        g r@   r,   rA   s        r   send_contact_emailrF   m   rD   r"   countamountc                 d    U(       a  UOSnUSU SU S3SS.n[        U5      n[        SX`/5        g )Nr&   a!  
            <p>We're thrilled to welcome you to the MOVEX platform! Your subscription has been activated successfully, and you're now on board to transform your operations.</p>
            <p><b>Subscription Details</b></p>
            <ul>
                <li><b>Modules Subscribed:</b> z0</li>
                <li><b>Monthly Cost:</b> $z</li>
                <li><b>Next Billing Date:</b> 30 days from now.</li>
            </ul>
            <p>Should you need any assistance, we're here for you at every step.</p>
            <p>Thank you for choosing MOVEX!</p>
        r'   r(   z+Subscription Successful - Welcome to MOVEX!r!   r   )r#   r$   rG   rH   r)   r   r.   s          r   send_subscription_success_emailrK   y   sS    !TwN(0 16w 7++1( 3	
 !G 'w/J<j'Rr"   c                 H    USU S3SS.n[        U5      n[        SX@/5        g )Nz~
            <p>We've successfully received your payment. Thank you!</p>
            <ul>
                <li><b>Amount:</b> $z</li>
            </ul>
            <p>Your MOVEX subscription remains active and fully functional.</p>
            <p>We appreciate your continued support!</p>
        r'   r(   z&MOVEX - Payment Successful - Thank YourJ   r#   r$   rH   r   r.   s        r   send_payment_success_emailrN      s@    % &,H -	 !G 'w/J7WMr"   c                 V    USU S[          S3SS.n[        U5      n[        SX@/5        g )Nz
            <p>Unfortunately, your recent payment attempt has failed.</p>
            <ul>
                <li><b>Due Amount:</b> $z7</li>
            </ul>
            <p>Please <a href='zc/billing'>update your payment method</a> to continue using MOVEX without interruption.</p>
        r'   r(   z'MOVEX Payment Failure - Action Requiredr,   rM   s        r   send_payment_failure_emailrP      sJ    ) *0 1  *| ,	 !
G 'w/J8*gNr"   cancellation_detailsc                 z    UR                  SS5      nUSU S[         S3SS.n[        U5      n[        SX@/5        g )	Nr$   r&   z
            <p>Dear z,</p>
            <p>We're sorry to see you go. Your MOVEX subscription has been cancelled.</p>
            <p>If this was a mistake or you need help, please <a href='zc/support'>contact support</a>.</p>
            <p>We hope to work with you again soon.</p>
        r'   r(   zMOVEX Subscription Cancelled)getr-   r!   r   )r#   rQ   r$   r   r.   s        r   !send_subscription_cancelled_emailrT      s\    ##FG4DF HHR| T	 !	G 'w/J-z7Cr"   )N)app.v1.integrations.SMTPmailerr   r
   dotenvr   typingr   getenvr-   r   r!   strr/   intr5   r>   rC   rF   floatrK   rN   rP   dictrT    r"   r   <module>r^      s?   5 	   YY(>?
9c 9 9,A3 Ac A(DS (D (Dc (Dc (DY\ (Dltuxly (DVAc A AAc A AS3 Sc S# Su S*Nc N Ne N$Oc O Oe O DS D Dr"   