rez_core 2.2.262 → 2.2.263

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "2.2.262",
3
+ "version": "2.2.263",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -429,4 +429,31 @@ export class IntegrationController {
429
429
 
430
430
  return allIntegrationData;
431
431
  }
432
+
433
+ @Get('provider-urls')
434
+ getProviderUrls(
435
+ @Query('integration_type')
436
+ integration_type?: 'EMAIL' | 'SMS' | 'WA' | 'TELEPHONE',
437
+ @Query('integration_provider') integration_provider?: string,
438
+ ) {
439
+ if (integration_type === 'TELEPHONE' && integration_provider) {
440
+ if (integration_provider.toLowerCase() == 'ozonetel') {
441
+ return {
442
+ success: true,
443
+ data: {
444
+ baseUrl: 'https://in1-ccaas-api.ozonetel.com',
445
+ agentLoginUrl: 'https://agent.cloudagent.ozonetel.com/login',
446
+ },
447
+ };
448
+ } else if (integration_provider.toLowerCase() == 'tubelight') {
449
+ return {
450
+ success: true,
451
+ data: {
452
+ baseUrl: 'https://portal.tubelightcommunications.com',
453
+ agentLoginUrl: 'https://dashboard.hellotubelight.com/sign-in',
454
+ },
455
+ };
456
+ }
457
+ }
458
+ }
432
459
  }
@@ -12,6 +12,6 @@ export class IntegrationSource extends BaseEntity {
12
12
  @Column({ name: 'integration_type', type: 'varchar', length: 20 })
13
13
  integration_type: string;
14
14
 
15
- @Column({ name: 'description', type: 'varchar', length: 20 })
15
+ @Column({ name: 'description', type: 'varchar', length: 500 })
16
16
  description: string;
17
17
  }