20 lines
799 B
JavaScript
20 lines
799 B
JavaScript
|
|
// 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'
|
||
|
|
|
||
|
|
console.log('script start')
|
||
|
|
|
||
|
|
const search = new Search()
|
||
|
|
// eslint-disable-next-line no-undef
|
||
|
|
waitForKeyElements('div.nav-search', (element) => { search.createSearchWindow(element) }, true)
|
||
|
|
|
||
|
|
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)
|