Tools


 * Houses Tewari script, MailToLove and other Cron jobs.


 * 1) Scripts/Tewari.php - Tewari is the script responsible for provisioning new tenants and performing initial tests on the instance. Tewari currently runs from cron and picks up a list of pending new instances, marks a new instance as in-progress (so that multiple running creation scripts do not have contention issues), creates the database user, creates tables and view, generates API keys and stores the configuration information in cupid. The system then connects to the new tenant over the API to send love to the administrator which tests the api, database, configuration and email capabilities of the new tenant.
 * 2) MailToLove - This is the cronjob responsible for emailing love sent from one user to another. It runs every 5 minutes for every cluster/instance. mailToLove.php -> mailToLove.crontab  MailToLove uses the Love/api.php
 * 3) Monthly Invoice Report mailed to Ryan Downe. This lists all instances independent of cluster that have surpassed their 30 day trial period.  Runs 7 days prior to the last day of the month. reminder_mailing2.php->MonthlyInvoiceCronjob.crontab
 * 4) Daily Instance Stats - Usage (loves sent) report for all tenants. Runs daily at 11am Pacific. tenantStatusCronjob.php-> currently in the private osconfig repository
 * 5) SMS Confirm - Confirms Love users sms code upon initial entry into Love/Settings. smsconfirm.php->smsconfirm.crontab
 * 6) Trial Period Expiration - Sends email to tenant 5 days prior to the end of their trial period expiration alerting them that thereafter they will be invoiced for usage. Runs daily at 8am Pacific. trialPeriodExpirationCron.php->instanceExpirationCronjob.crontab
 * 7) Weekly Updates - If defined in instance Company Admin settings, emails weekly love sent report to all users in instance. (note that days of week and time are defined in admin settings by customer). Runs every 5 minutes. weeklyupdatesCronjob.php->weeklyupdatesCronjob.crontab
 * 8) imageemails.php->imageemails.crontab - TODO