保誠-保戶業務員媒合平台
Tomas
2023-07-15 2f86b5f0c3ad47494886c5794542239bfa26850c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { http } from "./httpClient";
import {AppointmentMemoInfo, createdMemoInfo} from "~/shared/models/appointment.model";
class UtilsService {
 
  isMobileDevice(): boolean {
    const mobileDevices = ['Android', 'webOS', 'iPhone', 'iPad', 'iPod', 'BlackBerry', 'Windows Phone'];
    return mobileDevices.some(e => navigator.userAgent.match(e));
  }
 
  insertAccessFrom(from: AccessFroms): void {
    http.post('/access_analysis/insert', from);
  }
 
}
 
export default new UtilsService();
 
export enum AccessFroms {
  FILM_1 = 'FILM_1',
  FILM_2 = 'FILM_2',
}