-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.js
More file actions
45 lines (42 loc) · 990 Bytes
/
index.js
File metadata and controls
45 lines (42 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { NativeModules } from "react-native";
const { ErxesSdk } = NativeModules;
export default class Erxes {
/**
* Initial opensource version.
* @param brandId The brandId.
* @param apiHost The url of api for opensource version.
* @param organizationName The organization name for saas version.
* @param email The customer email.
* @param phone The customer phone.
* @param companyData The company custom data.
* @param data The custom data.
* @param code The code.
*/
static init(
brandId,
apiHost,
organizationName,
email,
phone,
data,
companyData,
code
) {
ErxesSdk.init(
brandId,
apiHost,
organizationName,
email,
phone,
data,
companyData,
code
);
}
/**
* Start sdk.
*/
static start() {
ErxesSdk.start();
}
}