<?php

// Exit if accessed directly.
if (!defined('ABSPATH')) {
    exit;
}

global $integrazo_wz_advanced_fields;
global $integrazo_wz_allowed_modules;

// Modules allowed for these products in the free version (others require Pro).
$integrazo_wz_allowed_modules = [
    'zoho_crm'   => ['Contacts'],
    'zoho_bigin' => ['Contacts'],
];

$integrazo_wz_advanced_fields = [
    'zoho_crm' => [
        'Website',
        'Country',
        'Billing_Country',
        'Shipping_Country',
        'Mailing_Country',
        'Other_Country',
        'State',
        'Billing_State',
        'Shipping_State',
        'Mailing_State',
        'Other_State',
        'Phone',
        'Home_Phone',
        'Other_Phone',
        'Asst_Phone',
        'Mobile',
        'Industry',
        'Lead_Source',
        'Lead_Status',
        'Email_Opt_Out',
        'Account_Type',
        'Record_Image',
        'Company',
        'Mailing_City',
        'Other_City',
        'Description',
        'Visitor_Score',
        'Referrer',
        'Enrich_Status__s',
        'Account_Name',
        'Vendor_Name',
        'Unsubscribed_Mode',
        'integrazo_wz_additional_tag',
        'integrazo_wz_additional_note',
        'integrazo_wz_additional_attachment'
    ],
    'zoho_bigin' => [
         'Website',
        'Country',
        'Billing_Country',
        'Shipping_Country',
        'Mailing_Country',
        'Other_Country',
        'State',
        'Billing_State',
        'Shipping_State',
        'Mailing_State',
        'Other_State',
        'Phone',
        'Home_Phone',
        'Other_Phone',
        'Asst_Phone',
        'Mobile',
        'Industry',
        'Lead_Source',
        'Lead_Status',
        'Email_Opt_Out',
        'Account_Type',
        'Mailing_City',
        'Description',
        'Unsubscribed_Mode',
        'Account_Name',
        'Record_Image',
        'Company',
        'integrazo_wz_additional_tag',
        'integrazo_wz_additional_note',
        'integrazo_wz_additional_attachment'
    ],
    'zoho_desk' => ['phone', 'status', 'priority', 'classification', 'language', 'assigneeId', 'productId', 'dueDate', 'channel'],
    'zoho_campaign' => ['Company Name', 'Title','Job Title','City','Phone','First Name', 'Last Name','Secondary Email', 'Mobile', 'Country', 'Website', 'Lead Source', 'Note', 'State']
];
