"""Constants related to notifications.""" ORCHARD_NOTIFICATIONS_REQUIRED_FIELDS = [ 'user_ids', 'feed_name', 'feed_id', 'template', 'payload'] AWAL_COMPANY_BRAND = 'awal' ORCHARD_COMPANY_BRAND = 'theorchard' PROD_EMAIL_SENDERS = { 'theorchard_analytics_digest': '"The Orchard Notifications" ', 'theorchard_spike_detector': '"The Orchard Notifications" ', 'theorchard_auth0_sso': '"The Orchard Notifications" ', 'theorchard_trending_tracks': '"Orchard Trending Tracks" ', 'theorchard_video_product_rejection': '"The Orchard Notifications" ', 'theorchard_video_product_approval': '"The Orchard Notifications" ', 'theorchard_release_approval': '"The Orchard Notifications" ', 'theorchard_release_rejection': '"The Orchard Notifications" ', 'theorchard_digital_approval': '"The Orchard Notifications" ', 'theorchard_digital_rejection': '"The Orchard Notifications" ', 'awal_analytics_digest': '"AWAL Notifications" ', 'awal_spike_detector': '"AWAL Notifications" ', 'awal_auth0_sso': '"AWAL Notifications" ', 'awal_trending_tracks': '"AWAL Trending Tracks" ', 'awal_video_product_rejection': '"AWAL Notifications" ', 'awal_video_product_approval': '"AWAL Notifications" ', 'awal_release_approval': '"AWAL Notifications" ', 'awal_release_rejection': '"AWAL Notifications" ', 'awal_digital_approval': '"AWAL Notifications" ', 'awal_digital_rejection': '"AWAL Notifications" ', } QA_EMAIL_SENDERS = { 'theorchard_analytics_digest': '"The Orchard Notifications" ', 'theorchard_spike_detector': '"The Orchard Notifications" ', 'theorchard_auth0_sso': '"The Orchard Notifications" ', 'theorchard_trending_tracks': '"Orchard Trending Tracks" ', 'theorchard_video_product_rejection': '"The Orchard Notifications" ', 'theorchard_video_product_approval': '"The Orchard Notifications" ', 'theorchard_release_approval': '"The Orchard Notifications" ', 'theorchard_release_rejection': '"The Orchard Notifications" ', 'theorchard_digital_approval': '"The Orchard Notifications" ', 'theorchard_digital_rejection': '"The Orchard Notifications" ', 'awal_analytics_digest': '"AWAL Notifications" ', 'awal_spike_detector': '"AWAL Notifications" ', 'awal_auth0_sso': '"AWAL Notifications" ', 'awal_trending_tracks': '"AWAL Trending Tracks" ', 'awal_video_product_rejection': '"AWAL Notifications" ', 'awal_video_product_approval': '"AWAL Notifications" ', 'awal_release_approval': '"AWAL Notifications" ', 'awal_release_rejection': '"AWAL Notifications" ', 'awal_digital_approval': '"AWAL Notifications" ', 'awal_digital_rejection': '"AWAL Notifications" ', } ANALYTICS_DIGEST_STORES = ['spotify', 'itunes', 'deezer'] FORMAT_REPLACEMENTS = { 'FULL LENGTH': 'ALBUM' } TOKEN_SECRET = 'urINfQithwfnXiUUuld7x7G4b0jufZDa' SEGMENT_IDENTIFY_URL = 'https://api.segment.io/v1/pixel/identify' SEGMENT_TRACKING_URL = 'https://api.segment.io/v1/pixel/track' DEFAULT_LANGUAGE = 'en' MESSAGE_TYPE_NOTIFICATION = 'Notification' MESSAGE_TYPE_GENERAL = 'GeneralNotification' MESSAGE_TYPE_BOUNCE = 'Bounce' MESSAGE_TYPE_COMPLAINT = 'Complaint' MESSAGE_TYPES = [ MESSAGE_TYPE_NOTIFICATION, MESSAGE_TYPE_BOUNCE, MESSAGE_TYPE_COMPLAINT] SES_BOUNCE_NOTIFICATION_TYPE = 'Bounce' SES_COMPLAINT_NOTIFICATION_TYPE = 'Complaint' FEED_ID_ENCODING = { 'ATSYMBOL': '@', 'DOTSYMBOL': '.', 'DASHSYMBOL': '-' } TRENDING_TRACKS_REGION_MAPPING = { 'United States': { 'label': 'USA', 'emoji': '🇺🇸' }, 'Canada': { 'label': 'Canada', 'emoji': '🇨🇦' }, 'Mexico': { 'label': 'Mexico', 'emoji': '🇲🇽' }, 'LATAM': { 'label': 'LATAM', 'emoji': '' }, 'Brazil': { 'label': 'Brazil', 'emoji': '🇧🇷' }, 'BeNeLux': { 'label': 'BeNeLux', 'emoji': '' }, 'France': { 'label': 'France', 'emoji': '🇫🇷' }, 'Spain': { 'label': 'Spain', 'emoji': '🇪🇸' }, 'Portugal': { 'label': 'Portugal', 'emoji': '🇵🇹' }, 'GSA': { 'label': 'GSA', 'emoji': '' }, 'Nordics': { 'label': 'Nordics', 'emoji': '' }, 'Poland': { 'label': 'Poland', 'emoji': '🇵🇱' }, 'Eastern Europe': { 'label': 'Eastern Europe', 'emoji': '' }, 'Russia': { 'label': 'Russia', 'emoji': '🇷🇺' }, 'United Kingdom': { 'label': 'United Kingdom', 'emoji': '🇬🇧' }, 'Turkey': { 'label': 'Turkey', 'emoji': '🇹🇷' }, 'APAC': { 'label': 'APAC', 'emoji': '' }, 'China': { 'label': 'China', 'emoji': '🇨🇳' }, 'Japan': { 'label': 'Japan', 'emoji': '🇯🇵' }, 'Africa': { 'label': 'Africa', 'emoji': '' }, 'AU/NZ': { 'label': 'AU/NZ', 'emoji': '' }, 'India': { 'label': 'India', 'emoji': '🇮🇳' }, 'Israel': { 'label': 'Israel', 'emoji': '🇮🇱' }, 'Italy': { 'label': 'Italy', 'emoji': '🇮🇹' } } TEMPLATES_WITH_FEATURE_FLAG = ['spike_detector', 'analytics_digest', 'digital_approval'] # We better use .jinja extension for templates, but still support .html # extensions are in priority order TEMPLATE_EXTENSIONS = ['.jinja', '.html'] CONTENT_REVIEW_TESTING_EMAIL = 'cr_testing@sonymusic-pde.com' CONTENT_REVIEW_CONFIRMATION_EMAIL = 'gtavarez@sonymusic-pde.com'