|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* This file is part of the mucts.com. |
|
4
|
|
|
* |
|
5
|
|
|
* This source file is subject to the MIT license that is bundled |
|
6
|
|
|
* with this source code in the file LICENSE. |
|
7
|
|
|
* |
|
8
|
|
|
* @version 1.0 |
|
9
|
|
|
* @author herry<[email protected]> |
|
10
|
|
|
* @copyright © 2020 MuCTS.com All Rights Reserved. |
|
11
|
|
|
*/ |
|
12
|
|
|
|
|
13
|
|
|
namespace MuCTS\Sobot\Agents; |
|
14
|
|
|
|
|
15
|
|
|
|
|
16
|
|
|
use MuCTS\Sobot\Contracts\Sobot; |
|
17
|
|
|
|
|
18
|
|
|
/** |
|
19
|
|
|
* Class SaveAgent |
|
20
|
|
|
* 新增坐席信息 |
|
21
|
|
|
* |
|
22
|
|
|
* 接口说明:新增坐席信息 |
|
23
|
|
|
* |
|
24
|
|
|
* @property-write string $agent_nick 坐席昵称 |
|
25
|
|
|
* @property-write string $agent_name 坐席真实名称 |
|
26
|
|
|
* @property-write string|null $phone_no 手机号码 |
|
27
|
|
|
* @property-write string|null $password 密码 |
|
28
|
|
|
* @property-write string $email 坐席邮箱 |
|
29
|
|
|
* @property-write int $agent_role_type 坐席角色,4444:全功能管理员;9999:呼叫管理员;8888:工单管理员;7777:全功能客服;6669:呼叫客服;1111:在线客服;2222:在线管理员;5555:工单客服 |
|
30
|
|
|
* @property-write string|null $departid 部门ID |
|
31
|
|
|
* @property-write string|null $group_ids 技能组ID,坐席所属多技能组,技能组ID之间以逗号分隔 |
|
32
|
|
|
* @property-write int $max_accept 最大接待上限,0-100的正整数 |
|
33
|
|
|
* |
|
34
|
|
|
* @method SaveAgent agentNick(string $value) 坐席昵称 |
|
35
|
|
|
* @method SaveAgent agentName(string $value) 坐席真实名称 |
|
36
|
|
|
* @method SaveAgent phoneNo(string $value) 手机号码 |
|
37
|
|
|
* @method SaveAgent password(string $value) 密码 |
|
38
|
|
|
* @method SaveAgent email(string $value) 坐席邮箱 |
|
39
|
|
|
* @method SaveAgent agentRoleType(int $value) 坐席角色,4444:全功能管理员;9999:呼叫管理员;8888:工单管理员;7777:全功能客服;6669:呼叫客服;1111:在线客服;2222:在线管理员;5555:工单客服 |
|
40
|
|
|
* @method SaveAgent departid(string $value) 部门ID |
|
41
|
|
|
* @method SaveAgent groupIds($value) 技能组ID,坐席所属多技能组,技能组ID之间以逗号分隔 |
|
42
|
|
|
* @method SaveAgent maxAccept(string $value) 最大接待上限,0-100的正整数 |
|
43
|
|
|
* |
|
44
|
|
|
* @package MuCTS\Sobot\Agents |
|
45
|
|
|
*/ |
|
46
|
|
|
class SaveAgent extends Sobot |
|
47
|
|
|
{ |
|
48
|
|
|
|
|
49
|
|
|
public function getRequestMethod(): string |
|
50
|
|
|
{ |
|
51
|
|
|
return self::METHOD_POST; |
|
52
|
|
|
} |
|
53
|
|
|
|
|
54
|
|
|
public function getRequestPath(): string |
|
55
|
|
|
{ |
|
56
|
|
|
return '/api/basic/5/agent/save_agent'; |
|
57
|
|
|
} |
|
58
|
|
|
} |