{ // which environment this resides $tp_env = 'PROD'; $webserver_ip = '166.88.25.10'; $webserver_dns = 'backend.texty.pro'; // production backend $rootUrl = "http://$webserver_dns"; $secureRootUrl = "https://$webserver_dns"; $imgUrl = "http://$webserver_dns/img"; $secureimgUrl = "https://$webserver_dns/img"; $dbCon['dbHost'] = "166.88.25.84:6446"; $dbCon['dbUid'] = "textywebapp"; $dbCon['dbPw'] = "s3ndM3NsmsNOW"; // $dbCon['db'] = "texty_pro"; $dbCon['db'] = "texty_pro_v2"; $recreate_interval_days_thr = 2; // Dev's frontend url // $textypro_url = "https://devtest1.textypro.com"; // Staging's frontend url // $textypro_url = "https://staging-frontend.texty.pro"; // Production $textypro_url = "https://chat.texty.pro"; // staging // $backend_api_url = "https://backend.xedia.net/"; // production $backend_api_url = "https://backend.texty.pro/"; define('GMT_TZ','+00:00'); define('EST_TZ','-05:00'); define('EST_TZ_DST','-04:00'); define('PST_TZ','-08:00'); define('PST_TZ_DST','-07:00'); define('CST_TZ','-06:00'); define('CST_TZ_DST','-05:00'); define('MST_TZ','-07:00'); define('MST_TZ_DST','-06:00'); // Page settings $api_limit = '10'; // search results per each search $word_compare_ratio = '70'; $word_compare_ratio_business_name = '70'; $word_compare_ratio_address = '50'; $thumb_width = '100'; $radius_far = '8000'; // ~5 miles $google_search_mode = 'full'; /*================================================== * Various API keys ===================================================*/ // $googlePlacesKey = "AIzaSyB7nv3d4dxHwHFd4X1eeVJ4NqSfUW3Y4eU"; // fg // $googlePlacesKey = "AIzaSyC0MzRDeeH-A_39-XZRZMO1QUw3dOx4bgI"; // $googlePlacesKey = "AIzaSyAnC-Q8kflmYVdreVG31G44w5DVsd75xrs"; // Jonathan's $googlePlacesKey = "AIzaSyDB7oXF113do6cJHXeWQk9T13ihANoaONk"; // New Xedia account's billing enabled - Compass Rose (compassrose2019@gmail.com) $googleTTSAPIUrl = "https://texttospeech.googleapis.com/v1/text:synthesize"; $goog_tts_config['uri'] = $googleTTSAPIUrl; $goog_tts_config['api_key'] = $googlePlacesKey; // tts sip server config $sip_config['host'] = "166.88.25.22"; $sip_config['port'] = "8080"; // tts config $tts_config['voice_set'] = "wavenet-f"; $tts_config['speaking_rate'] = "1.15"; $tts_config['pitch'] = "0"; // sox is to convert audio files ie) mp3 to wav $sox_config['command_path'] = "C:\\\"Program Files (x86)\"\sox-14-4-2\\sox"; $sox_config['dl_base_path'] = "C:/www/texty_search_dev"; $sox_config['server_address'] = $webserver_ip; // also be domain name $sox_config['product_name'] = 'texty_search_dev'; // product name // Key - Texty Pro // getStream.io API keys - Texty Pro - decommissioned after a prod wipe. // define('STREAMIO_API_KEY','kdcfu3t6bf9g'); // define('STREAM_API_SECRET','3cpm7knpfzfcnktfb87hvf2d9c3859mske6wczqnfvjra4bzw9hjx7jnxm93gnv8'); // Key - Texty Pro v2 // new keys set for wipe 20200719 // streamio doesn't let us wipe chat so getting new. define('STREAMIO_API_KEY','2fs57dv8pbrx'); define('STREAM_API_SECRET','y92p5fbz3etec4t8km32nghkrvywe5465xpfxmmm2ehwctshy9wkqa3s3qrx4ceq'); // cdr recording config $outbound_cdr_report_logging = '1'; $inbound_cdr_report_logging = '1'; $now_datetime = Date("Y-m-d H:i:s"); $now_datetime_int = strtotime($now_datetime); // Firebase Admin API private key file name $firebase_api_fname = 'texty-pro-a9983-firebase-adminsdk-s1h9u-ffa84dab03.json'; // Texty Pro production // production Bandwidth credentials $bw_cred = array(); $bw_cred['user_id'] = '5004186'; // 5005421 - an old dev cred // token and secret are same for prod and staging $bw_cred['token'] = 'bb9b4eabc94fe9d58dfc0d72d7b94b6e76af1848e42c0ddc'; $bw_cred['secret'] = 'd8c00df61b536cff1b474339b60294101dfb209b62106a7e'; $bw_cred['base_uri'] = 'https://messaging.bandwidth.com/api/v2/users/'; $bw_cred['app'] = 'messages'; // app id differs $bw_cred['application_id'] = '8dd06d06-c4bc-4918-97b7-049147ae7226'; // prod // $bw_cred['application_id'] = '859b121d-97c0-4852-a394-3b21b74294cb'; // stag // for enable sms api $bw_cred['restMessagesURI'] = "https://dashboard.bandwidth.com/api/accounts/" . $bw_cred['user_id'] . "/externalTns"; // Set the API URI base $bw_cred['site_id'] = '22924'; $bw_cred['SipPeerId'] = '575936'; // 599325 for staging $bw_cred['sms_enable_base_uri'] = "https://dashboard.bandwidth.com/api/accounts/"; $bw_cred['sms_enab le_app'] = 'externalTns'; $bw_cred['sms_enable_token'] = 'xediaapiuser'; // Carlos - an old dev cred // $bw_cred['sms_enable_secret'] = 'letsR0ckAndR0llN0w'; // Yosemite2019! - and old dev cred // $bw_cred['sms_enable_secret'] = 'letsR0ckAndR0ll2021'; // reset from 20210120 $bw_cred['sms_enable_secret'] = 'letsR0ckAndR0llOct2021'; // reset from 20211025 $bw_cred['call_app'] = 'calls'; // voice api cred $bw_cred['voice_user_id'] = '5005421'; $bw_cred['voice_base_uri'] = "https://voice.bandwidth.com/api/v2/accounts/"; $bw_cred['voice_application_id'] = 'f81da1b2-25d7-4cb9-ab66-e192595ee744'; // prod $bw_cred['voice_call_back_uri'] = $secureRootUrl . '/bw_call_back.php'; $bw_tts_voice = 'julie'; $bw_upload_path = "upload"; $bw_verification_code_caller = '9299227922'; // Inteliquent's credentials $iq_cred['auth_url'] = 'https://services-token.inteliquent.com/oauth2/token'; // $iq_cred['api_url'] = 'https://services-internal.inteliquent.com/ServicesAPI/rest/services/'; $iq_cred['api_url'] = 'https://services.inteliquent.com/Services/1.0.0/'; $iq_cred['api_url_2'] = 'https://services.inteliquent.com/Services/2.0.0/'; $iq_cred['messagebroker_url'] = 'https://messagebroker.inteliquent.com/msgbroker/rest'; $iq_cred['mb_out_api_key'] = 'vNcJuPBOTVHRdm6klx2fAOai9rB19xdd'; // STAG // $iq_cred['mb_out_api_key'] = 'LXMUJyD0KjldP5aqhLsTbF7kAHmMhx7k'; // PROD $iq_cred['client_id'] = 'sLsOjLkRjdldCApOCIDyDwSV3rnj'; $iq_cred['client_secret'] = 'RO4U2SeW4tdhTe5MW5klExHHgC3K'; $iq_cred['grant_type'] = 'client_credentials'; $iq_cred['api_type'] = 'iq_prod'; $iq_cred['wh_url'] = 'https://backend.texty.pro/iq_wh.php'; $iq_cred['env'] = $tp_env; // DocuSign Variables // $DS_basePath = 'https://demo.docusign.net/restapi'; $DS_tp_agreement_doc_filename = 'textypro_auth_template_001.pdf'; // $DS_return_url = 'https://beta.texty.pro/register-separate/electronic-signature-success'; $DS_return_url = 'https://chat.texty.pro/sign-up/electronic-signature-success'; $consent_uri = "https://account-d.docusign.com/oauth/auth?response_type=code&scope=signature%20impersonation&client_id=bd541bb3-23f5-4f69-afb2-645a5d3e7bb0&redirect_uri=https://devgenie.xedia.net"; // stripe api variables // Stripe staging/testing key sets // $stripe_public_api_key = 'pk_test_ybPb6G9m3Zcw0UjsgBzwoNr100Llr0JNhE'; // $stripe_secret_api_key = 'sk_test_NNfpQsQcIceQTwDrbNoMTcRw00gqMfMZYo'; // Stripe production key sets $stripe_public_api_key = 'pk_live_Es39skxkb6xuiZjBqR4HGfJZ00vxeaAzbO'; $stripe_secret_api_key = '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'; // feedback variables $feedback_receiver_email = 'help@xedia.net'; // overage notification threshold in percentage $overage_notification_thr = 0.9; // 90% // data247 carrier lookup api credentials $data247_cred['api_key'] = '334095f692c8e8c6dd2177419685f692c8e8c703110331748'; $data247_cred['api_url'] = 'https://api.data247.com/v3.0'; // Internal notification email distro group $internal_notification_email = 'TextyProInternalNotification@xedia.net'; } require_once("dbCon.inc"); date_default_timezone_set('UTC'); ?>