File size: 2,605 Bytes
323961b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import path from "path"

const PLAY_LIST_NAMES = {
    SCIENCE_AND_TECHNOLOGY: 'Science & Technology',
    AMAZING_UNIVERSE: 'The Amazing Universe: From Microbes to Galaxies',
    HISTORY_AND_POLITICS: 'The Past is Present: Lessons from History and Politics',
    CURRENT_AND_NEWS: 'Current Events & News Digest',

    GADGET_REVIEWS: 'Gadget Reviews',
    LAPTOP_REVIEWS: 'Laptop Reviews',
    MOBILE_REVIEWS: 'Mobile Reviews',
    RAD_TECH_TODAY: 'Rad Tech Today',

}

let INTRO_OUTRO_TENANT_CONFIG = {
    "104349087108535511186": {
        introFile: path.join(__dirname, "../../public/assets/music_intro.mp4"),
        outroFile: path.join(__dirname, "../../public/assets/music_outro.mp4"),
    },
    "116439292677772406470": {
        introFile: path.join(__dirname, "../../public/assets/music_techrads_intro.mp4"),
        outroFile: path.join(__dirname, "../../public/assets/music_techrads_outro.mp4"),
    },
}

const SOCIAL_HANDLES = {
    INSTAGRAM: {
        "104349087108535511186": 'semibit.media',
        "116439292677772406470": 'tech.rads'
    }
}

let ALL_TENANT_PLAYLISTS = {
    "104349087108535511186": {
        [PLAY_LIST_NAMES.SCIENCE_AND_TECHNOLOGY]: 'PLeT-Kik6WdhQT35w5SVx1tUzM0L-U9aHy',
        [PLAY_LIST_NAMES.AMAZING_UNIVERSE]: 'PLeT-Kik6WdhQJEnsI-QapmmjxEvZEXMQ2',
        [PLAY_LIST_NAMES.HISTORY_AND_POLITICS]: 'PLeT-Kik6WdhSqoMh2dfnFpHaGTa-3PCBB',
        [PLAY_LIST_NAMES.CURRENT_AND_NEWS]: 'PLeT-Kik6WdhTHl_RxwavJ3FXBGiXlYIxq'
    },
    "116439292677772406470": {
        [PLAY_LIST_NAMES.RAD_TECH_TODAY]: 'PLNGN7S9FgPhTFGUAhPdhdSJP5Jq0ljPqE',
        [PLAY_LIST_NAMES.LAPTOP_REVIEWS]: 'PLNGN7S9FgPhSiWXNTZgoAKz9iu6zL12ox',
        [PLAY_LIST_NAMES.MOBILE_REVIEWS]: 'PLNGN7S9FgPhQRQHOdrNXpVI_5CAT9-noa',
        [PLAY_LIST_NAMES.GADGET_REVIEWS]: 'PLNGN7S9FgPhQflAC9FqdIm7_BtLWOCDHa'
    }
}


const GET_PLAY_LIST_IDS = function (userId) {

    let playlists = ALL_TENANT_PLAYLISTS[userId] || ALL_TENANT_PLAYLISTS['104349087108535511186']
    return playlists
}

const YOUTUBE_VIDEO_CATEGORY_ID = {
    [PLAY_LIST_NAMES.SCIENCE_AND_TECHNOLOGY]: "28",
    [PLAY_LIST_NAMES.AMAZING_UNIVERSE]: "28",
    [PLAY_LIST_NAMES.HISTORY_AND_POLITICS]: "27",
    [PLAY_LIST_NAMES.CURRENT_AND_NEWS]: "25",


    [PLAY_LIST_NAMES.RAD_TECH_TODAY]: "28",
    [PLAY_LIST_NAMES.LAPTOP_REVIEWS]: "28",
    [PLAY_LIST_NAMES.MOBILE_REVIEWS]: "28",
    [PLAY_LIST_NAMES.GADGET_REVIEWS]: "28",
}

export const YoutubeCategoriesConfig = {
    PLAY_LIST_NAMES,
    ALL_TENANT_PLAYLISTS,
    GET_PLAY_LIST_IDS,
    YOUTUBE_VIDEO_CATEGORY_ID,
    INTRO_OUTRO_TENANT_CONFIG,
    SOCIAL_HANDLES
}