File size: 1,855 Bytes
610cbd2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
use super::bergamo_catalog::{
    VisitProfile, PART_RELAYS, PART_SENSORS, PART_VALVES, SKILL_ELECTRICAL, SKILL_ELEVATOR,
    SKILL_HVAC, SKILL_PLUMBING,
};

pub(super) const VISIT_PROFILES: &[VisitProfile] = &[
    VisitProfile {
        name: "Boiler restart",
        duration_minutes: 35,
        earliest_minute: 8 * 60,
        latest_minute: 18 * 60,
        required_skill_mask: SKILL_HVAC,
        required_parts_mask: PART_SENSORS,
        priority: 4,
    },
    VisitProfile {
        name: "Refrigeration diagnosis",
        duration_minutes: 45,
        earliest_minute: 9 * 60,
        latest_minute: 18 * 60,
        required_skill_mask: SKILL_HVAC | SKILL_ELECTRICAL,
        required_parts_mask: PART_RELAYS,
        priority: 5,
    },
    VisitProfile {
        name: "Electrical board check",
        duration_minutes: 30,
        earliest_minute: 8 * 60 + 30,
        latest_minute: 18 * 60,
        required_skill_mask: SKILL_ELECTRICAL,
        required_parts_mask: PART_RELAYS,
        priority: 3,
    },
    VisitProfile {
        name: "Pump service",
        duration_minutes: 50,
        earliest_minute: 10 * 60,
        latest_minute: 18 * 60,
        required_skill_mask: SKILL_PLUMBING,
        required_parts_mask: PART_VALVES,
        priority: 3,
    },
    VisitProfile {
        name: "Lift safety inspection",
        duration_minutes: 60,
        earliest_minute: 11 * 60,
        latest_minute: 18 * 60,
        required_skill_mask: SKILL_ELEVATOR | SKILL_ELECTRICAL,
        required_parts_mask: PART_SENSORS,
        priority: 4,
    },
    VisitProfile {
        name: "Controls alarm reset",
        duration_minutes: 25,
        earliest_minute: 13 * 60,
        latest_minute: 18 * 60,
        required_skill_mask: SKILL_ELECTRICAL,
        required_parts_mask: PART_SENSORS,
        priority: 2,
    },
];