import { IntegratedSoftphone } from './EvIntegratedSoftphone.interface' ; export function runInActivityWebRTCTab ( ) { return function ( target , key , descriptor ) { const originalMethod = descriptor . value ; descriptor . value = function ( ... args ) { if ( ( this as IntegratedSoftphone ) . isWebRTCTab ) { return originalMethod . apply ( this , args ) ; } } ; return descriptor ; } ; }