@sipgate/integration-bridge 0.14.18 → 0.14.19
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CallDirection, CallState } from "../models";
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function getCommentSubject(state: CallState, direction: CallDirection, locale: string, htmlOpen?: string, htmlClose?: string): string;
|
|
3
|
+
export declare function getCommentHeader(locale: string): string;
|
|
3
4
|
export declare function getCommentContent(note: string, locale: string): string;
|
|
4
5
|
export declare function getCallDuration(startTime: number, endTime: number, locale: string): string;
|
|
@@ -3,10 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getCallDuration = exports.getCommentContent = exports.
|
|
6
|
+
exports.getCallDuration = exports.getCommentContent = exports.getCommentHeader = exports.getCommentSubject = void 0;
|
|
7
7
|
const models_1 = require("../models");
|
|
8
8
|
const moment_1 = __importDefault(require("moment"));
|
|
9
|
-
function
|
|
9
|
+
function getCommentSubject(state, direction, locale, htmlOpen = "", htmlClose = "") {
|
|
10
10
|
const isGerman = locale.startsWith("de");
|
|
11
11
|
const isIncoming = direction == models_1.CallDirection.IN;
|
|
12
12
|
const directionString = isGerman
|
|
@@ -37,13 +37,14 @@ function getCommentTitle(state, direction, locale, htmlOpen = "", htmlClose = ""
|
|
|
37
37
|
: `${htmlOpen}Connected ${titleEndEnglish}${htmlClose}`;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
exports.
|
|
41
|
-
function
|
|
40
|
+
exports.getCommentSubject = getCommentSubject;
|
|
41
|
+
function getCommentHeader(locale) {
|
|
42
42
|
const isGerman = locale.startsWith("de");
|
|
43
43
|
return `<h1>${isGerman ? "Notizen" : "Note"} (CLINQ):</h1>`;
|
|
44
44
|
}
|
|
45
|
+
exports.getCommentHeader = getCommentHeader;
|
|
45
46
|
function getCommentContent(note, locale) {
|
|
46
|
-
return `${
|
|
47
|
+
return `${getCommentHeader(locale)}${note}`;
|
|
47
48
|
}
|
|
48
49
|
exports.getCommentContent = getCommentContent;
|
|
49
50
|
function getCallDuration(startTime, endTime, locale) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-comment.js","sourceRoot":"","sources":["../../src/util/call-comment.ts"],"names":[],"mappings":";;;;;;AAAA,sCAAqD;AACrD,oDAA4B;AAE5B,SAAgB,
|
|
1
|
+
{"version":3,"file":"call-comment.js","sourceRoot":"","sources":["../../src/util/call-comment.ts"],"names":[],"mappings":";;;;;;AAAA,sCAAqD;AACrD,oDAA4B;AAE5B,SAAgB,iBAAiB,CAC/B,KAAgB,EAChB,SAAwB,EACxB,MAAc,EACd,QAAQ,GAAG,EAAE,EACb,SAAS,GAAG,EAAE;IAEd,MAAM,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACzC,MAAM,UAAU,GAAG,SAAS,IAAI,sBAAa,CAAC,EAAE,CAAC;IACjD,MAAM,eAAe,GAAG,QAAQ;QAC9B,CAAC,CAAC,UAAU;YACV,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,aAAa;QACjB,CAAC,CAAC,UAAU;YACZ,CAAC,CAAC,UAAU;YACZ,CAAC,CAAC,UAAU,CAAC;IAEf,MAAM,cAAc,GAAG,GAAG,eAAe,gBAAgB,CAAC;IAC1D,MAAM,eAAe,GAAG,GAAG,eAAe,eAAe,CAAC;IAE1D,QAAQ,KAAK,EAAE;QACb,KAAK,kBAAS,CAAC,SAAS;YACtB,OAAO,QAAQ;gBACb,CAAC,CAAC,GAAG,QAAQ,cAAc,cAAc,GAAG,SAAS,EAAE;gBACvD,CAAC,CAAC,GAAG,QAAQ,aAAa,eAAe,GAAG,SAAS,EAAE,CAAC;QAC5D,KAAK,kBAAS,CAAC,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