Files
Answer_Templates/src/popup.js
Dmitriy Gorshenin 9c28cd66e3 Initial import
2025-11-11 13:25:19 +03:00

297 lines
64 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

document.addEventListener("DOMContentLoaded", function () {
// Объект с текстами для каждого элемента
const clipboardTexts = {
"inWorkRu": "Коллеги, здравствуйте.\n\nПриняли Ваш запрос в работу. Сообщим по мере поступления информации.",
"inWorkEn": "Dear customer,\n\nWe are working on your request.",
"dialogueRu": "Коллеги, здравствуйте.\n\nУведомляем вас о том, что мы начали диалог с оператором по данному запросу. Мы ожидаем ответа и будем держать вас в курсе любых изменений.",
"dialogueEn": "Dear colleagues.\n\nWe would like to inform you that we have started a dialogue with the operator on this request. We are awaiting a response and will keep you informed of any changes.",
"nonDelRu": "Коллеги, здравствуйте.\n\nПросьба уточнить причину недоставки следующих сообщений клиенту:",
"nonDelEn": "Dear colleagues,\n\nPlease check why the following messages were not delivered:",
"fixItRu": "Коллеги,\n\nМы не фиксируем на нашей платформе ваших СМС-сообщений, просьба предоставить ответ от нашей платформы на ваш запрос отправки. Так же просьба предоставить логи, подтверждающие отправку на нашу платформу, данная информация необходима для дальнейшего анализа вашего запроса.",
"fixItEn": "Dear colleagues,\n\nWe do not record your SMS messages on our platform, please provide a response from our platform to your request to send. Please also provide logs confirming sending to our platform, this information is necessary for further analysis of your request.",
"fakeRu": "Коллеги, здравствуйте.\n\nПросьба уточнить корректность статусов доставки следующих сообщений клиенту. Абонент не получал СМС.",
"fakeEn": "Dear colleagues,\n\nPlease clarify the correctness of the delivery statuses of the following messages to the client. The subscriber did not receive an SMS.",
"weworkRu": "Коллеги, здравствуйте.\n\nУведомляем вас о том, что работы по вашему запросу продолжаются. Как только появится информация, мы вам сообщим.\n\nБлагодарим за понимание и приносим извинения за доставленные неудобства.",
"weworkEn": "Dear Colleagues.\n\nWe notify you that work on your request is ongoing. As soon as information becomes available, we will inform you.\n\nThank you for your understanding and we apologize for the inconvenience caused.",
"wework2Ru": "Коллеги, здравствуйте.\n\nЖдем ответа от оператора. Сообщим, как только появится соответствующая информация. Спасибо!",
"wework2En": "Dear Colleagues.\n\nWe are waiting for a response from the operator. We will inform you as soon as we have an update. Thank you!",
"wework3Ru": "Здравствуйте!\n\nОтправили повторный запрос оператору по данному поводу.\n\nСпасибо!",
"wework3En": "Hello!\n\nWe have sent an additional request to the operator.\n\nThank you!",
"theyworkRu": "Здравствуйте, коллеги.\n\nПоявилась ли информация по данному вопросу?\n\nСпасибо.",
"theyworkEn": "Dear colleagues,\n\nIs there any information on this request?\n\nThank you.",
"theywork2Ru": "Добрый день!\n\nПросим вернуться с ответом.\n\nБольшое спасибо!",
"theywork2En": "Hello Team!\n\nPlease let us know if there are any updates.\n\nThank you!",
"theywork3Ru": "Здравствуйте!\n\nПодскажите, пожалуйста, появились ли новости.\n\nСпасибо!",
"theywork3En": "Hello!\n\nPlease kindly advise on issue status.\n\nThank you.",
"delivedRu": "Коллеги,\n\nСообщения успешно прошли через платформу и были отправлены оператору. По информации от оператора, сообщения были своевременно доставлены. В случае, если абонент утверждает, что сообщения не были получены, просьба проверить исправность работы ТА. Возможные рекомендации: перезагрузка телефона, очистка памяти от устаревших сообщений, проверка спам-фильтров и черных списков, обновление ПО.\n\nПри сохранении проблемы, просьба запросить у абонента детализацию. Данная информация потребуется для дальнейшего взаимодействия с оператором.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"delivedEn": "Colleagues, according to the information from the operator, messages were delivered in a timely manner. If the subscriber claims that the messages have not been received, please check that device is working correctly. Possible recommendations: reboot the phone, clear message memory, check spam filters and blacklists, update the software.\n\nIf the problem still persists, please ask the subscriber for details. This information is necessary to continue interaction with the operator.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"problphRu": "Коллеги,\n\nСообщения успешно прошли через платформу и были отправлены оператору. По информации от оператора, сообщения не были доставлены абоненту по причине сбоя ТА. Возможные рекомендации для абонента: перезагрузка телефона, очистка памяти от устаревших сообщений, проверка спам-фильтров и черных списков, обновление ПО.\n\nПросьба уведомить нас в случае, если ситуация повторится.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"problphEn": "Colleagues, according to the information from the operator, messages were not delivered due to subscribers device failure. Possible recommendations: reboot the phone, clear message memory, check spam filters and blacklists, update the software.\n\nPlease let us know if the problem persist.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"notservRu": "Здравствуйте, коллеги.\n\nСообщения успешно прошли через платформу и были отправлены оператору. По информации от оператора, сообщения абоненту не были доставлены, т.к. номер телефона не существует или не обслуживается.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"notservEn": "Colleagues\n\nThe message successfully passed through the platform and was sent to the operator. According to the information from the operator, the messages were not delivered to the subscriber because the phone number does not exist or is not serviced.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"insentRu": "Коллеги,\n\nСообщения успешно прошли через платформу и были отправлены оператору. Сообщения находятся в статусе Отправлено, SMS-центр оператора продолжает осуществлять попытки их доставки.\n\nНаиболее вероятной причиной задержки в доставке может являться нахождение абонента в зоне неуверенного приема сети, также возможен технический сбой в работе телефона абонента.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"insentEn": "Colleagues,\n\nThe messages are in Sent status, operator's SMS center is continuing delivery attempts. Most likely, delivery delays are caused by subscriber being in the area of uncertain network reception, or a technical failure in the operation of the subscriber's phone is also possible.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"dubleRu": "Коллеги,\n\nМониторингом были зафиксированы дубликаты сообщений, в связи с чем сработала блокировка. Если в короткий промежуток времени на площадку поступает два одинаковых сообщения, повторное блокируется как дубликат.\n\nЕсли отправка дубликатов была запланирована, либо номер абонента используется для тестирования подключения, просьба сообщить, мы добавим абонента в белый список.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"dubleEn": "Colleagues, duplicates were blocked by our monitoring system. If two identical messages are received within a short period of time, the second one is blocked as a duplicate.\n\nIf sending duplicates was planned, or the subscriber's number is used for testing, please let us know and we will whitelist the subscriber.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"unvelbRu": "Коллеги,\n\nСообщения успешно прошли через платформу и были отправлены оператору. Сообщения абоненту не были доставлены т.к. ТА абонента был недоступен - выключен или находился в зоне неуверенного приема сигнала.\n\nРекомендуем абоненту перезагрузить телефон, проверить доступность сети оператора, очистить память телефона от устаревших сообщений.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"unvelbEn": "Colleagues,\n\nThe messages were not delivered to the subscriber because the subscriber's phone was unavailable - turned off or was in the zone of uncertain signal reception.\n\nWe recommend that the subscriber restart the phone, check the availability of the operator's network, and clear the phone's memory of outdated messages.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"delayRu": "Коллеги, здравствуйте.\n\nПросьба уточнить текущий статус сообщений и причины задержек:",
"delayEn": "Dear Colleagues.\n\nPlease clarify current messages status and the reasons for the delays:",
"conbreRu": "Коллеги, здравствуйте.\n\nНаблюдаем разрыв соединения. Просьба уточнить, ситуация штатная?",
"conbreEn": "Dear colleagues.\n\nWe observe a connection break. Please clarify whether its a standard situation.",
"corroutRu": "Коллеги,\n\nПо информации от оператора, для абонента были внесены корректировки в таблицы маршрутизации.\n\nПросьба проверить и сообщить в случае повторения ситуации.",
"corroutEn": "Dear colleagues,\n\nThe adjustments have been made in routing settings.\nAs our logs are now showing positive delivery results, we would like to ask you to perform a fresh check on your side and share the results in case if further assistance is required.",
"tehtroubRu": "Коллеги,\n\nПо информации от оператора, сообщения не были доставлены абоненту из-за временных технических неполадок на стороне оператора. На текущий момент доставка сообщений осуществляется в штатном режиме.\n\nПросьба проверить и сообщить в случае повторения ситуации.",
"tehtroubEn": "Dear colleagues,\n\nAccording to information we got from the operator, the messages were not delivered to the subscriber due to temporary technical issues on the operator's side. At the moment, messages are being delivered in the regular mode.",
"senderRu": "Коллеги,\n\nСообщения не были доставлены, так как для имени отправителя ######## требуется регистрация на оператора ###Имя бренда###.\n\nПросьба подать имя на регистрацию в ЛК или обратиться по данному вопросу к Вашему менеджеру.",
"senderEn": "Colleagues, the below reported traffic failed to be delivered due to an unregistered Sender ID ########. Alphanumeric registration is required towards ###COUNRTY OPERATOR (MCCMNC)###, and delivery of messages with unregistered Sender IDs is on the best effort basis. To register, please contact your Account Manager.",
"notResponseRU": "Здравствуйте!\n\nК сожалению, мы не получили от Вас ответа в течение 20 дней, поэтому запрос будет автоматически закрыт. Вы можете ответить на это письмо, если проблема не решена и требуется поддержка.",
"notResponseEn": "Hello!\n\nUnfortunately, we have not received a response from you within 20 days, so the request will be automatically closed. You can reply to this email if the problem has not been resolved and support is required.",
"fwd2treadRU": "Коллеги, здравствуйте.\n\nПередали вопрос ответственной команде. Сообщим по мере поступления информации.",
"fwd2treadEn": "Dear colleagues,\n\nWe have escalated the issue to the responsible team.\nWe will keep you informed as we receive any updates.",
"daoffice1RU": "Добрый день!\n\nДля регистрации в приложении \"КингДом\" необходимо внести Ваш номер телефона в Axapta.\n\nПо данному вопросу, пожалуйста, обратитесь к директору своего ресторана или на электронную почту: kingdom@burgerking.ru\n\nЧерез три часа после внесения номера, Вы сможете войти в сеть по номеру телефона, используя приложение \"КингДом\".",
"officeRU": "Добрый день!\n\nМы проверили Вашу учетную запись - все данные корректны.\nПроверочный СМС-код успешно отправлен на Ваш мобильный телефон.\n\nЕсли у Вас устройство на базе Android, то пожалуйста, переустановите приложение \"КингДом\" (удалить\\скачать заново) по следующей ссылке ниже, чтобы исключить отсутствие свежих обновлений: https://play.google.com/store/apps/details?id=ru.kingdom\n\nЕсли у Вас устройство на базе IOS, то пожалуйста, не удаляйте приложение \"КингДом\", так как оно было удалено из магазина приложений AppStore в связи с изменениями политики Apple Inc.\nВ настоящий момент, Вы можете пользоваться веб-версией приложения \"КингДом\" через браузер или уже установленной версий приложения.\nКоманда разработчика уже ведёт работу по восстановлению приложения.\nМы сообщим как только приложение будет доступно для скачивания в AppStore.\n\nПриложения для смартфонов на базе Android доступно для скачивания без изменений.\n\nЕсли данные действия не помогут, то, пожалуйста, опишите подробнее, на каком моменте у Вас не получается зайти в систему (при наличии ошибки приложите скриншот).",
"blockMsisdnRu": "Коллеги,\n\nДанный номер находится в глобальном ЧС.\n\nЭто означает, что клиент жаловался на получение СМС и отказался от получения всех СМС, либо были жалобы от данного абонента в УФАС.\n\nИз глобального ЧС, к сожалению, мы не можем разблокировать по Вашей просьбе, только в случае, если абонент напишет сам о просьбе разблокировать, с пометкой о согласии получения всех сообщений от оператора.\n\nЗаявление пишется в свободной форме, скан необходимо прислать на почту вашему менеджеру. Пример:\n\nКому: ООО «АйДиджитал»\nГенеральному директору: Баранову А.В.\nПрошу убрать мой номер ____________ из черного списка. Понимаю и соглашаюсь на возможное получение рассылок от других компаний, которые осуществляют рассылки через платформу АйДиджитал.\n\nПодпись и дата.",
"commonSenderRu": "Коллеги, сообщения были заблокированы согласно правилам отправки для каналов с Общим именем. А именно -\n----------------------------\n в тексте сообщения содержится упоминания международного бренда (рассылки в интересах международных брендов).\n на канале запрещена отправка сообщений, если в качестве сендера используется международный сендер\n на канале запрещена отправка сообщений на латинице\n на канале запрещена отправка сообщений с кодами в тексте которых нет упоминания сервиса от которого идет отправка\n на канале запрещена отправка сообщений в тексте которых содержится ссылка (ссылкой считается - наличие http в URL)\n на канале запрещена отправка сообщений в тексте сообщений которых указаны только цифры\n на канале запрещена отправка сообщений с менее 13 символов в тексте",
"noResponse": "Здравствуйте!\n\nК сожалению, мы не получили от Вас ответа в течение 5 рабочих дней, поэтому запрос будет автоматически закрыт.\n\nВы можете ответить на это письмо, если проблема не решена и требуется дополнительная помощь.",
"conductedTesting": "Коллеги,\n\nМы провели тестирование данного направления, используя живые номера. Все сообщения были доставлены на устройства правильно и без задержек.\n\nПросьба провести повторное тестирование со своей стороны и сообщить в случае повторения ситуации.",
"HLRRu": "Коллеги, здравствуйте.\\nПросьба уточнить причину возврата некорректных HLR статусов на указанные номера:",
"HLREn": "Dear colleagues,\n\nPlease clarify the correctness of HLR statuses for the following subscriber numbers:",
"managerTemplate": "Страна: \nОператор: \nmccMnc: \nСендер: \nКлиент: \nSource node: \nDestination node: ",
"suspiciousActivity": "Здравствуйте, коллеги!\n\nНашей системой обнаружена аномальная активность по направлению \"\".\n\nПросим, пожалуйста, проверить и сообщить является ли данная ситуация штатной.\n\nГрафик с общим количеством трафика по направлению:\n\n\nКоличество трафика по часам:\n\n\nКоличество сообщений по номерам:\n\n\nПеребор по номерам:\n\n\nПожалуйста, дайте нам знать, если у вас возникли вопросы или требуется дополнительная информация.",
"trafficBlocking": "Здравствуйте, коллеги!\n\nНашей системой обнаружена аномальная активность по направлению \"\".\n\nУведомляем вас о том, что трафик по данному направлению был ЗАБЛОКИРОВАН. Просим, пожалуйста, проверить и сообщить является ли данная ситуация штатной.\n\nГрафик с общим количеством трафика по направлению:\n\n\nКоличество трафика по часам:\n\n\nКоличество сообщений по номерам:\n\n\nПеребор по номерам:\n\n\nПожалуйста, дайте нам знать, если у вас возникли вопросы или требуется дополнительная информация.",
"nonDelPushRu": "Коллеги,\n\nПуш-сообщения не были доставлены по причине истечения TTL. ТА абонента не вернул статус получения пуш-сообщения в установленное время, поэтому сообщению присвоен статус UNDELIVERED. \n\nВозможными причинами недоставки могут быть: отсутствие подключения к интернету, режим энергосбережения или \"тихий\" режим, на устройстве включен \"Режим полета\", отсутствие прав у приложения на отправку уведомлений.",
"nonDelPushEng": "Colleagues,\n\nPush messages were not delivered due to TTL expiration. The subscriber's device did not return the status of receiving the push message at the set time, so the message was assigned the status UNDELIVERED. \n\nPossible reasons for non-delivery may be: lack of Internet connection, power saving mode or \"silent\" mode, Airplane Mode is enabled on the device, and the app does not have rights to send notifications.",
"riveGaucheStaff":"Здравствуйте, коллеги!\n\nНашей системой обнаружена аномальная активность по направлению \"УКАЗАТЬ БРЕНД И СТРАНУ\".\n\nПросим, пожалуйста, проверить и сообщить является ли данная ситуация штатной.\n\nЦРТ -\n\nГрафик с общим количеством трафика по направлению:\n\n\nКоличество трафика по часам:\n\nКоличество сообщений по номерам:\n\nПеребор по номерам:\n\nПожалуйста, дайте нам знать, если у вас возникли вопросы или требуется дополнительная информация.",
"riveGaucheBlock":"Здравствуйте, коллеги!\n\nНашей системой обнаружена аномальная активность по направлению \"УКАЗАТЬ БРЕНД И СТРАНУ\".\n\nУведомляем вас о том, что трафик по данному направлению был ЗАБЛОКИРОВАН. Просим, пожалуйста, проверить и сообщить является ли данная ситуация штатной.\n\nЦРТ - \n\nГрафик с общим количеством трафика по направлению:\n\n\nКоличество трафика по часам:\n\n\nКоличество сообщений по номерам:\n\n\nПеребор по номерам:\n\nПожалуйста, дайте нам знать, если у вас возникли вопросы или требуется дополнительная информация.",
"ahtungDefault":"Направление: \nПроблема: 100% недоставка | задержки\nЗапрос оператору: \nКого затронуло: \n\nАхтунг: направили\nВремя начала: \nОтветственный за решение инцидента: ",
"504Ru": "Здравствуйте, коллеги!\n\nСообщение успешно прошло через платформу и было отправлено оператору. По информации от оператора, сообщения не были доставлены, т.к. сервис коротких сообщений не предоставляется абоненту.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"504En": "Dear partner,\n\nWe confirm that the message was successfully handed off from our platform to the operator. According to the final delivery report from the operator, the message could not be delivered.\n\nThe reported cause was: the short message service is not provided to the subscriber.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"505Ru": "Здравствуйте, коллеги!\n\nСообщение успешно прошло через платформу и было отправлено оператору. По информации от оператора, сообщения абоненту не были доставлены, т.к. у абонента включен запрет на прием смс сообщений или абонент заблокирован оператором (возможно, в связи с отрицательным балансом).\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"505En": "Dear partner,\n\nWe confirm that the message was successfully handed off from our platform to the operator. According to the final delivery report from the operator, the message could not be delivered.\n\nThe reported cause was: the subscriber has a ban on receiving messages or the subscriber was blocked by the operator (possibly due to a negative balance).\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"506Ru": "Здравствуйте, коллеги!\n\nСообщение успешно прошло через платформу и было отправлено оператору. По информации от оператора, сообщения не были доставлены, т.к. отправка смс сообщений на указанный номер недоступна. Причиной ограничения может быть блокировка входящих смс сообщений на телефоне, либо полное отключение услуги.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"506En": "Dear partner,\n\nWe confirm that the message was successfully handed off from our platform to the operator. According to the final delivery report from the operator, the message could not be delivered.\n\nThe reported cause was: sending SMS messages to the specified number is unacceptable. The reasons for the restriction may be blocking incoming SMS messages on the phone, or completely disabling the service.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"508Ru": "Здравствуйте, коллеги!\n\nСообщение успешно прошло через платформу и было отправлено оператору. По информации от оператора, сообщения абоненту не были доставлены т.к. ТА абонента был недоступен - выключен или находился в зоне неуверенного приема сигнала.\nРекомендуем абоненту перезагрузить телефон, проверить доступность сети оператора, очистить память телефона от устаревших сообщений.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"508En": "Dear partner,\n\nWe confirm that the message was successfully handed off from our platform to the operator. According to the final delivery report from the operator, the message could not be delivered.\n\nThe reported cause was: the subscriber's phone was unavailable - turned off or was in the zone of uncertain signal reception.\nWe recommend that the subscriber restart the phone, check the availability of the operator's network, and clear the phone's memory of outdated messages.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"509Ru": "Здравствуйте, коллеги!\n\nСообщение успешно прошло через платформу и было отправлено оператору. По информации от оператора, сообщения не были доставлены, т.к. абонент находится в роуминге. У оператора, который доставляет сообщение, нет соглашения на роуминг с роуминг-оператором.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"509En": "Dear partner,\n\nWe confirm that the message was successfully handed off from our platform to the operator. According to the final delivery report from the operator, the message could not be delivered.\n\nThe reported cause was: the subscriber is roaming, but the operator delivering the message does not have a roaming agreement with the roaming operator.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"510Ru": "Здравствуйте, коллеги!\n\nСообщение успешно прошло через платформу и было отправлено оператору. По информации от оператора, сообщения не были доставлены, т.к. на момент отправки сообщений абонентом была произведена замена SIM-карты. В течение 24-х часов с момента замены SIM-карты могут наблюдаться трудности в доставке смс сообщений.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"510En": "Dear partner,\n\nWe confirm that the message was successfully handed off from our platform to the operator. According to the final delivery report from the operator, the message could not be delivered.\n\nThe reported cause was: at the time of sending the messages, the subscriber had replaced the SIM card. The operator rejects SMS messages within 24 hours from the moment the SIM card is replaced.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"511Ru": "Здравствуйте, коллеги!\n\nСообщение успешно прошло через платформу и было отправлено оператору. По информации от оператора, сообщения не были доставлены, т.к. очередь сообщений для абонента со стороны оператора переполнена, в связи с чем оператор отклонил сообщение.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"511En": "Dear partner,\n\nWe confirm that the message was successfully handed off from our platform to the operator. According to the final delivery report from the operator, the message could not be delivered.\n\nThe reported cause was: the message was rejected by the operator due to a full message queue on the recipient's side.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"515Ru": "Здравствуйте, коллеги!\n\nСообщение успешно прошло через платформу и было отправлено оператору. По информации от оператора, сообщения не были доставлены, т.к. на попытки доставки сообщений до ТА абонента возвращается ошибка, которая свидетельствует о некорректной работе ТА в сети или нехватке памяти на ТА абонента.\n\nАбоненту рекомендуется:\n1. Очистить память аппарата от устаревших сообщений\n2. Проверить свой аппарат на наличие сбоев, перезагрузить аппарат, проверить черные списки и спам-фильтры аппарата\n3. Удалить стороннее ПО для работы с sms, установленное на аппарате\n4. При необходимости провести обновление системного ПО, или сброс настроек аппарата к заводским.\n5. Также абоненту рекомендуется протестировать прием данных сообщений, переставив sim-карту в другой, заведомо исправный аппарат.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"515En": "Dear partner,\n\nWe confirm that the message was successfully handed off from our platform to the operator. According to the final delivery report from the operator, the message could not be delivered.\n\nThe reported cause was: when attempts are made to deliver messages to the subscriber, an error is returned, which indicates that subscriber's phone is not working correctly on the network or that there is a lack of memory on the subscriber.\n\nWe recommend the subscriber to:\n1. Clear the handset memory of out-of-date messages;\n2. Check the handset for failures, reboot the device, check blacklists and spam filters\n3. Remove third-party software for working with sms installed on the device;\n4. If necessary, update the system software, or reset the device to original settings;\n5. Test the reception by moving the SIM card to another device known to be working.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"517Ru": "Здравствуйте, коллеги!\n\nСообщение успешно прошло через платформу и было отправлено оператору. По информации от оператора, сообщения не были доставлены, т.к. на попытки доставки сообщений до ТА абонента возвращается ошибка, которая свидетельствует о некорректной работе ТА в сети или нехватке памяти на ТА абонента.\n\nАбоненту рекомендуется:\n1. Очистить память аппарата от устаревших сообщений\n2. Проверить свой аппарат на наличие сбоев, перезагрузить аппарат, проверить черные списки и спам-фильтры аппарата\n3. Удалить стороннее ПО для работы с sms, установленное на аппарате\n4. При необходимости провести обновление системного ПО, или сброс настроек аппарата к заводским.\n5. Также абоненту рекомендуется протестировать прием данных сообщений, переставив sim-карту в другой, заведомо исправный аппарат.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"517En": "Dear partner,\n\nWe confirm that the message was successfully handed off from our platform to the operator. According to the final delivery report from the operator, the message could not be delivered.\n\nThe reported cause was: when attempts are made to deliver messages to the subscriber, an error is returned, which indicates that subscriber's phone is not working correctly on the network or that there is a lack of memory on the subscriber.\n\nWe recommend the subscriber to:\n1. Clear the handset memory of out-of-date messages;\n2. Check the handset for failures, reboot the device, check blacklists and spam filters\n3. Remove third-party software for working with sms installed on the device;\n4. If necessary, update the system software, or reset the device to original settings;\n5. Test the reception by moving the SIM card to another device known to be working.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"523Ru": "Здравствуйте, коллеги!\n\nСообщение успешно прошло через платформу и было отправлено оператору. По информации от оператора, сообщения не были доставлены, т.к. ТА абонента занят операцией, препятствующей получению короткого сообщения.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"523En": "Dear partner,\n\nWe confirm that the message was successfully handed off from our platform to the operator. According to the final delivery report from the operator, the message could not be delivered.\n\nThe reported cause was: the subscriber's phone is busy with an operation that prevents the receipt of a short message.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"526Ru": "Здравствуйте, коллеги!\n\nСообщение успешно прошло через платформу и было отправлено оператору. По информации от оператора, сообщения не были доставлены, т.к. ТА абонента (IMEI) не определен или не разрешен для использования в сети оператора.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"526En": "Dear partner,\n\nWe confirm that the message was successfully handed off from our platform to the operator. According to the final delivery report from the operator, the message could not be delivered.\n\nThe reported cause was: the subscriber's device (IMEI) is not recognized or is not authorized for use on the operator's network.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"527Ru": "Здравствуйте, коллеги!\n\nСообщение успешно прошло через платформу и было отправлено оператору. По информации от оператора, сообщения не были доставлены, т.к. ТА абонента был недоступен - выключен или находился в зоне неуверенного приема сигнала.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"527En": "Dear partner,\n\nWe confirm that the message was successfully handed off from our platform to the operator. According to the final delivery report from the operator, the message could not be delivered.\n\nThe reported cause was: the subscriber's phone was unavailable - turned off or was in an area of uncertain signal reception.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"529MTSRu": "Здравствуйте, коллеги!\n\nСообщение успешно прошло через платформу и было отправлено оператору. По информации от оператора, сообщения не были доставлены, т.к. у получателя активирована услуга «Запрет на SMS информирование».\n\nДанная опция блокирует массовые рассылки - зачастую это рекламные рассылки, опросы или уведомления от магазинов. Однако в зону блокировки могут попасть и уведомления от банков, сервисов авторизации или бронирования. Чтобы начать вновь получать сообщения, получателю необходимо обратиться к своему оператору связи и отключить услугу «Запрет на SMS информирование». После этого доставка SMS будет восстановлена.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"529MTSEn": "Dear partner,\n\nWe confirm that the message was successfully handed off from our platform to the operator. According to the final delivery report from the operator, the message could not be delivered.\n\nThe reported cause was: the recipient has activated the \"Ban on SMS notification\" service.\n\nThis option blocks mass mailings, which are often promotional mailings, surveys, or notifications from stores. However, notifications from banks, authorization services, or booking services may also be blocked. To start receiving messages again, the recipient needs to contact their telecom operator and disable the \"Ban on SMS notification\" service. After that, SMS delivery will be restored.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"529MegaRu": "Здравствуйте, коллеги!\n\nСообщение успешно прошло через платформу и было отправлено оператору. По информации от оператора, сообщения не были доставлены, т.к. был указан некорректный номер абонента, либо нет правил маршрутизации для данного абонента или ошибка при отправке на блокированные номера (по закону Кудрявцева).\n\nУточняем что с 1 июня вступили в силу поправки в Федеральный закон \"О связи\", касающиеся в основном регистрации корпоративных SIM-карт и противодействия незаконной реализации SIM-карт.\nТеперь юридические лица и индивидуальные предприниматели обязаны предоставлять операторам связи и на \"Госуслугах\" данные о сотрудниках, использующих корпоративные SIM-карты, а также о номерах в устройствах M2M/IoT. Возможные рекомендации: проверка своих паспортных данных на госуслугах, привязка номера телефона к действующему аккаунту на госуслугах.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"529MegaEn": "Dear partner,\n\nWe confirm that the message was successfully handed off from our platform to the operator. According to the final delivery report from the operator, the message could not be delivered.\n\nThe reported cause was: an incorrect subscriber number was specified, or there are no routing rules for this subscriber, or an error was made when sending to blocked numbers (according to Kudryavtsev's law).\n\nWe would like to clarify that on June 1, amendments to the Federal Law \"On Communications\" came into force, mainly concerning the registration of corporate SIM cards and countering the illegal sale of SIM cards.\nNow, legal entities and individual entrepreneurs are required to provide telecom operators and Public Services with information about employees using corporate SIM cards, as well as numbers in M2M/IoT devices. Possible recommendations: checking your passport data on public services, linking your phone number to your current account on public services.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"532Ru": "Здравствуйте, коллеги!\n\nСообщение успешно прошло через платформу и было отправлено оператору. По информации от оператора, сообщения не были доставлены, т.к. были зафиксированы дубликаты сообщений, в связи с чем сработала блокировка.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"532En": "Dear partner,\n\nWe confirm that the message was successfully handed off from our platform to the operator. According to the final delivery report from the operator, the message could not be delivered.\n\nThe reported cause was: duplicate messages were recorded, and therefore the lock was triggered.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"561Ru": "Здравствуйте, коллеги!\n\nСообщение успешно прошло через платформу и было отправлено оператору. По информации от оператора, сообщения не были доставлены, т.к. номер абонента некорректен или принадлежит стационарному телефону.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"561En": "Dear partner,\n\nWe confirm that the message was successfully handed off from our platform to the operator. According to the final delivery report from the operator, the message could not be delivered.\n\nThe reported cause was: the subscriber's number is incorrect.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes",
"575Ru": "Здравствуйте, коллеги!\n\nСообщение успешно прошло через платформу и было отправлено оператору. По информации от оператора, сообщения не были доставлены, т.к. в целях защиты абонента от мошеннических и противоправных действий на номере на текущий момент установлены ограничения на приём входящих смс. Доставка смс будет возобновлена после снятия ограничений.\n\nБолее подробную информацию о кодах ошибок и статусах доставки вы можете найти в нашей документации: https://api.docs.direct.i-dgtl.ru/extra/references/error-codes",
"575En": "Dear partner,\n\nWe confirm that the message was successfully handed off from our platform to the operator. According to the final delivery report from the operator, the message could not be delivered.\n\nThe reported cause was: In order to protect the subscriber from fraudulent and illegal actions, the number currently has restrictions on receiving incoming SMS messages. SMS delivery will be resumed after the restrictions are lifted.\n\nYou can find more detailed information regarding error codes and delivery statuses in our documentation: https://smsc.revicom.ltd/how-to-work-with-smsc/reserved-error-codes"
};
// Функция для обработки кликов
function handleClipboardClick(buttonId) {
if (clipboardTexts[buttonId]) {
navigator.clipboard.writeText(clipboardTexts[buttonId]);
}
}
// Привязываем обработчик событий к кнопкам
Object.keys(clipboardTexts).forEach(buttonId => {
const button = document.getElementById(buttonId);
if (button) {
button.addEventListener("click", () => handleClipboardClick(buttonId));
}
});
//---------------------------------------------------Создание новых шаблонов локально---------------------------------------------------------//
const templatesEl = document.querySelector('.templates');
const addBtn = document.querySelector('.template-add');
function createTemplate(title, RUText, ENText) {
const templateId = Date.now();
const templateEl = document.createElement('span');
templateEl.setAttribute('data-template-id', templateId);
templateEl.classList.add('template');
templateEl.innerHTML = `
<span id="template-title" class="font-monospace">${title}</span>
<div class="bigFormochka">
<div class="formochka">
<input id="template-title-input" class="hidden form-control-sm">
<textarea id="template-textareaRU" class="hidden form-control-lg border-2" rows="1" cols="30.5">${RUText}</textarea>
<textarea id="template-textareaEN" class="hidden form-control-lg border-2" rows="1" cols="30.5">${ENText}</textarea>
</div>
<span class="buttonsLong">
<span class="btn btn-light" data-ru-text="${RUText}" id="template-ru-text">RU</span>
<span class="btn btn-light" data-en-text="${ENText}" id="template-en-text">ENG</span>
<button class="template-edit btn"><i class="fa-solid fa-pen-to-square"></i></button>
<button class="template-delete btn"><i class="fa-solid fa-trash"></i></button>
</span>
</div>
`;
const editBtn = templateEl.querySelector('.template-edit');
const deleteBtn = templateEl.querySelector('.template-delete');
const titleEl = templateEl.querySelector('#template-title');
const textRUEl = templateEl.querySelector('#template-ru-text');
const textENEl = templateEl.querySelector('#template-en-text');
const titleInputEl = templateEl.querySelector('#template-title-input');
const textRUInputEl = templateEl.querySelector('#template-textareaRU');
const textENInputEl = templateEl.querySelector('#template-textareaEN');
// Функция для переключения видимости элементов
function toggleVisibility(...elements) {
elements.forEach(el => el.classList.toggle('hidden'));
}
// Обработчик для редактирования
editBtn.addEventListener('click', () => {
toggleVisibility(titleEl, textRUEl, textENEl, titleInputEl, textRUInputEl, textENInputEl);
});
// Обработчик для удаления
deleteBtn.addEventListener('click', () => {
const templates = JSON.parse(localStorage.getItem('templates')) || [];
const templateIndex = templates.findIndex(template => template.title === titleEl.innerText);
if (templateIndex !== -1) {
templates.splice(templateIndex, 1);
localStorage.setItem('templates', JSON.stringify(templates));
}
templateEl.remove();
});
// Обработчики для изменений в полях
const handleChange = (key, valueEl, inputEl) => {
valueEl.innerText = inputEl.value;
navigator.clipboard.writeText(valueEl);
updateTemplateInLocalStorage(title, key, inputEl.value);
};
titleInputEl.addEventListener('change', (e) => handleChange('title', titleEl, e.target));
textRUInputEl.addEventListener('change', (e) => handleChange('RUText', textRUEl, e.target));
textENInputEl.addEventListener('change', (e) => handleChange('ENText', textENEl, e.target));
// Обработчик для копирования текста в буфер обмена
const handleCopyText = (e, key) => {
navigator.clipboard.writeText(e.target.dataset[key])
.then(() => console.log(`Текст ${key} скопирован в буфер обмена`))
.catch(err => console.error(`Не удалось скопировать текст ${key}: `, err));
};
textRUEl.addEventListener('click', (e) => handleCopyText(e, 'ruText'));
textENEl.addEventListener('click', (e) => handleCopyText(e, 'enText'));
return templateEl;
}
function saveTemplateToLocalStorage(title, RUText, ENText) {
const template = { title, RUText, ENText };
const templates = JSON.parse(localStorage.getItem('templates')) || [];
templates.push(template);
localStorage.setItem('templates', JSON.stringify(templates));
}
function updateTemplateInLocalStorage(title, key, value) {
const templates = JSON.parse(localStorage.getItem('templates')) || [];
const templateIndex = templates.findIndex(template => template.title === title);
if (templateIndex !== -1) {
templates[templateIndex][key] = value;
localStorage.setItem('templates', JSON.stringify(templates));
}
}
addBtn.addEventListener('click', () => {
const title = "Title";
const RUText = "RUText";
const ENText = "ENText";
const el = createTemplate(title, RUText, ENText);
templatesEl.appendChild(el);
saveTemplateToLocalStorage(title, RUText, ENText);
});
window.onload = function () {
const templates = JSON.parse(localStorage.getItem('templates')) || [];
templates.forEach(template => {
const el = createTemplate(template.title, template.RUText, template.ENText);
templatesEl.appendChild(el);
});
};
//--------------------------------------------------------------------------------------------------------------------------------//
// Тема
const themeToggle = document.getElementById('theme-toggle');
const themeIcon = document.getElementById('theme-icon');
// Применение сохраненной темы
const applySavedTheme = () => {
const savedTheme = localStorage.getItem('theme');
if (savedTheme === 'dark') {
document.body.classList.add('dark-theme');
if (themeIcon) {
themeIcon.classList.replace('fa-moon', 'fa-sun');
}
} else {
document.body.classList.remove('dark-theme');
if (themeIcon) {
themeIcon.classList.replace('fa-sun', 'fa-moon');
}
}
};
// Переключение темы
if (themeToggle && themeIcon) {
themeToggle.addEventListener('click', () => {
document.body.classList.toggle('dark-theme');
const theme = document.body.classList.contains('dark-theme') ? 'dark' : 'light';
localStorage.setItem('theme', theme); // Сохраняем выбранную тему
themeIcon.classList.replace(theme === 'dark' ? 'fa-moon' : 'fa-sun', theme === 'dark' ? 'fa-sun' : 'fa-moon');
});
}
// Применить сохраненную тему при загрузке страницы
applySavedTheme();
// Управление категориями
document.querySelectorAll('.category h3').forEach(function(header) {
const categoryId = header.textContent.trim(); // Уникальный идентификатор категории по названию
const content = header.nextElementSibling; // Содержимое категории
const icon = header.querySelector('.toggle-icon'); // Иконка стрелки
// Проверка состояния категории при загрузке страницы
const isCategoryOpen = localStorage.getItem(categoryId) === 'true';
if (isCategoryOpen) {
content.classList.add('show');
if (icon) {
icon.classList.replace('fa-chevron-down', 'fa-chevron-up');
}
} else {
content.classList.remove('show');
if (icon) {
icon.classList.replace('fa-chevron-up', 'fa-chevron-down');
}
}
// Обработчик клика по заголовку категории
header.addEventListener('click', function() {
content.classList.toggle('show'); // Переключаем видимость категории
icon.classList.toggle('fa-chevron-down');
icon.classList.toggle('fa-chevron-up');
// Сохраняем состояние категории как открытое или закрытое
localStorage.setItem(categoryId, content.classList.contains('show') ? 'true' : 'false');
});
});
});