2020-11-04 22:59:32 +01:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
|
import * as chrono from 'chrono-node'
|
|
|
|
|
import { CallHistory } from './call-history'
|
|
|
|
|
import { CallNotification } from './call-notification'
|
|
|
|
|
import { Search } from './search'
|
2021-08-27 18:12:26 +02:00
|
|
|
import { Status } from './status'
|
2020-11-04 22:59:32 +01:00
|
|
|
|
|
|
|
|
console.log('script start')
|
|
|
|
|
|
|
|
|
|
const search = new Search()
|
|
|
|
|
// eslint-disable-next-line no-undef
|
2021-11-30 14:34:29 +01:00
|
|
|
waitForKeyElements('ongoing-call-button', (element) => { search.createSearchWindow(element) }, true)
|
2020-11-04 22:59:32 +01:00
|
|
|
|
|
|
|
|
const callNotification = new CallNotification()
|
|
|
|
|
// eslint-disable-next-line no-undef
|
|
|
|
|
waitForKeyElements('call-view', (element) => { callNotification.showCallNotification(element) }, false)
|
|
|
|
|
|
|
|
|
|
const callHistory = new CallHistory()
|
|
|
|
|
// eslint-disable-next-line no-undef
|
|
|
|
|
waitForKeyElements('.call-history-list call', (element) => { callHistory.showCallHistory(element) }, false)
|
2021-08-27 18:14:09 +02:00
|
|
|
|
|
|
|
|
const status = new Status()
|
|
|
|
|
// eslint-disable-next-line no-undef
|
2021-11-30 13:39:44 +01:00
|
|
|
waitForKeyElements('wc-account-menu', (element) => { status.showStatus(element) }, false)
|