@94ai/nf-microphone 8.3.11 → 8.3.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.
@@ -15735,15 +15735,11 @@ __sfc_main.setup = (__props, __ctx) => {
15735
15735
  * 获取 Gateway
15736
15736
  */
15737
15737
  getGateway() {
15738
- if (props.sgGateway) {
15739
- if (isDomainOrIP(props.sgGateway)) {
15740
- return props.sgGateway;
15741
- }
15742
- if (props.sgGateway === "1") {
15743
- return "https://gateway.teleai.com";
15744
- } else if (props.sgGateway === "0") {
15745
- return "https://gateway.94ai.pro";
15746
- }
15738
+ if (isDomainOrIP(props.sgGateway)) {
15739
+ return props.sgGateway;
15740
+ }
15741
+ if (props.sgGateway === "1") {
15742
+ return "https://gateway.teleai.com";
15747
15743
  }
15748
15744
  return "https://gateway.94ai.pro";
15749
15745
  }
@@ -15752,23 +15748,17 @@ __sfc_main.setup = (__props, __ctx) => {
15752
15748
  sgOpen,
15753
15749
  sgDomain
15754
15750
  } = props;
15755
- if (sgOpen) {
15756
- if (isDomainOrIP(sgOpen)) {
15757
- return sgOpen;
15758
- }
15759
- if (sgOpen === "1") {
15760
- if (sgDomain === "1") {
15761
- return "https://seat.teleai.com/sgopenapi";
15762
- } else {
15763
- return "https://seat.teleai.com/openapi";
15764
- }
15765
- } else if (sgOpen === "0") {
15766
- if (sgDomain === "1") {
15767
- return "https://seat.94ai.com/sgopenapi";
15768
- } else {
15769
- return "https://seat.94ai.com/openapi";
15770
- }
15751
+ if (isDomainOrIP(sgOpen)) {
15752
+ return sgOpen;
15753
+ }
15754
+ if (sgOpen === "1") {
15755
+ if (sgDomain === "1") {
15756
+ return "https://seat.teleai.com/sgopenapi";
15771
15757
  }
15758
+ return "https://seat.teleai.com/openapi";
15759
+ }
15760
+ if (sgDomain === "1") {
15761
+ return "https://seat.94ai.com/sgopenapi";
15772
15762
  }
15773
15763
  return "https://seat.94ai.com/openapi";
15774
15764
  }
@@ -15776,17 +15766,13 @@ __sfc_main.setup = (__props, __ctx) => {
15776
15766
  const {
15777
15767
  sgBase
15778
15768
  } = props;
15779
- if (sgBase) {
15780
- if (isDomainOrIP(sgBase)) {
15781
- return sgBase;
15782
- }
15783
- if (sgBase === "1") {
15784
- return "https://seat.teleai.com/api";
15785
- } else if (sgBase === "0") {
15786
- return "https://seat.94ai.com/api";
15787
- }
15769
+ if (isDomainOrIP(sgBase)) {
15770
+ return sgBase;
15771
+ }
15772
+ if (sgBase === "1") {
15773
+ return "https://seat.teleai.com/api";
15788
15774
  }
15789
- return void 0;
15775
+ return "https://seat.94ai.com/api";
15790
15776
  }
15791
15777
  getIsOem() {
15792
15778
  return props.isOem;
@@ -15915,7 +15901,7 @@ __sfc_main.setup = (__props, __ctx) => {
15915
15901
  });
15916
15902
  }
15917
15903
  seatsStatusChange(status) {
15918
- this.microCommunicat("softphone-connect", {
15904
+ this.microCommunicat("softphone-seats-status-change", {
15919
15905
  status
15920
15906
  });
15921
15907
  }
@@ -16623,15 +16609,11 @@ class SoftphoneManager {
16623
16609
  * 获取 Gateway
16624
16610
  */
16625
16611
  getGateway() {
16626
- if (props.sgGateway) {
16627
- if (isDomainOrIP(props.sgGateway)) {
16628
- return props.sgGateway;
16629
- }
16630
- if (props.sgGateway === "1") {
16631
- return "https://gateway.teleai.com";
16632
- } else if (props.sgGateway === "0") {
16633
- return "https://gateway.94ai.pro";
16634
- }
16612
+ if (isDomainOrIP(props.sgGateway)) {
16613
+ return props.sgGateway;
16614
+ }
16615
+ if (props.sgGateway === "1") {
16616
+ return "https://gateway.teleai.com";
16635
16617
  }
16636
16618
  return "https://gateway.94ai.pro";
16637
16619
  }
@@ -16640,23 +16622,17 @@ class SoftphoneManager {
16640
16622
  sgOpen,
16641
16623
  sgDomain
16642
16624
  } = props;
16643
- if (sgOpen) {
16644
- if (isDomainOrIP(sgOpen)) {
16645
- return sgOpen;
16646
- }
16647
- if (sgOpen === "1") {
16648
- if (sgDomain === "1") {
16649
- return "https://seat.teleai.com/sgopenapi";
16650
- } else {
16651
- return "https://seat.teleai.com/openapi";
16652
- }
16653
- } else if (sgOpen === "0") {
16654
- if (sgDomain === "1") {
16655
- return "https://seat.94ai.com/sgopenapi";
16656
- } else {
16657
- return "https://seat.94ai.com/openapi";
16658
- }
16625
+ if (isDomainOrIP(sgOpen)) {
16626
+ return sgOpen;
16627
+ }
16628
+ if (sgOpen === "1") {
16629
+ if (sgDomain === "1") {
16630
+ return "https://seat.teleai.com/sgopenapi";
16659
16631
  }
16632
+ return "https://seat.teleai.com/openapi";
16633
+ }
16634
+ if (sgDomain === "1") {
16635
+ return "https://seat.94ai.com/sgopenapi";
16660
16636
  }
16661
16637
  return "https://seat.94ai.com/openapi";
16662
16638
  }
@@ -16664,17 +16640,13 @@ class SoftphoneManager {
16664
16640
  const {
16665
16641
  sgBase
16666
16642
  } = props;
16667
- if (sgBase) {
16668
- if (isDomainOrIP(sgBase)) {
16669
- return sgBase;
16670
- }
16671
- if (sgBase === "1") {
16672
- return "https://seat.teleai.com/api";
16673
- } else if (sgBase === "0") {
16674
- return "https://seat.94ai.com/api";
16675
- }
16643
+ if (isDomainOrIP(sgBase)) {
16644
+ return sgBase;
16645
+ }
16646
+ if (sgBase === "1") {
16647
+ return "https://seat.teleai.com/api";
16676
16648
  }
16677
- return void 0;
16649
+ return "https://seat.94ai.com/api";
16678
16650
  }
16679
16651
  getIsOem() {
16680
16652
  return props.isOem;
@@ -16801,7 +16773,7 @@ class SoftphoneManager {
16801
16773
  });
16802
16774
  }
16803
16775
  seatsStatusChange(status) {
16804
- this.microCommunicat("softphone-connect", {
16776
+ this.microCommunicat("softphone-seats-status-change", {
16805
16777
  status
16806
16778
  });
16807
16779
  }
@@ -15733,15 +15733,11 @@ __sfc_main.setup = (__props, __ctx) => {
15733
15733
  * 获取 Gateway
15734
15734
  */
15735
15735
  getGateway() {
15736
- if (props.sgGateway) {
15737
- if (isDomainOrIP(props.sgGateway)) {
15738
- return props.sgGateway;
15739
- }
15740
- if (props.sgGateway === "1") {
15741
- return "https://gateway.teleai.com";
15742
- } else if (props.sgGateway === "0") {
15743
- return "https://gateway.94ai.pro";
15744
- }
15736
+ if (isDomainOrIP(props.sgGateway)) {
15737
+ return props.sgGateway;
15738
+ }
15739
+ if (props.sgGateway === "1") {
15740
+ return "https://gateway.teleai.com";
15745
15741
  }
15746
15742
  return "https://gateway.94ai.pro";
15747
15743
  }
@@ -15750,23 +15746,17 @@ __sfc_main.setup = (__props, __ctx) => {
15750
15746
  sgOpen,
15751
15747
  sgDomain
15752
15748
  } = props;
15753
- if (sgOpen) {
15754
- if (isDomainOrIP(sgOpen)) {
15755
- return sgOpen;
15756
- }
15757
- if (sgOpen === "1") {
15758
- if (sgDomain === "1") {
15759
- return "https://seat.teleai.com/sgopenapi";
15760
- } else {
15761
- return "https://seat.teleai.com/openapi";
15762
- }
15763
- } else if (sgOpen === "0") {
15764
- if (sgDomain === "1") {
15765
- return "https://seat.94ai.com/sgopenapi";
15766
- } else {
15767
- return "https://seat.94ai.com/openapi";
15768
- }
15749
+ if (isDomainOrIP(sgOpen)) {
15750
+ return sgOpen;
15751
+ }
15752
+ if (sgOpen === "1") {
15753
+ if (sgDomain === "1") {
15754
+ return "https://seat.teleai.com/sgopenapi";
15769
15755
  }
15756
+ return "https://seat.teleai.com/openapi";
15757
+ }
15758
+ if (sgDomain === "1") {
15759
+ return "https://seat.94ai.com/sgopenapi";
15770
15760
  }
15771
15761
  return "https://seat.94ai.com/openapi";
15772
15762
  }
@@ -15774,17 +15764,13 @@ __sfc_main.setup = (__props, __ctx) => {
15774
15764
  const {
15775
15765
  sgBase
15776
15766
  } = props;
15777
- if (sgBase) {
15778
- if (isDomainOrIP(sgBase)) {
15779
- return sgBase;
15780
- }
15781
- if (sgBase === "1") {
15782
- return "https://seat.teleai.com/api";
15783
- } else if (sgBase === "0") {
15784
- return "https://seat.94ai.com/api";
15785
- }
15767
+ if (isDomainOrIP(sgBase)) {
15768
+ return sgBase;
15769
+ }
15770
+ if (sgBase === "1") {
15771
+ return "https://seat.teleai.com/api";
15786
15772
  }
15787
- return void 0;
15773
+ return "https://seat.94ai.com/api";
15788
15774
  }
15789
15775
  getIsOem() {
15790
15776
  return props.isOem;
@@ -15913,7 +15899,7 @@ __sfc_main.setup = (__props, __ctx) => {
15913
15899
  });
15914
15900
  }
15915
15901
  seatsStatusChange(status) {
15916
- this.microCommunicat("softphone-connect", {
15902
+ this.microCommunicat("softphone-seats-status-change", {
15917
15903
  status
15918
15904
  });
15919
15905
  }
@@ -16621,15 +16607,11 @@ class SoftphoneManager {
16621
16607
  * 获取 Gateway
16622
16608
  */
16623
16609
  getGateway() {
16624
- if (props.sgGateway) {
16625
- if (isDomainOrIP(props.sgGateway)) {
16626
- return props.sgGateway;
16627
- }
16628
- if (props.sgGateway === "1") {
16629
- return "https://gateway.teleai.com";
16630
- } else if (props.sgGateway === "0") {
16631
- return "https://gateway.94ai.pro";
16632
- }
16610
+ if (isDomainOrIP(props.sgGateway)) {
16611
+ return props.sgGateway;
16612
+ }
16613
+ if (props.sgGateway === "1") {
16614
+ return "https://gateway.teleai.com";
16633
16615
  }
16634
16616
  return "https://gateway.94ai.pro";
16635
16617
  }
@@ -16638,23 +16620,17 @@ class SoftphoneManager {
16638
16620
  sgOpen,
16639
16621
  sgDomain
16640
16622
  } = props;
16641
- if (sgOpen) {
16642
- if (isDomainOrIP(sgOpen)) {
16643
- return sgOpen;
16644
- }
16645
- if (sgOpen === "1") {
16646
- if (sgDomain === "1") {
16647
- return "https://seat.teleai.com/sgopenapi";
16648
- } else {
16649
- return "https://seat.teleai.com/openapi";
16650
- }
16651
- } else if (sgOpen === "0") {
16652
- if (sgDomain === "1") {
16653
- return "https://seat.94ai.com/sgopenapi";
16654
- } else {
16655
- return "https://seat.94ai.com/openapi";
16656
- }
16623
+ if (isDomainOrIP(sgOpen)) {
16624
+ return sgOpen;
16625
+ }
16626
+ if (sgOpen === "1") {
16627
+ if (sgDomain === "1") {
16628
+ return "https://seat.teleai.com/sgopenapi";
16657
16629
  }
16630
+ return "https://seat.teleai.com/openapi";
16631
+ }
16632
+ if (sgDomain === "1") {
16633
+ return "https://seat.94ai.com/sgopenapi";
16658
16634
  }
16659
16635
  return "https://seat.94ai.com/openapi";
16660
16636
  }
@@ -16662,17 +16638,13 @@ class SoftphoneManager {
16662
16638
  const {
16663
16639
  sgBase
16664
16640
  } = props;
16665
- if (sgBase) {
16666
- if (isDomainOrIP(sgBase)) {
16667
- return sgBase;
16668
- }
16669
- if (sgBase === "1") {
16670
- return "https://seat.teleai.com/api";
16671
- } else if (sgBase === "0") {
16672
- return "https://seat.94ai.com/api";
16673
- }
16641
+ if (isDomainOrIP(sgBase)) {
16642
+ return sgBase;
16643
+ }
16644
+ if (sgBase === "1") {
16645
+ return "https://seat.teleai.com/api";
16674
16646
  }
16675
- return void 0;
16647
+ return "https://seat.94ai.com/api";
16676
16648
  }
16677
16649
  getIsOem() {
16678
16650
  return props.isOem;
@@ -16799,7 +16771,7 @@ class SoftphoneManager {
16799
16771
  });
16800
16772
  }
16801
16773
  seatsStatusChange(status) {
16802
- this.microCommunicat("softphone-connect", {
16774
+ this.microCommunicat("softphone-seats-status-change", {
16803
16775
  status
16804
16776
  });
16805
16777
  }
@@ -253,15 +253,11 @@ export class SoftphoneManager {
253
253
  * 获取 Gateway
254
254
  */
255
255
  getGateway() {
256
- if (props.sgGateway) {
257
- if (isDomainOrIP(props.sgGateway)) {
258
- return props.sgGateway
259
- }
260
- if (props.sgGateway === '1') {
261
- return 'https://gateway.teleai.com'
262
- } else if (props.sgGateway === '0') {
263
- return 'https://gateway.94ai.pro'
264
- }
256
+ if (isDomainOrIP(props.sgGateway)) {
257
+ return props.sgGateway
258
+ }
259
+ if (props.sgGateway === '1') {
260
+ return 'https://gateway.teleai.com'
265
261
  }
266
262
  return 'https://gateway.94ai.pro'
267
263
  }
@@ -271,23 +267,17 @@ export class SoftphoneManager {
271
267
  sgOpen,
272
268
  sgDomain
273
269
  } = props
274
- if (sgOpen) {
275
- if (isDomainOrIP(sgOpen)) {
276
- return sgOpen
277
- }
278
- if (sgOpen === '1') {
279
- if (sgDomain === '1') {
280
- return 'https://seat.teleai.com/sgopenapi'
281
- } else {
282
- return 'https://seat.teleai.com/openapi'
283
- }
284
- } else if (sgOpen === '0') {
285
- if (sgDomain === '1') {
286
- return 'https://seat.94ai.com/sgopenapi'
287
- } else {
288
- return 'https://seat.94ai.com/openapi'
289
- }
270
+ if (isDomainOrIP(sgOpen)) {
271
+ return sgOpen
272
+ }
273
+ if (sgOpen === '1') {
274
+ if (sgDomain === '1') {
275
+ return 'https://seat.teleai.com/sgopenapi'
290
276
  }
277
+ return 'https://seat.teleai.com/openapi'
278
+ }
279
+ if (sgDomain === '1') {
280
+ return 'https://seat.94ai.com/sgopenapi'
291
281
  }
292
282
  return 'https://seat.94ai.com/openapi'
293
283
  }
@@ -296,17 +286,13 @@ export class SoftphoneManager {
296
286
  const {
297
287
  sgBase
298
288
  } = props
299
- if (sgBase) {
300
- if (isDomainOrIP(sgBase)) {
301
- return sgBase
302
- }
303
- if (sgBase === '1') {
304
- return 'https://seat.teleai.com/api'
305
- } else if (sgBase === '0') {
306
- return 'https://seat.94ai.com/api'
307
- }
289
+ if (isDomainOrIP(sgBase)) {
290
+ return sgBase
291
+ }
292
+ if (sgBase === '1') {
293
+ return 'https://seat.teleai.com/api'
308
294
  }
309
- return undefined
295
+ return 'https://seat.94ai.com/api'
310
296
  }
311
297
 
312
298
  getIsOem () {
@@ -467,7 +453,7 @@ export class SoftphoneManager {
467
453
  }
468
454
 
469
455
  seatsStatusChange(status: boolean) {
470
- this.microCommunicat('softphone-connect', {
456
+ this.microCommunicat('softphone-seats-status-change', {
471
457
  status
472
458
  })
473
459
  }
@@ -239,15 +239,11 @@ class Shared {
239
239
  * 获取 Gateway
240
240
  */
241
241
  getGateway() {
242
- if (props.sgGateway) {
243
- if (isDomainOrIP(props.sgGateway)) {
244
- return props.sgGateway
245
- }
246
- if (props.sgGateway === '1') {
247
- return 'https://gateway.teleai.com'
248
- } else if (props.sgGateway === '0') {
249
- return 'https://gateway.94ai.pro'
250
- }
242
+ if (isDomainOrIP(props.sgGateway)) {
243
+ return props.sgGateway
244
+ }
245
+ if (props.sgGateway === '1') {
246
+ return 'https://gateway.teleai.com'
251
247
  }
252
248
  return 'https://gateway.94ai.pro'
253
249
  }
@@ -257,23 +253,17 @@ class Shared {
257
253
  sgOpen,
258
254
  sgDomain
259
255
  } = props
260
- if (sgOpen) {
261
- if (isDomainOrIP(sgOpen)) {
262
- return sgOpen
263
- }
264
- if (sgOpen === '1') {
265
- if (sgDomain === '1') {
266
- return 'https://seat.teleai.com/sgopenapi'
267
- } else {
268
- return 'https://seat.teleai.com/openapi'
269
- }
270
- } else if (sgOpen === '0') {
271
- if (sgDomain === '1') {
272
- return 'https://seat.94ai.com/sgopenapi'
273
- } else {
274
- return 'https://seat.94ai.com/openapi'
275
- }
256
+ if (isDomainOrIP(sgOpen)) {
257
+ return sgOpen
258
+ }
259
+ if (sgOpen === '1') {
260
+ if (sgDomain === '1') {
261
+ return 'https://seat.teleai.com/sgopenapi'
276
262
  }
263
+ return 'https://seat.teleai.com/openapi'
264
+ }
265
+ if (sgDomain === '1') {
266
+ return 'https://seat.94ai.com/sgopenapi'
277
267
  }
278
268
  return 'https://seat.94ai.com/openapi'
279
269
  }
@@ -282,17 +272,13 @@ class Shared {
282
272
  const {
283
273
  sgBase
284
274
  } = props
285
- if (sgBase) {
286
- if (isDomainOrIP(sgBase)) {
287
- return sgBase
288
- }
289
- if (sgBase === '1') {
290
- return 'https://seat.teleai.com/api'
291
- } else if (sgBase === '0') {
292
- return 'https://seat.94ai.com/api'
293
- }
275
+ if (isDomainOrIP(sgBase)) {
276
+ return sgBase
277
+ }
278
+ if (sgBase === '1') {
279
+ return 'https://seat.teleai.com/api'
294
280
  }
295
- return undefined
281
+ return 'https://seat.94ai.com/api'
296
282
  }
297
283
 
298
284
  getIsOem () {
@@ -454,7 +440,7 @@ class MicroManager {
454
440
  }
455
441
 
456
442
  seatsStatusChange(status: boolean) {
457
- this.microCommunicat('softphone-connect', {
443
+ this.microCommunicat('softphone-seats-status-change', {
458
444
  status
459
445
  })
460
446
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-microphone",
3
- "version": "8.3.11",
3
+ "version": "8.3.14",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,7 +14,7 @@
14
14
  "url": "http://94ai.gitlab.com/ui/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/nf-theme-chalk": "^8.3.11",
17
+ "@94ai/nf-theme-chalk": "^8.3.14",
18
18
  "crypto-js": "^4.2.0",
19
19
  "qiankun": "^2.10.16",
20
20
  "vue-demi": "^0.14.5",
@@ -33,5 +33,5 @@
33
33
  "types": "lib/index.d.ts",
34
34
  "main": "lib/nf-microphone.cjs.js",
35
35
  "module": "lib/nf-microphone.esm-bundler.js",
36
- "gitHead": "bcc31174ac00de980e870e1d5dfdac988acd2978"
36
+ "gitHead": "6a9daedc595c1d560ec1fdb3574fd6bf11c93ade"
37
37
  }