Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 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 | 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x | import { appInstall, DEFAULT_USER } from '@orchesty/nodejs-connectors/test/DataProvider';
import { cacheService, container, redis, sender } from '@orchesty/nodejs-connectors/test/TestAbstract';
import CoreFormsEnum from '@orchesty/nodejs-sdk/dist/lib/Application/Base/CoreFormsEnum';
import IceWarpListChannelsConnector from '../src/Connector/IceWarpListChannelsConnector';
import IceWarpPostChatMessageConnector from '../src/Connector/IceWarpPostChatMessageConnector';
import IceWarpApplication, { ICE_WARP_APPLICATION } from '../src/IceWarpApplication';
export function iceWarpAppInstall(): void {
appInstall(ICE_WARP_APPLICATION, DEFAULT_USER, {
[CoreFormsEnum.AUTHORIZATION_FORM]: {
accessToken: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJJY2VXYXJwX0xvZ2luIiwic3ViIjoiaGFuYWJvc29Aa3ViYS5vbmljZS5pbyIsImV4cCI6MTczMDc5NzAzNCwiaXdfYWRtaW5fdHlwZSI6MCwiaXdfaG9zdCI6Imt1YmEub25pY2UuaW8iLCJpd190eXBlIjoiYWNjZXNzIiwiaXdfaWQiOiI5MzU1OENEMkZFODgyMDQ0OTdDMDUzMTY3QzYxQzk1NyJ9.ljjEmzbnOjd86u0SXfiiP7HmhLYkG_SH5K4tpzrsIBM',
refreshToken: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJJY2VXYXJwX0xvZ2luIiwic3ViIjoiaGFuYWJvc29Aa3ViYS5vbmljZS5pbyIsImV4cCI6MTczOTM1MDYzNCwiaXdfYWRtaW5fdHlwZSI6MCwiaXdfaG9zdCI6Imt1YmEub25pY2UuaW8iLCJpd190eXBlIjoicmVmcmVzaCIsIml3X2lkIjoiOTM1NThDRDJGRTg4MjA0NDk3QzA1MzE2N0M2MUM5NTcifQ.Rud5qnbXLkICRDI1cynVMWvgPTeDlLw5r0RsVWKsBHA',
},
});
}
export default async function initIceWarp(): Promise<void> {
const app = container.setApplication(new IceWarpApplication(cacheService, redis, sender));
container.setNode(new IceWarpListChannelsConnector(), app);
container.setNode(new IceWarpPostChatMessageConnector(), app);
await redis.set('icewarp-xoxp-TestUser', 'xoxp', 300);
iceWarpAppInstall();
}
|