npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ccbar.js

v3.0.1-2

Published

A simple, intuitive, and powerful JavaScript signaling library

Downloads

31

Readme

ccbar.js

ccbar

初始化ccbar

    // 初始化ccbar
    var _ccbar = new CCBAR.CORE.CCBAR({
        enterprise: 企业简称,
        account: 坐席账号,
        password: 坐席登录密码,
        skillGroupId: 签入的技能组ID
    });

方法

| 方法名 | 参数 | 说明 | | :-----------: | :-----------------------------------------: | :-------------: | | signIn | 无 | 签入 | | getNumberList | 无 | 获取显号列表 | | changeStatus | status:number(1:空闲;2:小休;3:忙碌) | 坐席状态切换 | | normalCall | phone:呼叫号码;displayNum:显号 | 打电话 | | endCall | sessionId | 结束电话 | | mute | sessionId | 静音 | | holdOn | sessionId | 保持通话 | | resumeCall | sessionId | 恢复通话 | | satisfiy | sessionId | 下发满意度 | | signOut | 无 | 签出 | | getSip | 无 | 查询sip相关参数 |

getWebSocketSubject回调

软电话机状态消息推送回调。

| 字段 | 值 | 说明 | | :---: | :-------------------------------------------------------------------------------------------: | :-----------: | | type | 1-建立连接2-坐席状态 3-自动呼叫消息4-通知消息 5-出登录消息6-通话弹窗 | 类型 | | msg | WsMessage | WsMessage消息 |

WsMessage

| 字段 | 类型 | 说明 | | :--------: | :----: | :------------------------------: | | seatId | number | 坐席id | | status | string | 坐席状态名称 | | statusCode | number | 坐席状态值(详情参考statusCode) | | sessionId | string | 通话唯一标识 | | ttl | number | 后处理倒计时(单位秒) | | phone | string | 弹屏电话 | | timestamp | number | 时间戳 |

statusCode

| 值 | 说明 | | :---: | :-------------------------: | | 0 | 未签入 UNSIGN | | 1 | 空闲 FREE | | 2 | 小休 BREAK | | 3 | 忙碌 BUSY | | 4 | 呼叫坐席中 SEAT_CALLING | | 5 | 坐席振铃中 SEAT_RINGING | | 6 | 呼叫客户中 CALLING_CUSTOMER | | 7 | 客户振铃中 CUSTOMER_RINGING | | 8 | 外呼通话中 OUT_CALLING | | 9 | 来电振铃中 IN_RINGING | | 10 | 来电通话中 IN_CALLING | | 11 | 后处理 AFTER_DEAL | | 12 | 呼出 OUT_CALLABLE | | 13 | 呼入 IN_CALLABLE |

getWebRTCSubject回调

软电话机sip消息推送回调。

| code | msg | | :---: | :-----------------------: | | 6001 | SIP注册成功! | | 6002 | SIP未注册! | | 6003 | SIP注册失败! | | 6004 | message | | 6005 | outOfDialogReferRequested | | 6006 | transportCreated | | 6007 | 您有新的来电! | | 6008 | 未检测到来电! | | 6009 | 未检测到音频设备! | | 60010 | 浏览器无法获取音频设备! |

getInterfaceSubject回调

软电话机接口消息推送回调。

| code | msg | | :---: | :----------------: | | 5001 | 签入失败! | | 5002 | 获取显号列表失败! | | 5003 | 坐席状态切换失败! | | 5004 | 外呼失败! | | 5005 | 结束通话失败! | | 5006 | 静音失败! | | 5007 | 保持失败! | | 5008 | 恢复失败! | | 5009 | 下发满意度失败! | | 50010 | 签出失败! | | 50011 | 获取sip失败! | | 2001 | 签入成功! | | 2002 | 获取显号列表成功! | | 2003 | 坐席状态切换成功! | | 2004 | 外呼成功! | | 2005 | 结束通话成功! | | 2006 | 静音成功! | | 2007 | 保持成功! | | 2008 | 恢复成功! | | 2009 | 下发满意度成功! | | 20010 | 签出成功! | | 20011 | 获取sip成功! |