INSERT INTO `tblapad_options` (`id`, `type`, `name`, `value`, `autoload`) 
VALUES 
(NULL, NULL, 'mobile_push_notification', '1', '1'), 
(NULL, NULL, 'desktop_push_notification', '0', '1'), 
(NULL, NULL, 'email_push_notification', '1', '1'), 
(NULL, NULL, 'sms_push_notification', '0', '1');
INSERT INTO `tblapad_options` (`id`, `type`, `name`, `value`, `autoload`) 
VALUES 
(NULL, NULL, 'in_app_notification', '1', '1'), 
(NULL, NULL, 'activity_log', '0', '1'), 
(NULL, NULL, 'reward_distribution', '1', '1');

CREATE TABLE `tblpro_plan_setting` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `mobile_push_notification` tinyint(4) NOT NULL,
  `desktop_push_notification` tinyint(4) NOT NULL,
  `email_push_notification` tinyint(4) NOT NULL,
  `sms_push_notification` tinyint(4) NOT NULL,
  `in_app_notification` tinyint(4) NOT NULL,
  `activity_log` tinyint(4) NOT NULL,
  `reward_distribution` tinyint(4) NOT NULL
) ENGINE=InnoDB;

ALTER TABLE `tblpro_plan_setting`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `tblpro_plan_setting`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;


CREATE TABLE `tblmobile_push_notification_config` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `codename` varchar(191) NOT NULL,
  `is_active` tinyint(4) NOT NULL
) ENGINE=InnoDB;

ALTER TABLE `tblmobile_push_notification_config`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `tblmobile_push_notification_config`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;

ALTER TABLE `tblmobile_push_notification_config` ADD UNIQUE(`codename`);


CREATE TABLE `tbldesktop_push_notification_config` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `codename` varchar(191) NOT NULL,
  `is_active` tinyint(4) NOT NULL
) ENGINE=InnoDB;

ALTER TABLE `tbldesktop_push_notification_config`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `tbldesktop_push_notification_config`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;

ALTER TABLE `tbldesktop_push_notification_config` ADD UNIQUE(`codename`);


CREATE TABLE `tblemail_push_notification_config` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `codename` varchar(191) NOT NULL,
  `is_active` tinyint(4) NOT NULL
) ENGINE=InnoDB;

ALTER TABLE `tblemail_push_notification_config`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `tblemail_push_notification_config`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;

ALTER TABLE `tblemail_push_notification_config` ADD UNIQUE(`codename`);

CREATE TABLE `tblsms_push_notification_config` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `codename` varchar(191) NOT NULL,
  `is_active` tinyint(4) NOT NULL
) ENGINE=InnoDB;

ALTER TABLE `tblsms_push_notification_config`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `tblsms_push_notification_config`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;

ALTER TABLE `tblsms_push_notification_config` ADD UNIQUE(`codename`);

CREATE TABLE `tblin_app_notification_config` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `codename` varchar(191) NOT NULL,
  `is_active` tinyint(4) NOT NULL
) ENGINE=InnoDB;

ALTER TABLE `tblin_app_notification_config`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `tblin_app_notification_config`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;

ALTER TABLE `tblin_app_notification_config` ADD UNIQUE(`codename`);


CREATE TABLE `tblactivity_log_config` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `codename` varchar(191) NOT NULL,
  `is_active` tinyint(4) NOT NULL
) ENGINE=InnoDB;

ALTER TABLE `tblactivity_log_config`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `tblactivity_log_config`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;

ALTER TABLE `tblactivity_log_config` ADD UNIQUE(`codename`);

CREATE TABLE `tblreward_distribution_config` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `codename` varchar(191) NOT NULL,
  `is_active` tinyint(4) NOT NULL,
  `reward_for` enum('staff','company','both') DEFAULT 'both',
  `is_multiple_distribution` tinyint(4) NOT NULL DEFAULT 0,
  `reward_to_a` int(20) DEFAULT "0",
  `reward_to_b` int(20) DEFAULT "0"
) ENGINE=InnoDB;

ALTER TABLE `tblreward_distribution_config`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `tblreward_distribution_config`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;

ALTER TABLE `tblreward_distribution_config` ADD UNIQUE(`codename`);


INSERT INTO `tblpro_plan_setting` 
(`id`, `mobile_push_notification`, `desktop_push_notification`, `email_push_notification`, `sms_push_notification`, `in_app_notification`, `activity_log`, `reward_distribution`) 
VALUES 
(NULL, '1', '0', '1', '0', '1', '1', '1');

-- Leads start

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_created', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_created', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_created', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_created', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_created', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_created', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_lead_activity_created', '1', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_status_updated', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_status_updated', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_status_updated', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_status_updated', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_status_updated', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_status_updated', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_lead_activity_status_updated', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_marked_lost', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_marked_lost', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_marked_lost', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_marked_lost', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_marked_lost', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_marked_lost', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_lead_activity_marked_lost', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_unmarked_lost', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_unmarked_lost', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_unmarked_lost', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_unmarked_lost', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_unmarked_lost', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_unmarked_lost', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_lead_activity_unmarked_lost', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_marked_junk', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_marked_junk', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_marked_junk', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_marked_junk', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_marked_junk', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_marked_junk', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_lead_activity_marked_junk', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_unmarked_junk', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_unmarked_junk', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_unmarked_junk', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_unmarked_junk', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_unmarked_junk', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_lead_activity_unmarked_junk', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_lead_activity_unmarked_junk', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'lead_assigned', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'lead_assigned', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'lead_assigned', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'lead_assigned', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'lead_assigned', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'lead_assigned', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'lead_assigned', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'lead_added_attachment', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'lead_added_attachment', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'lead_added_attachment', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'lead_added_attachment', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'lead_added_attachment', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'lead_added_attachment', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'lead_added_attachment', '0', 'both', '1', '50', '50');

-- Leads ends

-- Invoice starts

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_marked_as_cancelled', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_marked_as_cancelled', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_marked_as_cancelled', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_marked_as_cancelled', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_marked_as_cancelled', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_marked_as_cancelled', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_marked_as_cancelled', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_unmarked_as_cancelled', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_unmarked_as_cancelled', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_unmarked_as_cancelled', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_unmarked_as_cancelled', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_unmarked_as_cancelled', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_unmarked_as_cancelled', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_unmarked_as_cancelled', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_created', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_created', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_created', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_created', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_created', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_created', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_created', '1', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_from_expense', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_from_expense', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_from_expense', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_from_expense', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_from_expense', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_from_expense', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_from_expense', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_recurring_created', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_recurring_created', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_recurring_created', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_recurring_created', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_recurring_created', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_recurring_created', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_recurring_created', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_recurring_from_expense_created', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_recurring_from_expense_created', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_recurring_from_expense_created', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_recurring_from_expense_created', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_recurring_from_expense_created', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_recurring_from_expense_created', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_recurring_from_expense_created', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_removed_item', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_removed_item', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_removed_item', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_removed_item', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_removed_item', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_removed_item', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_estimate_activity_removed_item', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_number_changed', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_number_changed', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_number_changed', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_number_changed', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_number_changed', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_number_changed', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_number_changed', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_item_short_description', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_item_short_description', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_item_short_description', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_item_short_description', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_item_short_description', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_item_short_description', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_estimate_activity_updated_item_short_description', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_item_long_description', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_item_long_description', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_item_long_description', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_item_long_description', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_item_long_description', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_item_long_description', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_estimate_activity_updated_item_long_description', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_item_rate', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_item_rate', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_item_rate', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_item_rate', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_item_rate', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_item_rate', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_estimate_activity_updated_item_rate', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_qty_item', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_qty_item', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_qty_item', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_qty_item', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_qty_item', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_updated_qty_item', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_estimate_activity_updated_qty_item', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_added_item', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_added_item', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_added_item', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_added_item', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_added_item', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_added_item', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_estimate_activity_added_item', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_sent_to_client_cron', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_sent_to_client_cron', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_sent_to_client_cron', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_sent_to_client_cron', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_sent_to_client_cron', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_sent_to_client_cron', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_sent_to_client_cron', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_sent_to_client', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_sent_to_client', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_sent_to_client', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_sent_to_client', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_sent_to_client', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_sent_to_client', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_sent_to_client', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_marked_as_sent', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_marked_as_sent', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_marked_as_sent', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_marked_as_sent', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_marked_as_sent', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_marked_as_sent', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_marked_as_sent', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'user_sent_overdue_reminder', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'user_sent_overdue_reminder', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'user_sent_overdue_reminder', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'user_sent_overdue_reminder', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'user_sent_overdue_reminder', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'user_sent_overdue_reminder', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'user_sent_overdue_reminder', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'sms_reminder_sent_to', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'sms_reminder_sent_to', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'sms_reminder_sent_to', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'sms_reminder_sent_to', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'sms_reminder_sent_to', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'sms_reminder_sent_to', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'sms_reminder_sent_to', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_invoice_activity_added_item', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_invoice_activity_added_item', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_invoice_activity_added_item', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_invoice_activity_added_item', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_invoice_activity_added_item', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_invoice_activity_added_item', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_invoice_activity_added_item', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_status_updated', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_status_updated', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_status_updated', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_status_updated', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_status_updated', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_status_updated', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_status_updated', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_applied_credits', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_applied_credits', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_applied_credits', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_applied_credits', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_applied_credits', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_applied_credits', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_applied_credits', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_auto_converted_from_estimate', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_auto_converted_from_estimate', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_auto_converted_from_estimate', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_auto_converted_from_estimate', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_auto_converted_from_estimate', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_auto_converted_from_estimate', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_auto_converted_from_estimate', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_payment_made_by_staff', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_payment_made_by_staff', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_payment_made_by_staff', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_payment_made_by_staff', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_payment_made_by_staff', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_payment_made_by_staff', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_payment_made_by_staff', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_payment_made_by_client', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_payment_made_by_client', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_payment_made_by_client', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_payment_made_by_client', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_payment_made_by_client', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_payment_made_by_client', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_payment_made_by_client', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_record_payment_email_to_customer', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_record_payment_email_to_customer', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_record_payment_email_to_customer', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_record_payment_email_to_customer', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_record_payment_email_to_customer', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_record_payment_email_to_customer', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_record_payment_email_to_customer', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_subscription_payment_succeeded', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_subscription_payment_succeeded', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_subscription_payment_succeeded', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_subscription_payment_succeeded', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_subscription_payment_succeeded', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_subscription_payment_succeeded', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_subscription_payment_succeeded', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_payment_deleted', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_payment_deleted', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_payment_deleted', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_payment_deleted', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_payment_deleted', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_payment_deleted', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_payment_deleted', '0', 'both', '1', '50', '50');


-- Mails
INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_overdue_notice', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_overdue_notice', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_overdue_notice', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_overdue_notice', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_overdue_notice', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_overdue_notice', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_overdue_notice', '0', 'both', '1', '50', '50');

-- Invoice ends

-- Tasks ends
-- Activity log
INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_new_task_comment', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_new_task_comment', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_new_task_comment', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_new_task_comment', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_new_task_comment', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_new_task_comment', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'project_activity_new_task_comment', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_new_task_assignee', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_new_task_assignee', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_new_task_assignee', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_new_task_assignee', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_new_task_assignee', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_new_task_assignee', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'project_activity_new_task_assignee', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_new_task_attachment', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_new_task_attachment', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_new_task_attachment', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_new_task_attachment', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_new_task_attachment', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_new_task_attachment', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'project_activity_new_task_attachment', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_assignee_removed', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_assignee_removed', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_assignee_removed', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_assignee_removed', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_assignee_removed', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_assignee_removed', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'project_activity_task_assignee_removed', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_marked_complete', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_marked_complete', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_marked_complete', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_marked_complete', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_marked_complete', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_marked_complete', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'project_activity_task_marked_complete', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_project_activity_task_status_changed', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_project_activity_task_status_changed', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_project_activity_task_status_changed', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_project_activity_task_status_changed', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_project_activity_task_status_changed', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_project_activity_task_status_changed', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_project_activity_task_status_changed', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_unmarked_complete', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_unmarked_complete', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_unmarked_complete', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_unmarked_complete', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_unmarked_complete', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_unmarked_complete', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'project_activity_task_unmarked_complete', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_deleted', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_deleted', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_deleted', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_deleted', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_deleted', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_deleted', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'project_activity_task_deleted', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_recorded_timesheet', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_recorded_timesheet', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_recorded_timesheet', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_recorded_timesheet', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_recorded_timesheet', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_recorded_timesheet', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'project_activity_recorded_timesheet', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_timesheet_deleted', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_timesheet_deleted', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_timesheet_deleted', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_timesheet_deleted', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_timesheet_deleted', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'project_activity_task_timesheet_deleted', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'project_activity_task_timesheet_deleted', '0', 'both', '1', '50', '50');

-- Mails

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_added_as_follower_to_staff', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_added_as_follower_to_staff', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_added_as_follower_to_staff', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_added_as_follower_to_staff', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_added_as_follower_to_staff', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_added_as_follower_to_staff', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'task_added_as_follower_to_staff', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_assigned_to_staff', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_assigned_to_staff', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_assigned_to_staff', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_assigned_to_staff', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_assigned_to_staff', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_assigned_to_staff', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'task_assigned_to_staff', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_status_changed_to_customer', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_status_changed_to_customer', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_status_changed_to_customer', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_status_changed_to_customer', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_status_changed_to_customer', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_status_changed_to_customer', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'task_status_changed_to_customer', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_new_attachment_to_customer', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_new_attachment_to_customer', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_new_attachment_to_customer', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_new_attachment_to_customer', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_new_attachment_to_customer', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_new_attachment_to_customer', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'task_new_attachment_to_customer', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_new_comment_to_customer', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_new_comment_to_customer', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_new_comment_to_customer', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_new_comment_to_customer', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_new_comment_to_customer', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'task_new_comment_to_customer', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'task_new_comment_to_customer', '0', 'both', '1', '50', '50');


-- In app notifications

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_added_you_as_follower', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_added_you_as_follower', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_added_you_as_follower', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_added_you_as_follower', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_added_you_as_follower', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_added_you_as_follower', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_task_added_you_as_follower', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_assigned_to_you', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_assigned_to_you', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_assigned_to_you', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_assigned_to_you', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_assigned_to_you', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_assigned_to_you', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_task_assigned_to_you', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'new_task_assigned_non_user', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'new_task_assigned_non_user', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'new_task_assigned_non_user', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'new_task_assigned_non_user', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'new_task_assigned_non_user', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'new_task_assigned_non_user', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'new_task_assigned_non_user', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_unmarked_as_complete', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_unmarked_as_complete', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_unmarked_as_complete', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_unmarked_as_complete', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_unmarked_as_complete', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_unmarked_as_complete', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_task_unmarked_as_complete', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_status_changed', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_status_changed', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_status_changed', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_status_changed', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_status_changed', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_status_changed', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_task_status_changed', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_marked_as_complete', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_marked_as_complete', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_marked_as_complete', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_marked_as_complete', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_marked_as_complete', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_marked_as_complete', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_task_marked_as_complete', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_new_attachment', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_new_attachment', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_new_attachment', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_new_attachment', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_new_attachment', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_task_new_attachment', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_task_new_attachment', '0', 'both', '1', '50', '50');

-- Tasks ends

-- Estiamtes starts

-- Activity

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_converted', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_converted', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_converted', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_converted', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_converted', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_converted', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'estimate_activity_converted', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_created', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_created', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_created', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_created', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_created', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_created', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'estimate_activity_created', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_status_updated', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_status_updated', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_status_updated', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_status_updated', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_status_updated', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_status_updated', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_estimate_status_updated', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_number_changed', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_number_changed', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_number_changed', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_number_changed', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_number_changed', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_number_changed', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'estimate_activity_number_changed', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_client_accepted_and_converted', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_client_accepted_and_converted', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_client_accepted_and_converted', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_client_accepted_and_converted', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_client_accepted_and_converted', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_client_accepted_and_converted', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'estimate_activity_client_accepted_and_converted', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_client_declined', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_client_declined', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_client_declined', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_client_declined', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_client_declined', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_client_declined', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'estimate_activity_client_declined', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_marked', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_marked', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_marked', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_marked', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_marked', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_marked', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'estimate_activity_marked', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_sent_to_client', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_sent_to_client', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_sent_to_client', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_sent_to_client', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_sent_to_client', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_estimate_activity_sent_to_client', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_estimate_activity_sent_to_client', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_expiry_reminder_sent', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_expiry_reminder_sent', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_expiry_reminder_sent', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_expiry_reminder_sent', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_expiry_reminder_sent', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_expiry_reminder_sent', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_expiry_reminder_sent', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_invoice_deleted', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_invoice_deleted', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_invoice_deleted', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_invoice_deleted', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_invoice_deleted', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_invoice_deleted', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_estimate_invoice_deleted', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_added_attachment', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_added_attachment', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_added_attachment', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_added_attachment', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_added_attachment', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_activity_added_attachment', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'estimate_activity_added_attachment', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_added_attachment', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_added_attachment', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_added_attachment', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_added_attachment', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_added_attachment', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_activity_added_attachment', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_activity_added_attachment', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_customer_accepted', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_customer_accepted', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_customer_accepted', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_customer_accepted', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_customer_accepted', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_customer_accepted', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_estimate_customer_accepted', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_customer_declined', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_customer_declined', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_customer_declined', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_customer_declined', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_customer_declined', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_estimate_customer_declined', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_estimate_customer_declined', '0', 'both', '1', '50', '50');

-- Mails

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_accepted_to_customer', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_accepted_to_customer', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_accepted_to_customer', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_accepted_to_customer', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_accepted_to_customer', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_accepted_to_customer', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'estimate_accepted_to_customer', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_accepted_to_staff', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_accepted_to_staff', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_accepted_to_staff', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_accepted_to_staff', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_accepted_to_staff', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_accepted_to_staff', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'estimate_accepted_to_staff', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_declined_to_staff', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_declined_to_staff', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_declined_to_staff', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_declined_to_staff', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_declined_to_staff', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_declined_to_staff', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'estimate_declined_to_staff', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_expiration_reminder', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_expiration_reminder', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_expiration_reminder', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_expiration_reminder', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_expiration_reminder', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_expiration_reminder', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'estimate_expiration_reminder', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_send_to_customer', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_send_to_customer', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_send_to_customer', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_send_to_customer', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_send_to_customer', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_send_to_customer', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'estimate_send_to_customer', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_send_to_customer_already_sent', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_send_to_customer_already_sent', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_send_to_customer_already_sent', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_send_to_customer_already_sent', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_send_to_customer_already_sent', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'estimate_send_to_customer_already_sent', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'estimate_send_to_customer_already_sent', '0', 'both', '1', '50', '50');

-- Estiamtes ends

-- Clients Start 
-- Mails
INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_created_welcome_mail', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_created_welcome_mail', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_created_welcome_mail', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_created_welcome_mail', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_created_welcome_mail', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_created_welcome_mail', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'customer_created_welcome_mail', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_registration_confirmed', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_registration_confirmed', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_registration_confirmed', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_registration_confirmed', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_registration_confirmed', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_registration_confirmed', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'customer_registration_confirmed', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_contact_verification', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_contact_verification', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_contact_verification', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_contact_verification', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_contact_verification', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_contact_verification', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'customer_contact_verification', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_profile_uploaded_file_to_staff', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_profile_uploaded_file_to_staff', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_profile_uploaded_file_to_staff', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_profile_uploaded_file_to_staff', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_profile_uploaded_file_to_staff', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'customer_profile_uploaded_file_to_staff', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'customer_profile_uploaded_file_to_staff', '0', 'both', '1', '50', '50');

-- Clients end


-- Payments start

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_payment_recorded_to_staff', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_payment_recorded_to_staff', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_payment_recorded_to_staff', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_payment_recorded_to_staff', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_payment_recorded_to_staff', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_payment_recorded_to_staff', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_payment_recorded_to_staff', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_payment_recorded_to_customer', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_payment_recorded_to_customer', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_payment_recorded_to_customer', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_payment_recorded_to_customer', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_payment_recorded_to_customer', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'invoice_payment_recorded_to_customer', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'invoice_payment_recorded_to_customer', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'subscription_payment_succeeded', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'subscription_payment_succeeded', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'subscription_payment_succeeded', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'subscription_payment_succeeded', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'subscription_payment_succeeded', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'subscription_payment_succeeded', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'subscription_payment_succeeded', '0', 'both', '1', '50', '50');

INSERT INTO `tblmobile_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_invoice_payment_recorded', '1');
INSERT INTO `tbldesktop_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_invoice_payment_recorded', '1');
INSERT INTO `tblemail_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_invoice_payment_recorded', '1');
INSERT INTO `tblsms_push_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_invoice_payment_recorded', '1');
INSERT INTO `tblin_app_notification_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_invoice_payment_recorded', '1');
INSERT INTO `tblactivity_log_config` (`id`, `codename`, `is_active`) VALUES (NULL, 'not_invoice_payment_recorded', '1');
INSERT INTO `tblreward_distribution_config` 
(`id`, `codename`, `is_active`, `reward_for`, `is_multiple_distribution`, `reward_to_a`, `reward_to_b`) 
VALUES 
(NULL, 'not_invoice_payment_recorded', '0', 'both', '1', '50', '50');

-- Payments end

