<?php
/**
 * Copyright 2015 Zendesk
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

$config = new Mage_Core_Model_Config();
$options = array();

$options['zendesk/backend_features/show_on_dashboard'] = Mage::getStoreConfig('zendesk/features/show_on_dashboard');
$options['zendesk/backend_features/show_on_order'] = Mage::getStoreConfig('zendesk/features/show_on_order');
$options['zendesk/backend_features/show_views'] = Mage::getStoreConfig('zendesk/features/show_views');
$options['zendesk/backend_features/show_on_customer'] = Mage::getStoreConfig('zendesk/features/show_on_customer');
$options['zendesk/frontend_features/show_on_dashboard'] = Mage::getStoreConfig('zendesk/features/contact_us');
$options['zendesk/frontend_features/feedback_tab_code_active'] = Mage::getStoreConfig('zendesk/features/feedback_tab_code_active');
$options['zendesk/frontend_features/feedback_tab_code'] = Mage::getStoreConfig('zendesk/features/feedback_tab_code');
$options['zendesk/frontend_features/feedback_tab_customise'] = Mage::getStoreConfig('zendesk/features/feedback_tab_customise');
$options['zendesk/frontend_features/order_field_id'] = Mage::getStoreConfig('zendesk/features/order_field_id');
$options['zendesk/frontend_features/customer_tickets'] = Mage::getStoreConfig('zendesk/features/customer_tickets');
$options['zendesk/frontend_features/footer_link_enabled'] = Mage::getStoreConfig('zendesk/features/footer_link_enabled');

foreach ( $options as $key => $value )
{
    $config->saveConfig($key, $value, 'default', 0);
}
