ue-softphone-sdk-beta 3.0.24 → 3.0.25
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/dist/lib/types/index.d.ts +1 -0
- package/dist/lib/ue-soft-phone.min.js +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/ue-softphone-sdk.js +1 -1
- package/index.html/index.html +20 -6
- package/package.json +1 -1
- package/src/index.ts +23 -13
- package/sdkdemo/hangup.wav +0 -0
- package/sdkdemo/img/wifi1.b7af5ed5.svg +0 -10
- package/sdkdemo/img/wifi2.1648a543.svg +0 -4
- package/sdkdemo/img/wifi3.ec030889.svg +0 -4
- package/sdkdemo/img/wifi4.101d572a.svg +0 -4
- package/sdkdemo/ring.wav +0 -0
- package/sdkdemo/ue-load.min.js +0 -119
- package/sdkdemo/ue.global.js +0 -15361
- package/sdkdemo/ue.lib.css +0 -1
- package/sdkdemo/ue.min.js +0 -49
- package/sdkdemo/webphone_ez.html +0 -76
package/sdkdemo/webphone_ez.html
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: Wangtao
|
|
3
|
-
* @Date: 2024-02-04 15:32:27
|
|
4
|
-
* @LastEditors: Wangtao
|
|
5
|
-
* @LastEditTime: 2024-02-05 19:32:44
|
|
6
|
-
-->
|
|
7
|
-
<!DOCTYPE html>
|
|
8
|
-
<html>
|
|
9
|
-
<script type="text/javascript"></script>
|
|
10
|
-
<!-- <script src="./ue-load.min.js"></script> -->
|
|
11
|
-
<script src="https://softphone-dev.useasy.cn/ue-load.min.js"></script>
|
|
12
|
-
<!-- <script src="https://softphone-dev.useasy.cn/ue-load.min.js"></script> -->
|
|
13
|
-
|
|
14
|
-
<body>
|
|
15
|
-
<div>
|
|
16
|
-
<div id="button">
|
|
17
|
-
<button id="SHOP_CART_ADD_SKU" onclick="callout();">外呼</button>
|
|
18
|
-
<button id="SHOP_CHECKOUT_CREATE" onclick="hangup();">挂断</button>
|
|
19
|
-
<button id="SHOP_CHECKOUT_CREATE" onclick="loadjs();">动态加js</button>
|
|
20
|
-
<button id="SHOP_CHECKOUT_CREATE" onclick="init();">初始化</button>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
</body>
|
|
24
|
-
|
|
25
|
-
<script type="text/javascript">
|
|
26
|
-
/* 动态加载js */
|
|
27
|
-
function loadjs () {
|
|
28
|
-
const script = document.createElement('script')
|
|
29
|
-
script.type = 'text/javascript'
|
|
30
|
-
script.src = 'https://softphone.useasy.cn/ue-load.min.js'
|
|
31
|
-
document.body.appendChild(script)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
window.ueSimpleSoftphone.init({
|
|
35
|
-
accountId: 'uecs1',
|
|
36
|
-
agentNumber: '8005',
|
|
37
|
-
password: 'Aa132456@',
|
|
38
|
-
loginType: 'WEBRTC',
|
|
39
|
-
isOpenCallQueue: false,
|
|
40
|
-
isOpenNetwork: true,
|
|
41
|
-
openNlsTranslation: true,
|
|
42
|
-
server: 'https://dev1.useasy.cn/api',
|
|
43
|
-
listenCallEvent: function (event) {
|
|
44
|
-
console.log('外部事件接收:', event)
|
|
45
|
-
}
|
|
46
|
-
})
|
|
47
|
-
/* 初始化 */
|
|
48
|
-
function init () {
|
|
49
|
-
window.ueSimpleSoftphone.init({
|
|
50
|
-
accountId: 'uecs1',
|
|
51
|
-
agentNumber: '8005',
|
|
52
|
-
password: 'Aa132456@',
|
|
53
|
-
loginType: 'WEBRTC',
|
|
54
|
-
isOpenCallQueue: false,
|
|
55
|
-
isOpenNetwork: true,
|
|
56
|
-
openNlsTranslation: true,
|
|
57
|
-
server: 'https://dev1.useasy.cn/api',
|
|
58
|
-
listenCallEvent: function (event) {
|
|
59
|
-
console.log('外部事件接收:', event)
|
|
60
|
-
}
|
|
61
|
-
})
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/* function callout(){
|
|
65
|
-
ue.call.callout(Object object);
|
|
66
|
-
console.log("外呼");
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
function hangup(){
|
|
71
|
-
ue.call.hangup(Object object)
|
|
72
|
-
console.log("挂断");
|
|
73
|
-
} */
|
|
74
|
-
</script>
|
|
75
|
-
|
|
76
|
-
</html>
|