@vgroup/dialbox 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ import { catchError, switchMap, map } from 'rxjs/operators';
9
9
  import * as i3$2 from '@angular/material/dialog';
10
10
  import { MAT_DIALOG_DATA } from '@angular/material/dialog';
11
11
  import * as i5 from '@angular/router';
12
- import { RouterLink } from '@angular/router';
12
+ import { RouterLink, RouterModule } from '@angular/router';
13
13
  import * as i3 from '@angular/common';
14
14
  import { CommonModule } from '@angular/common';
15
15
  import * as i3$1 from '@angular/forms';
@@ -2143,31 +2143,16 @@ class DialboxComponent {
2143
2143
  }
2144
2144
  }
2145
2145
  });
2146
- // Handle incoming call
2147
- const sub2 = this.twilioService.currentCall.subscribe((incomingCallData) => {
2148
- if (incomingCallData) {
2149
- console.log('Incoming call received:', incomingCallData);
2150
- this.isCallInProgress = true;
2151
- this.isDialpadHidden = false;
2152
- // Update call data for the UI
2153
- this.callData = {
2154
- ...this.callData,
2155
- phone: incomingCallData.parameters.From,
2156
- name: incomingCallData.customParameters?.get('name') || 'Unknown Caller',
2157
- img: incomingCallData.customParameters?.get('image') || 'assets/images/user.jpg',
2158
- isIncomingCall: true,
2159
- extNum: incomingCallData.parameters.To || ''
2160
- };
2161
- // Add to incoming calls list if not already present
2162
- const callSid = incomingCallData.parameters.CallSid;
2163
- const existingCall = this.incomingCallsList.find((call) => call.parameters.CallSid === callSid);
2164
- if (!existingCall) {
2165
- this.incomingCallsList.push(incomingCallData);
2166
- this.incomingCallsNewInfoEvent.emit(this.incomingCallsList);
2167
- }
2168
- // Notify parent component about the incoming call
2169
- this.incomingCallInitiated.emit();
2170
- }
2146
+ // handle incoming call
2147
+ const sub2 = this.twilioService.currentCall.subscribe(incomingCallData => {
2148
+ // if (incomingCallData) {
2149
+ // this.isCallInProgress = true;
2150
+ // this.isDialpadHidden = false;
2151
+ // this.callData.phone = incomingCallData.parameters.From;
2152
+ // this.callData.name = incomingCallData.customParameters.get('name');
2153
+ // this.callData.img = incomingCallData.customParameters.get('image');
2154
+ // this.callData.isIncomingCall = true;
2155
+ // }
2171
2156
  if (incomingCallData) {
2172
2157
  if (this.isCallInProgress) {
2173
2158
  this.newIncomingCalls.push(incomingCallData);
@@ -3060,14 +3045,16 @@ DialboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
3060
3045
  FormsModule,
3061
3046
  ReactiveFormsModule,
3062
3047
  HttpClientModule,
3063
- RouterLink], exports: [DialboxComponent,
3048
+ RouterLink,
3049
+ RouterModule], exports: [DialboxComponent,
3064
3050
  CallProgressComponent,
3065
3051
  CallerIdDialogComponent,
3066
3052
  IncomingCallComponent] });
3067
3053
  DialboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialboxModule, imports: [CommonModule,
3068
3054
  FormsModule,
3069
3055
  ReactiveFormsModule,
3070
- HttpClientModule] });
3056
+ HttpClientModule,
3057
+ RouterModule] });
3071
3058
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialboxModule, decorators: [{
3072
3059
  type: NgModule,
3073
3060
  args: [{
@@ -3082,7 +3069,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3082
3069
  FormsModule,
3083
3070
  ReactiveFormsModule,
3084
3071
  HttpClientModule,
3085
- RouterLink
3072
+ RouterLink,
3073
+ RouterModule
3086
3074
  ],
3087
3075
  exports: [
3088
3076
  DialboxComponent,