build: server bundle with the منتزر SMS texts
Rebuilds apps/api/release from 4d635cb. The apps and the admin panel are unchanged.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -88490,7 +88490,7 @@ var require_customer_auth_service = __commonJS({
|
||||
*/
|
||||
async deliver(mobile, code) {
|
||||
const smsText = `<#> code is ${code}
|
||||
\u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u06CC\u06A9\u0628\u0627\u0631 \u0645\u0635\u0631\u0641 \u0634\u0645\u0627 \u062C\u0647\u062A \u0648\u0631\u0648\u062F \u0628\u0647 \u0627\u067E\u0644\u06CC\u06A9\u0634\u0646 \u0647\u0646\u0632\u0627 \u06AF\u0644\u062F ${code} \u0645\u06CC \u0628\u0627\u0634\u062F
|
||||
\u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u06CC\u06A9\u0628\u0627\u0631 \u0645\u0635\u0631\u0641 \u0634\u0645\u0627 \u062C\u0647\u062A \u0648\u0631\u0648\u062F \u0628\u0647 \u0627\u067E\u0644\u06CC\u06A9\u06CC\u0634\u0646 \u0645\u0646\u062A\u0632\u0631 ${code} \u0645\u06CC \u0628\u0627\u0634\u062F
|
||||
aMo6iFyUQaY`;
|
||||
await this.sms.send(mobile, smsText, { persist: false });
|
||||
if (process.env.NODE_ENV !== "production" && !(0, sms_service_12.smsConfigured)()) {
|
||||
@@ -89523,10 +89523,10 @@ var require_customer_profile_service = __commonJS({
|
||||
* reference likewise queued them (SendSmsAfterCreate::dispatch, :100).
|
||||
*/
|
||||
notify(mobile, firstName, lastName) {
|
||||
const message = `\u0647\u0646\u0632\u0627 \u06AF\u0644\u062F
|
||||
const message = `\u0645\u0646\u062A\u0632\u0631
|
||||
\u0647\u0645\u06A9\u0627\u0631 \u06AF\u0631\u0627\u0645\u06CC ${firstName} ${lastName}
|
||||
\u062A\u06A9\u0645\u06CC\u0644 \u067E\u0631\u0648\u0641\u0627\u06CC\u0644 \u0634\u0645\u0627 \u0628\u0627 \u0645\u0648\u0641\u0642\u06CC\u062A \u0627\u0646\u062C\u0627\u0645 \u0634\u062F.`;
|
||||
const adminMessage = `\u0647\u0646\u0632\u0627 \u06AF\u0644\u062F
|
||||
const adminMessage = `\u0645\u0646\u062A\u0632\u0631
|
||||
\u0645\u0634\u062A\u0631\u06CC \u0628\u0627 \u0646\u0627\u0645 ${firstName} ${lastName} \u0645\u062F\u0627\u0631\u06A9 \u062E\u0648\u062F \u0631\u0627 \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u06A9\u0631\u062F.`;
|
||||
const fire = (to, body) => {
|
||||
void this.sms.send(to, body).catch((e) => {
|
||||
@@ -95773,8 +95773,8 @@ var require_admin_customers_service = __commonJS({
|
||||
}
|
||||
/**
|
||||
* The welcome SMS the reference sends after every new customer is created
|
||||
* (AdminController.php:378-387). Byte-identical, including the line order and
|
||||
* the trailing PWA link; the commented-out Android/iOS lines are not sent
|
||||
* (AdminController.php:378-387), with the brand and the PWA link changed to
|
||||
* منتزر; same line order. The commented-out Android/iOS lines are not sent
|
||||
* there and are not sent here.
|
||||
*
|
||||
* D20 — awaiting it would let a slow or unconfigured gateway hold up the
|
||||
@@ -95784,11 +95784,11 @@ var require_admin_customers_service = __commonJS({
|
||||
* the creation.
|
||||
*/
|
||||
sendWelcomeSms(mobile, firstName, lastName) {
|
||||
const body = `\u0647\u0646\u0632\u0627 \u06AF\u0644\u062F
|
||||
const body = `\u0645\u0646\u062A\u0632\u0631
|
||||
\u0647\u0645\u06A9\u0627\u0631 \u06AF\u0631\u0627\u0645\u06CC ${firstName} ${lastName}
|
||||
\u0646\u0627\u0645 \u06A9\u0627\u0631\u0628\u0631\u06CC : ${mobile}
|
||||
\u0644\u06CC\u0646\u06A9 pwa
|
||||
https://app.henzagold.com`;
|
||||
https://bnk.montzar.ir`;
|
||||
void this.sms.send(mobile, body).catch((e) => {
|
||||
this.logger.error(`Welcome SMS to ${mobile} failed: ${String(e)}`);
|
||||
});
|
||||
@@ -98928,7 +98928,7 @@ var require_admin_documents_service = __commonJS({
|
||||
}
|
||||
// Legacy CashController::toggleConfiremCash sent an SMS on both outcomes.
|
||||
notifyDocumentConfirm(customerId, confirmed) {
|
||||
const text = confirmed ? "\u0647\u0646\u0632\u0627 \u06AF\u0644\u062F\n\u0633\u0646\u062F \u0645\u0627\u0644\u06CC \u0634\u0645\u0627 \u062A\u0648\u0633\u0637 \u0645\u062F\u06CC\u0631 \u0633\u06CC\u0633\u062A\u0645 \u062A\u0627\u06CC\u06CC\u062F \u0634\u062F." : "\u0647\u0646\u0632\u0627 \u06AF\u0644\u062F\n\u0633\u0646\u062F \u0645\u0627\u0644\u06CC \u0634\u0645\u0627 \u062A\u0648\u0633\u0637 \u0645\u062F\u06CC\u0631 \u0633\u06CC\u0633\u062A\u0645 \u0631\u062F \u0634\u062F.";
|
||||
const text = confirmed ? "\u0645\u0646\u062A\u0632\u0631\n\u0633\u0646\u062F \u0645\u0627\u0644\u06CC \u0634\u0645\u0627 \u062A\u0648\u0633\u0637 \u0645\u062F\u06CC\u0631 \u0633\u06CC\u0633\u062A\u0645 \u062A\u0627\u06CC\u06CC\u062F \u0634\u062F." : "\u0645\u0646\u062A\u0632\u0631\n\u0633\u0646\u062F \u0645\u0627\u0644\u06CC \u0634\u0645\u0627 \u062A\u0648\u0633\u0637 \u0645\u062F\u06CC\u0631 \u0633\u06CC\u0633\u062A\u0645 \u0631\u062F \u0634\u062F.";
|
||||
this.prisma.customer.findUnique({ where: { id: customerId }, select: { mobile: true } }).then((c) => {
|
||||
if (c)
|
||||
this.sms.send(c.mobile, text);
|
||||
|
||||
Reference in New Issue
Block a user