{"id":470650,"date":"2025-08-14T03:01:20","date_gmt":"2025-08-14T03:01:20","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=470650"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=470650","title":{"rendered":"<span>\u0413\u043b\u0430\u0437\u0430 \u0411\u0438\u0442\u0440\u0438\u043a\u0441\u0430 \u0431\u043e\u044f\u0442\u0441\u044f, \u0430 \u0440\u0443\u043a\u0438 \u0434\u0435\u043b\u0430\u044e\u0442 \u2014 \u043a\u0430\u043a \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0434\u0435\u043b\u043a\u0438 \u0441 \u043d\u0443\u043b\u044f<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><em>\u0414\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432 \u0411\u0438\u0442\u0440\u0438\u043a\u044124 \u0431\u0435\u0437 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u2014 \u043a\u0430\u043a \u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0431\u0435\u0437 \u0447\u0435\u0440\u0442\u0435\u0436\u0435\u0439: \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f, \u043d\u043e \u043d\u0430\u0434\u043e\u043b\u0433\u043e \u043b\u0438?<\/em><\/p>\n<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442, \u044f \u0421\u0435\u0440\u0433\u0435\u0439 \u2014 \u0432\u0435\u0434\u0443\u0449\u0438\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u0432 e-commerce \u0430\u0433\u0435\u043d\u0442\u0441\u0442\u0432\u0435\u00a0<a href=\"https:\/\/b24.o2k.ru\/?utm_source=habr&amp;utm_medium=cpc&amp;utm_campaign=statya_b24-2\" rel=\"noopener noreferrer nofollow\"><strong>KISLOROD<\/strong><\/a>.<\/p>\n<p>\u0412 <a href=\"https:\/\/habr.com\/ru\/companies\/kislorod\/articles\/904166\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438<\/a> \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b, \u043a\u0430\u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043c\u043e\u0434\u0443\u043b\u044f \u0438 \u043d\u0430\u0447\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043f\u043e\u0434 \u0411\u0438\u0442\u0440\u0438\u043a\u044124. \u0422\u0435\u043f\u0435\u0440\u044c \u2014 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433.\u00a0<\/p>\n<p>\u0411\u0438\u0442\u0440\u0438\u043a\u044124 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u00ab\u043f\u043e\u0434 \u0441\u0435\u0431\u044f\u00bb, \u043d\u043e \u0435\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u2014 \u0431\u0435\u0437 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0432\u044b \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0443\u0435\u0434\u0435\u0442\u0435. \u041c\u043e\u0434\u0443\u043b\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432 \u043e\u0434\u0438\u043d \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439, \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0439 \u0431\u043b\u043e\u043a. \u042d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u043a\u0430\u043a \u0434\u043b\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c.<\/p>\n<h4>\u0427\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u043e \u043c\u043e\u0434\u0443\u043b\u044f\u0445<\/h4>\n<p>\u041c\u043e\u0434\u0443\u043b\u044c \u2014 \u044d\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0432\u0435\u0441\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b: \u0431\u0438\u0437\u043d\u0435\u0441-\u043b\u043e\u0433\u0438\u043a\u0443, \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u0438 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0432 \u043c\u043e\u0434\u0443\u043b\u0435 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u044f \u0440\u043e\u043b\u044c, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 <a href=\"https:\/\/dev.1c-bitrix.ru\/learning\/course\/index.php?COURSE_ID=43&amp;CHAPTER_ID=04609\" rel=\"noopener noreferrer nofollow\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a> \u2014 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e, \u0435\u0441\u043b\u0438 \u0432\u044b \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441 \u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438.<\/p>\n<p>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0432 \u0411\u0438\u0442\u0440\u0438\u043a\u044124 \u0438 \u0432 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u043e\u0440\u043e\u0431\u043e\u0447\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 (\u0411\u0423\u0421) \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0441\u043b\u0438 \u0432\u044b \u0443\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441 \u0411\u0423\u0421, \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u044f \u043f\u043e\u0434 \u043a\u043e\u0440\u043e\u0431\u043e\u0447\u043d\u044b\u0439 \u0411\u0438\u0442\u0440\u0438\u043a\u044124 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e\u0439.<\/p>\n<h4>\u041e\u0434\u0438\u043d \u043c\u043e\u0434\u0443\u043b\u044c \u2014 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0439<\/h4>\n<p>\u0420\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0435 \u043a\u0435\u0439\u0441\u044b \u0431\u0443\u0434\u0435\u043c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f kislorod.d7, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b \u043e\u043f\u0438\u0441\u0430\u043d \u0432 <a href=\"https:\/\/habr.com\/ru\/companies\/kislorod\/articles\/904166\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a>. \u0412\u0441\u0435 \u043a\u0435\u0439\u0441\u044b \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u044b \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0440\u0435\u0448\u0430\u043b\u0438 \u0434\u043b\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432, \u043d\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043d\u0438\u0445 \u0432\u044b\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u044b\u0435. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u0435\u0439\u0441\u044b \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u0431\u0435\u0437 \u0443\u0447\u0430\u0441\u0442\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f, \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438, \u043d\u043e \u0446\u0435\u043b\u044c\u044e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0441 API, \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c\u0438 \u0438 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439. \u041a \u0442\u043e\u043c\u0443 \u0436\u0435, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0437\u0430\u0434\u0443\u043c\u0430\u043d\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u0442\u044c.<\/p>\n<h2>\u041a\u0435\u0439\u0441. \u041f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u0437\u0432\u043e\u043d\u043a\u0438 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u0432 \u0432 \u0411\u0438\u0442\u0440\u0438\u043a\u044124.<\/h2>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430:<br \/><\/strong>\u041c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442 \u0437\u0432\u043e\u043d\u043a\u0438 \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432, \u0442\u0435\u0440\u044f\u044f \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0434\u0435\u043b\u043a\u0438.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430:<br \/><\/strong>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430\u043c \u043e \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445 \u0437\u0432\u043e\u043d\u043a\u0430\u0445. \u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>\u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0432\u0441\u0435 \u0435\u0433\u043e \u0441\u0434\u0435\u043b\u043a\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u044b \u044d\u0442\u0438\u0445 \u0441\u0434\u0435\u043b\u043e\u043a.<\/p>\n<\/li>\n<\/ul>\n<h3>\u041a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u043e \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u043c \u0437\u0432\u043e\u043d\u043a\u0435<\/h3>\n<p>\u0414\u043b\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0437\u0432\u043e\u043d\u043a\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0435 onCallEnd \u043c\u043e\u0434\u0443\u043b\u044f voximplant.<\/p>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u043d\u0435\u0433\u043e \u0432 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0435\u0440\u0435 \u043c\u043e\u0434\u0443\u043b\u044f:<\/p>\n<pre><code class=\"php\">\\Bitrix\\Main\\EventManager::getInstance()-&gt;registerEventHandler('voximplant', 'onCallEnd', $this-&gt;MODULE_ID, '\\o2k\\d7\\Events\\Voximplant', 'endCall');<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f:<\/p>\n<ol>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u0437\u0432\u043e\u043d\u043a\u0430. \u0423 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430 \u0441\u0442\u0430\u0442\u0443\u0441 304.<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0441\u0442\u0430\u0442\u0443\u0441 \u0441\u043e\u0432\u043f\u0430\u043b, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c CALL_ID.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e CALL_ID \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b StatisticTable \u043c\u043e\u0434\u0443\u043b\u044f voximplant.<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0439\u0442\u0438 \u043a\u043e\u043d\u0442\u0430\u043a\u0442 \u0432 CRM. \u041f\u043e\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0430\u043c\u0438, \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u043d\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0445\u043e\u0434\u0438\u043c \u043a\u043e\u043d\u0442\u0430\u043a\u0442 \u2014 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c\u0443 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0443.<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"php\">(int)$contactId = Voximplant::getOwnerIdByPhone($arCall['PHONE_NUMBER']);<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430\u0448\u0435\u043b\u0441\u044f \u043a\u043e\u043d\u0442\u0430\u043a\u0442 \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c \u043d\u043e\u043c\u0435\u0440\u043e\u043c \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430,\u00a0 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0435\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"php\">$ownerContact = static::getExtranetClientById($contactId);<\/code><\/pre>\n<p>\u0410 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u043a\u0438 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0430, \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438:<\/p>\n<pre><code class=\"php\">$ownerDeals = Entities\\DealField::getHTMLValues([], $contactId);<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"php\">$message = Loc::getMessage(Settings::$langPrefix.'_MESSAGE', ['#CLIENT#' =&gt; $ownerContact, '#DEALS#' =&gt; $ownerDeals]);<\/code><\/pre>\n<p>\u0418 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0441 ID 1(\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0430\u0434\u043c\u0438\u043d\u0443):<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"php\">$result = \\CIMNotify::Add([    'TO_USER_ID' =&gt; 1, \/\/\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u0430\u0434\u043c\u0438\u043d\u0443    'FROM_USER_ID' =&gt; 0,    'NOTIFY_TYPE' =&gt; IM_NOTIFY_SYSTEM,    'NOTIFY_MODULE' =&gt; Settings::$mid,    'NOTIFY_TAG' =&gt; 'missed-call'.intval($contactId).'-time-'.time(),    'NOTIFY_MESSAGE' =&gt; $message ]);<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0421\u043e\u0431\u044b\u0442\u0438\u0435 onCallEnd \u2014 \u044d\u0442\u043e \u0433\u0438\u0431\u043a\u0438\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442. \u041e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f, \u043d\u043e \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u043d\u0443\u0436\u043d\u044b\u0439 \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u0440\u043e\u0446\u0435\u0441\u0441. \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u044b:<\/p>\n<ul>\n<li>\n<p>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438 \u043f\u043e \u0438\u0442\u043e\u0433\u0430\u043c \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p>\u0410\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u0432 \u2014 \u043c\u043e\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445 \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u0438 \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0443.<\/p>\n<\/li>\n<li>\n<p>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043b\u0438\u0434\u043e\u0432 \u0438\u043b\u0438 \u0441\u0434\u0435\u043b\u043e\u043a \u2014 \u0437\u0432\u043e\u043d\u043e\u043a \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d? \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043b\u0438\u0434 \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a \u043a\u043b\u0438\u0435\u043d\u0442\u0443.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430, \u0435\u0441\u043b\u0438 \u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445.<\/p>\n<\/li>\n<li>\n<p>\u0418 \u043f\u0440\u043e\u0447\u0438\u0435 \u043a\u0435\u0439\u0441\u044b \u043a\u043e\u0438\u0445 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e.<\/p>\n<\/li>\n<\/ul>\n<p>\u0421\u0430\u043c \u043a\u043b\u0430\u0441\u0441 \u0441 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"php\">&lt;?php namespace o2k\\d7\\Events;  use o2k\\d7\\Conf\\Settings,    o2k\\d7\\Entities,    o2k\\d7\\Events\\Voximplant,    Bitrix\\Main\\Loader,    Bitrix\\Main\\ORM,    Bitrix\\Iblock\\ORM as IblockORM,    Bitrix\\Crm,    Bitrix\\Voximplant\\StatisticTable,    Bitrix\\Main\\Localization\\Loc,    Bitrix\\Main\\Config\\Option;    Loc::loadMessages(__FILE__);  class Voximplant {    private $fail = 304;     public static function endCall($arFields)    {        if(            Loader::includeModule(Settings::$voximplantMid) &amp;&amp;            $arFields['CALL_FAILED_CODE'] == self::$fail &amp;&amp;            intval($arFields['CALL_TYPE']) === \\CVoxImplantMain::CALL_INCOMING        ) {            $callID = (!empty($arFields['CALL_ID'])) ? trim($arFields['CALL_ID']) : false;             if($callID) {                if(!Loader::includeModule(Settings::$voximplantMid)) {                    return false;                }                                   $arCall = StatisticTable::getList([                    'select' =&gt; ['PHONE_NUMBER'],                    'filter' =&gt; ['=CALL_ID' =&gt; $callID],                    'limit' =&gt; 1                ])-&gt;fetch();                 if(!empty($arCall['PHONE_NUMBER'])) {                    $message = '';                    (int)$contactId = Voximplant::getOwnerIdByPhone($arCall['PHONE_NUMBER']);                    if($contactId &gt; 0) {                        $ownerContact = static::getExtranetClientById($contactId);                        $ownerDeals = Entities\\DealField::getHTMLValues([], $contactId);                        $message = Loc::getMessage(Settings::$langPrefix.'_MESSAGE', ['#CLIENT#' =&gt; $ownerContact, '#DEALS#' =&gt; $ownerDeals]);                    }                    if(Loader::IncludeModule(\"im\") &amp;&amp; !empty($message)) {                        $result = \\CIMNotify::Add([                            'TO_USER_ID' =&gt; 1, \/\/\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u0430\u0434\u043c\u0438\u043d\u0443                            'FROM_USER_ID' =&gt; 0,                            'NOTIFY_TYPE' =&gt; IM_NOTIFY_SYSTEM,                            'NOTIFY_MODULE' =&gt; Settings::$mid,                            'NOTIFY_TAG' =&gt; 'missed-call'.intval($contactId).'-time-'.time(),                            'NOTIFY_MESSAGE' =&gt; $message                        ]);                    }                }            }        }        return true;    }     public static function getOwnerIdByPhone(string $phone):int    {        $result = 0;         $query = new IblockORM\\Query(Crm\\FieldMultiTable::getEntity());        $query-&gt;setSelect(['*']);        $query-&gt;setFilter([            'TYPE_ID' =&gt; 'PHONE',            '%VALUE' =&gt; trim($phone),            'ENTITY_ID' =&gt; \\CCrmOwnerType::ContactName        ]);        $query-&gt;setLimit(1);         $getOwner = ORM\\Query\\QueryHelper::decompose($query);        if(is_object($getOwner) &amp;&amp; count($getOwner) &gt; 0) {            foreach($getOwner as $owner) {                $owner = $owner-&gt;collectValues(ORM\\Objectify\\Values::ALL, ORM\\Fields\\FieldTypeMask::ALL, true);                $result = $owner['ELEMENT_ID'];            }        }        return $result;    }     public static function getExtranetClientById(int $id):string    {        $result = 0;         $query = new IblockORM\\Query(Crm\\ContactTable::getEntity());        $query-&gt;setSelect([            'FULL_NAME'        ]);        $query-&gt;setFilter([            '=ID' =&gt; $id        ]);        $query-&gt;setLimit(1);         $getOwner = ORM\\Query\\QueryHelper::decompose($query);        if(is_object($getOwner) &amp;&amp; count($getOwner) &gt; 0) {            $link = Option::get(Settings::$intranetMid, 'path_user', 'path_user', 's1');            foreach($getOwner as $owner) {                $owner = $owner-&gt;collectValues(ORM\\Objectify\\Values::ALL, ORM\\Fields\\FieldTypeMask::ALL, true);                if(!empty($link)) {                    $result = \\CCrmViewHelper::PrepareUserBaloonHtml([                        'PREFIX' =&gt; (int)$owner['ID'].'_PREF',                        'USER_ID' =&gt; (int)$owner['ID'],                        'USER_NAME' =&gt; $owner['FULL_NAME'],                        'USER_PROFILE_URL' =&gt; str_replace('#USER_ID#', (int)$owner['ID'], $link)                    ]);                }            }        }        return $result;    } }<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f\u0445:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/97a\/6c0\/ac0\/97a6c0ac0892bd29d3ab1afdb8240157.jpg\" alt=\"\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0432 \u041124\" title=\"\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0432 \u041124\" width=\"1442\" height=\"387\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/97a\/6c0\/ac0\/97a6c0ac0892bd29d3ab1afdb8240157.jpg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/97a\/6c0\/ac0\/97a6c0ac0892bd29d3ab1afdb8240157.jpg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0432 \u041124<\/figcaption><\/div>\n<\/figure>\n<p>\u041d\u0430 \u0432\u0438\u0437\u0443\u0430\u043b \u043e\u043f\u044f\u0442\u044c \u043d\u0435 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u043c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u2014 \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<h2>\u041a\u0435\u0439\u0441. \u0412\u044b\u0432\u043e\u0434 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0443, \u0441\u0434\u0435\u043b\u043a\u0435 \u0438\u043b\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438.<\/h2>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430:<br \/><\/strong>\u041c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u044b \u0442\u0440\u0430\u0442\u044f\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043f\u043e\u0438\u0441\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. \u042d\u0442\u043e \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0438 \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0432\u043e\u043d\u043a\u043e\u0432.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430:<br \/><\/strong>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0443 \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0441\u0434\u0435\u043b\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u043f\u043e\u0438\u0441\u043a \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0443.<\/p>\n<p>\u0427\u0430\u0441\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0438\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0443, \u0441\u0434\u0435\u043b\u043a\u0435 \u0438\u043b\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0443\u0436\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438. \u0412 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435 bitrix:crm.entity.details \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u0435 onEntityDetailsTabsInitialized, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 \u043c\u0435\u043d\u044e \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0432\u043e\u0438 \u0432\u043a\u043b\u0430\u0434\u043a\u0438.<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"php\">protected function updateTabsByEvent(array $tabs): array {     $event = new Event('crm', 'onEntityDetailsTabsInitialized', [         'entityID' =&gt; $this-&gt;entityID,         'entityTypeID' =&gt; $this-&gt;entityTypeID,         'guid' =&gt; $this-&gt;guid,         'tabs' =&gt; $tabs,     ]);     EventManager::getInstance()-&gt;send($event);     foreach($event-&gt;getResults() as $result) {         if($result-&gt;getType() === EventResult::SUCCESS) {             $parameters = $result-&gt;getParameters();             if(is_array($parameters) &amp;&amp; is_array($parameters['tabs'])) {                 $tabs = $parameters['tabs'];             }         }     }     return $tabs; }<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u043a\u0430\u043a \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 ORM-\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043c\u043e\u0434\u0443\u043b\u044f \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u043f\u043e \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c\u0443 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0443. \u0417\u0430\u0434\u0430\u0447\u0430 \u2014 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u043a\u0438, \u0433\u0434\u0435 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u0442\u0435\u043a\u0443\u0449\u0438\u043c \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0441\u0434\u0435\u043b\u043a\u0438. \u0427\u0442\u043e \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f:<\/p>\n<ul>\n<li>\n<p>\u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0435;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c ID \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438;<\/p>\n<\/li>\n<li>\n<p>\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u043e \u044d\u0442\u043e\u043c\u0443 ID \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 (ajax.php).<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0435. \u0412 \u0444\u0430\u0439\u043b\u0435 install.php \u043c\u043e\u0434\u0443\u043b\u044f, \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 InstallEvents(), \u043f\u043e\u0434\u043f\u0438\u0448\u0435\u043c\u0441\u044f \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0435.<\/p>\n<pre><code class=\"php\">\\Bitrix\\Main\\EventManager::getInstance()-&gt;registerEventHandler('crm', 'onEntityDetailsTabsInitialized', $this-&gt;MODULE_ID, 'o2k\\\\d7\\\\Events\\CrmMenu','getTab');<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043a\u043b\u0430\u0441\u0441 CrmMenu \u0438 \u043c\u0435\u0442\u043e\u0434 getTab, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u043d\u044e, \u0438 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u043d\u0430\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438\u0437 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430.<\/p>\n<p>\u0415\u0449\u0435 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a ajax.php \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430. \u041e\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"php\">&lt;?php use Bitrix\\Main\\Application;  define('NO_KEEP_STATISTIC', 'Y'); define('NO_AGENT_STATISTIC', 'Y'); define('NO_AGENT_CHECK', true); define('PUBLIC_AJAX_MODE', true); define('DisableEventsCheck', true);  $siteID = isset($_REQUEST['site']) ? mb_substr(preg_replace('\/[^a-z0-9_]\/i', '', $_REQUEST['site']), 0, 2) : ''; if ($siteID !== '') {    define('SITE_ID', $siteID); } require_once($_SERVER['DOCUMENT_ROOT'] . '\/bitrix\/modules\/main\/include\/prolog_before.php'); if (!defined(\"B_PROLOG_INCLUDED\") || B_PROLOG_INCLUDED !== true) {    die(); } if (!check_bitrix_sessid()) {    die(); } Header('Content-Type: text\/html; charset=' . LANG_CHARSET);  global $APPLICATION; $APPLICATION-&gt;ShowAjaxHead(); $request = Application::getInstance()-&gt;getContext()-&gt;getRequest(); $componentData = $request-&gt;get('PARAMS'); if(is_array($componentData)){    $componentParams = isset($componentData['params']) &amp;&amp; is_array($componentData['params']) ? $componentData['params'] : []; }  $server = $request-&gt;getServer();  $ajaxLoaderParams = [    'url' =&gt; $server-&gt;get('REQUEST_URI'),    'method' =&gt; 'POST',    'dataType' =&gt; 'ajax',    'data' =&gt; ['PARAMS' =&gt; $componentData] ];  $componentParams['AJAX_LOADER'] = $ajaxLoaderParams;  $APPLICATION-&gt;IncludeComponent(    'bitrix:ui.sidepanel.wrapper',    '',    [        'PLAIN_VIEW' =&gt; false,        'USE_PADDING' =&gt; true,        'POPUP_COMPONENT_NAME' =&gt; 'o2k:o2k.test',        'POPUP_COMPONENT_TEMPLATE_NAME' =&gt; $componentData['template'] ?? '',        'POPUP_COMPONENT_PARAMS' =&gt; $componentParams    ] );  \\CMain::FinalActions();<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0414\u0443\u043c\u0430\u044e, \u0437\u0434\u0435\u0441\u044c \u0432 \u0446\u0435\u043b\u043e\u043c \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442. \u041d\u043e \u043e\u0434\u0438\u043d \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0441\u0451 \u0436\u0435 \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u044f\u0441\u043d\u0438\u0442\u044c \u2014 \u044d\u0442\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 bitrix:ui.sidepanel.wrapper.<\/p>\n<p>\u041c\u044b \u0432\u044b\u0448\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438 \u043e \u0432\u044b\u0432\u043e\u0434\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 ORM-\u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0430 \u0437\u0434\u0435\u0441\u044c \u0432\u0434\u0440\u0443\u0433 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u043e\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442. \u041e\u0434\u043d\u0430\u043a\u043e \u044d\u0442\u043e \u043d\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e: bitrix:ui.sidepanel.wrapper \u2014 \u044d\u0442\u043e \u043e\u0431\u0435\u0440\u0442\u043a\u0430, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u0430\u044f \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u043b\u0430\u0439\u0434\u0435\u0440\u0430.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432 iframe \u0441\u043b\u0430\u0439\u0434\u0435\u0440\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0442\u043e \u043e\u043d\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f \u0441\u043e \u0432\u0441\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0430 \u2014 \u0448\u0430\u043f\u043a\u043e\u0439, \u043c\u0435\u043d\u044e, \u043f\u043e\u0434\u0432\u0430\u043b\u043e\u043c. \u0422\u0430\u043a\u043e\u0439 \u0440\u0435\u0436\u0438\u043c \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u0438 \u0432\u044b\u0432\u043e\u0434\u0430.<\/p>\n<p>bitrix:ui.sidepanel.wrapper \u043a\u0430\u043a \u0440\u0430\u0437 \u0438 \u0440\u0435\u0448\u0430\u0435\u0442 \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443: \u043e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0431\u0435\u0437 \u043b\u0438\u0448\u043d\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f, \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0432\u0441\u0442\u0440\u043e\u0438\u0432 \u0435\u0433\u043e \u0432 \u0441\u043b\u0430\u0439\u0434\u0435\u0440.<\/p>\n<p>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u2014 \u0432<a href=\"https:\/\/dev.1c-bitrix.ru\/api_d7\/bitrix\/ui\/sidepanel_wrapper\/start.php\" rel=\"noopener noreferrer nofollow\"> \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>.<\/p>\n<p>\u0412 \u043a\u043e\u0434\u0435 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043e\u0431\u0435\u0440\u0442\u043a\u0438 \u043d\u0430\u0448 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442:&#8217;POPUP_COMPONENT_NAME&#8217; =&gt; &#8216;o2k:o2k.test&#8217;, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0441\u043b\u0430\u0439\u0434\u0435\u0440\u0435 \u0443\u0436\u0435 \u0431\u0435\u0437 \u0448\u0430\u043f\u043a\u0438 \u0438 \u0444\u0443\u0442\u0435\u0440\u0430. \u0422\u0430\u043a\u0436\u0435 \u0432 ajax \u043f\u0440\u043e\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 o2k:o2k.test \u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u0430.<\/p>\n<p>\u0427\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u043a\u043b\u0430\u0441\u0441\u0430 CrmMenu, \u0442\u043e \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"php\">&lt;?php namespace o2k\\d7\\Events;  use Bitrix\\Main\\Loader,    o2k\\d7\\Conf\\Settings,    Bitrix\\Main\\EventResult,    Bitrix\\Crm\\DealTable,    Bitrix\\Main\\ORM,    Bitrix\\Iblock\\ORM as IblockORM,    Bitrix\\Main\\Localization\\Loc;  Loc::loadMessages( __FILE__ ); Loader::includeModule(Settings::$crmMid);  class CrmMenu {    public static function getTab(\\Bitrix\\Main\\Event $event): EventResult    {        $entityId = $event-&gt;getParameter('entityID');        $entityTypeID = $event-&gt;getParameter('entityTypeID');        $tabs = $event-&gt;getParameter('tabs');         switch ($entityTypeID) {            case \\CCrmOwnerType::Deal:                $tabs = self::getResponsibleDeals($tabs, $entityId);                break;        }         return new EventResult(EventResult::SUCCESS, [            'tabs' =&gt; $tabs,        ]);    }      private static function getResponsibleDeals(array $tabs, int $id): array    {        $responsible = 0;         $query = new IblockORM\\Query(DealTable::getEntity());              $query-&gt;setSelect([            'ASSIGNED_BY_ID'        ]);        $query-&gt;setFilter([            '=ID' =&gt; $id        ]);        $query-&gt;setLimit(1);         $arDeals = ORM\\Query\\QueryHelper::decompose($query);        if(is_object($arDeals) &amp;&amp; count($arDeals) &gt; 0) {          foreach($arDeals as $deal) {                $deal = $deal-&gt;collectValues(ORM\\Objectify\\Values::ALL, ORM\\Fields\\FieldTypeMask::ALL, true);                $responsible = $deal['ASSIGNED_BY_ID'];            }        }         $tabs[] = [            'id' =&gt; 'deals_contact',            'name' =&gt; Loc::getMessage(Settings::$langPrefix.'_DEALS_RESPONSIBLE'),            'enabled' =&gt; !empty($id),            'loader' =&gt; [                'serviceUrl' =&gt; '\/local\/components\/o2k\/o2k.test\/ajax.php?&amp;site=' . \\SITE_ID . '&amp;' . \\bitrix_sessid_get(),                'componentData' =&gt; [                    'template' =&gt; '',                    'params' =&gt; [                        'GRID_ID' =&gt; 'test_grid_table',                        'FILTER_ID' =&gt; 'test_grid_filter',                        'FILTER' =&gt; ['RESPONSIBLE' =&gt; $responsible]                    ]                ]            ]        ];              return $tabs;    } }<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f onEntityDetailsTabsInitialized \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0448 \u043c\u0435\u0442\u043e\u0434 getTab.<\/p>\n<p>\u0412\u043d\u0443\u0442\u0440\u0438 \u043c\u0435\u0442\u043e\u0434\u0430 \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u0442\u0435\u043a\u0443\u0449\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u2014 \u044d\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u0441\u0434\u0435\u043b\u043a\u0438. \u0415\u0441\u043b\u0438 \u044d\u0442\u043e \u0442\u0430\u043a, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e ID \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 (\u0442\u043e \u0435\u0441\u0442\u044c \u0441\u0434\u0435\u043b\u043a\u0438).<\/p>\n<pre><code class=\"php\">switch ($entityTypeID) {      case \\CCrmOwnerType::Deal:          $tabs = self::getResponsibleDeals($tabs, $entityId);          break;  }<\/code><\/pre>\n<p>\u041d\u0430\u0439\u0434\u044f \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e,\u00a0 \u043e\u043d \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 serviceUrl, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0432\u0438\u0434\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u0430 \u043d\u0430 \u043d\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 (\u0444\u0430\u0439\u043b ajax.php)<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"php\">$tabs[] = [    'id' =&gt; 'deals_contact',    'name' =&gt; Loc::getMessage(Settings::$langPrefix.'_DEALS_RESPONSIBLE'),    'enabled' =&gt; !empty($id),    'loader' =&gt; [        'serviceUrl' =&gt; '\/local\/components\/o2k\/o2k.test\/ajax.php?&amp;site=' . \\SITE_ID . '&amp;' . \\bitrix_sessid_get(),        'componentData' =&gt; [            'template' =&gt; '',            'params' =&gt; [                'GRID_ID' =&gt; 'test_grid_table',                'FILTER_ID' =&gt; 'test_grid_filter',                'FILTER' =&gt; ['RESPONSIBLE' =&gt; $responsible]            ]        ]    ] ];<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b &#8216;componentData&#8217; -&gt; &#8216;params&#8217; \u2014 \u044d\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u044b \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 o2k.test.<\/p>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u0441 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439 \u0438\u0437 \u043d\u0430\u0448\u0435\u0439 ORM-\u043c\u043e\u0434\u0435\u043b\u0438 \u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u043c \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/326\/4ef\/d41\/3264efd4109263b1f6479b032584b73d.jpg\" alt=\"\u0421\u0434\u0435\u043b\u043a\u0438 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u0443\" title=\"\u0421\u0434\u0435\u043b\u043a\u0438 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u0443\" width=\"1680\" height=\"473\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/326\/4ef\/d41\/3264efd4109263b1f6479b032584b73d.jpg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/326\/4ef\/d41\/3264efd4109263b1f6479b032584b73d.jpg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0421\u0434\u0435\u043b\u043a\u0438 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u0443<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a40\/897\/cfa\/a40897cfab75da47e7ac2e390f6707df.jpg\" width=\"1680\" height=\"473\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/a40\/897\/cfa\/a40897cfab75da47e7ac2e390f6707df.jpg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a40\/897\/cfa\/a40897cfab75da47e7ac2e390f6707df.jpg 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0432\u0430\u0448\u0435\u0439 \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u0438 \u2014 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438.<\/p>\n<h2>\u041a\u0435\u0439\u0441. \u0412\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u0435 \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u0435 \u043c\u0435\u043d\u044e \u0441\u0434\u0435\u043b\u043a\u0438<\/h2>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430:<br \/><\/strong>\u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0442\u0447\u0435\u0442\u0430 \u043f\u043e \u0441\u0434\u0435\u043b\u043a\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439. \u041a\u0430\u0436\u0434\u044b\u0439 \u043e\u0442\u0447\u0435\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u043e\u0439\u0442\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u0434\u0438\u0439 \u043f\u0435\u0440\u0435\u0434 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u043c \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435\u043c. \u042d\u0442\u043e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<p>\u0415\u0449\u0435 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0438 \u0447\u0430\u0441\u0442\u043e \u0437\u0430\u0431\u044b\u0432\u0430\u044e\u0442 \u043d\u0430\u0436\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u0432 \u0437\u0430\u0434\u0430\u0447\u0435 \u0438\u043b\u0438 \u043d\u0435 \u0432\u043d\u043e\u0441\u044f\u0442 \u0432\u0430\u0436\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u0418\u0437-\u0437\u0430 \u044d\u0442\u043e\u0433\u043e \u043e\u0442\u0447\u0435\u0442 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0438:<\/strong><\/p>\n<ol>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0435 \u043c\u0435\u043d\u044e \u0441\u0434\u0435\u043b\u043a\u0438 (\u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0441\u0434\u0435\u043b\u043e\u043a) \u0434\u0432\u0430 \u043e\u0442\u0447\u0435\u0442\u0430. \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u2014 \u0441\u0432\u043e\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c: \u0437\u0430\u043f\u0443\u0441\u043a \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438, \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u043d\u0430 \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u0435, \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f PDF \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0448\u0430\u0433\u0438.<\/p>\n<\/li>\n<li>\n<p>\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043e\u0442\u0447\u0435\u0442\u0430.<\/p>\n<\/li>\n<\/ol>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u0435 \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u0435 \u043c\u0435\u043d\u044e \u0441\u0434\u0435\u043b\u043a\u0438 \u2014 \u044d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439.<\/p>\n<pre><code class=\"php\">\\Bitrix\\Main\\EventManager::getInstance()-&gt;registerEventHandler('crm', 'onCrmDealListItemBuildMenu', $this-&gt;MODULE_ID, 'o2k\\\\d7\\\\Events\\DealContextItemMenu','injectContextMenu');<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043a\u043e\u0434 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 <a href=\"http:\/\/crm.deal\" rel=\"noopener noreferrer nofollow\">crm.deal<\/a>.list, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435 \u2014 \u0444\u0430\u0439\u043b template.php, \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0443\u044e \u0434\u0435\u0442\u0430\u043b\u044c: \u043f\u0440\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0438 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u0434\u0435\u043b\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435.<\/p>\n<p>\u042d\u0442\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u2014 onCrmDealListItemBuildMenu. \u0421 \u0435\u0433\u043e \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442\u044b \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e, \u0432\u0441\u0442\u0440\u043e\u0438\u0432 \u0442\u0443\u0434\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f.<\/p>\n<p>\u0417\u043d\u0430\u044f \u044d\u0442\u043e, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u044d\u0442\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435,\u00a0 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043c\u0435\u043d\u044e. \u0412 \u0444\u0430\u0439\u043b\u0435 install.php \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<\/p>\n<pre><code class=\"php\">function InstallEvents()<\/code><\/pre>\n<p>\u0414\u043b\u044f \u043c\u043e\u0434\u0443\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0443 \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0435:<\/p>\n<pre><code class=\"php\">\\Bitrix\\Main\\EventManager::getInstance()-&gt;registerEventHandler('crm', 'onCrmDealListItemBuildMenu', $this-&gt;MODULE_ID, 'o2k\\\\d7\\\\Events\\DealContextItemMenu','injectContextMenu');<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043a\u043b\u0430\u0441\u0441, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u043f\u0438\u0448\u0435\u043c \u043b\u043e\u0433\u0438\u043a\u0443:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"php\">&lt;?php namespace o2k\\d7\\Events;  use Bitrix\\Main\\Loader,    o2k\\d7\\Conf\\Settings,    Bitrix\\Main\\EventResult;  class DealContextItemMenu {    public static function injectContextMenu($restPlacement, $contactId, array &amp;$menu)    {        if($restPlacement == 'CRM_DEAL_LIST_MENU') {            $menu[]['SEPARATOR'] = true;            $menu[] = [                'TITLE' =&gt; 'Test',                'TEXT' =&gt; 'Test 1',                'MENU' =&gt; [                    [                        'TITLE' =&gt; 'Sub Test 1',                        'TEXT' =&gt; 'Sub Test 1',                        'ONCLICK' =&gt; 'console.log(\"test 1\");'                    ],                    [                        'TITLE' =&gt; 'Sub Test 2',                        'TEXT' =&gt; 'Sub Test 2',                        'ONCLICK' =&gt; 'console.log(\"test 2\");'                    ]                ]            ];            $menu[]['SEPARATOR'] = true;        }               return $menu;    } }<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u041f\u0440\u0438\u043d\u0446\u0438\u043f \u043f\u0440\u043e\u0441\u0442\u043e\u0439: \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0435 \u043c\u0435\u043d\u044e \u0441\u0434\u0435\u043b\u043a\u0438, \u0437\u0430\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c, \u0447\u0442\u043e\u0431\u044b \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043e\u0442\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430\u0448\u0438 \u043f\u0443\u043d\u043a\u0442\u044b.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u0432\u043e\u0439 \u0440\u0430\u0437\u0434\u0435\u043b \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <em>\u00ab\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043c\u0435\u043d\u044e\u00bb<\/em>, \u2014 \u0438 \u0432 \u043d\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u043c \u0434\u0432\u0430 \u043f\u043e\u0434\u043f\u0443\u043d\u043a\u0442\u0430.<\/p>\n<p>\u0412\u0430\u0436\u043d\u043e: \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 ONCLICK \u2014 \u044d\u0442\u043e JavaScript-\u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043f\u0443\u043d\u043a\u0442 \u043c\u0435\u043d\u044e. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e:<br \/> \u2013 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0441\u043b\u0430\u0439\u0434\u0435\u0440\u0430,<br \/> \u2013 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 AJAX-\u0437\u0430\u043f\u0440\u043e\u0441\u0430,<br \/> \u2013 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u0447\u0435\u0442\u0430 \u043f\u043e \u0441\u0434\u0435\u043b\u043a\u0435,<br \/> \u2013 \u0438\u043b\u0438 \u043b\u044e\u0431\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0447\u0430\u0441\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0443 &#171;\u0432 \u0434\u0432\u0430 \u043a\u043b\u0438\u043a\u0430&#187;.<\/p>\n<p>\u0422\u0430\u043a\u0438\u0435 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 <a href=\"https:\/\/dev.1c-bitrix.ru\/api_d7\/bitrix\/crm\/calllist\/calllist\/index.php\" rel=\"noopener noreferrer nofollow\">\u0421\u043e\u0431\u044b\u0442\u0438\u044f \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043c\u0435\u043d\u044e \u0432 Bitrix24.<\/a><\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/176\/3e1\/381\/1763e1381bc5b488371305d734940393.jpg\" alt=\"\u0412\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u0435 \u043c\u043d\u043e\u0433\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u043e\u0435 \u043c\u0435\u043d\u044e\" title=\"\u0412\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u0435 \u043c\u043d\u043e\u0433\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u043e\u0435 \u043c\u0435\u043d\u044e\" width=\"1680\" height=\"826\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/176\/3e1\/381\/1763e1381bc5b488371305d734940393.jpg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/176\/3e1\/381\/1763e1381bc5b488371305d734940393.jpg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0412\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u0435 \u043c\u043d\u043e\u0433\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u043e\u0435 \u043c\u0435\u043d\u044e<\/figcaption><\/div>\n<\/figure>\n<h2>\u0412\u044b\u0432\u043e\u0434\u044b<\/h2>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432, \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0411\u0438\u0442\u0440\u0438\u043a\u044124 \u043d\u0435 \u0442\u0430\u043a \u0443\u0436 \u0441\u043b\u043e\u0436\u043d\u043e \u2014 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0441\u0435\u0439\u0447\u0430\u0441, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0438 \u0434\u043b\u044f \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 (\u0440\u0430\u043d\u0435\u0435 \u043e\u043d\u0430 \u0431\u044b\u043b\u0430 \u043c\u0435\u043d\u0435\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u0430). \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u043e\u0437\u0436\u0435 \u043c\u044b \u0441 \u0432\u0430\u043c\u0438 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0438 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041d\u043e \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u0436\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0434\u0440\u0443\u0433\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \ud83d\ude42<\/p>\n<p><strong>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b\u0438\u0441\u044c \u0441:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u043f\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c\u0443 \u0433\u0440\u0438\u0434\u0443 \u0441 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0432\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u043f\u0443\u043d\u043a\u0442\u043e\u0432 \u00ab\u043c\u0435\u043d\u044e\u00bb \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443 \u0441\u0434\u0435\u043b\u043a\u0438 \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0435\u0439;<\/p>\n<\/li>\n<li>\n<p>\u0432\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043f\u0443\u043d\u043a\u0442\u043e\u0432 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0435 \u043c\u0435\u043d\u044e \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u0434\u0435\u043b\u043a\u043e\u043a (\u0438\u043b\u0438 \u043b\u0438\u0434\u0430, \u0438\u043b\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438).<\/p>\n<\/li>\n<li>\n<p>\u043c\u0435\u0442\u043e\u0434\u043e\u043c serviceUrl;<\/p>\n<\/li>\n<li>\n<p>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 bitrix:ui.sidepanel.wrapper;<\/p>\n<\/li>\n<\/ul>\n<p>\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u2014 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>\u0421 \u0442\u0430\u043a\u0438\u043c \u00ab\u0434\u0436\u0435\u043d\u0442\u043b\u044c\u043c\u0435\u043d\u0441\u043a\u0438\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c\u00bb \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0430\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0448\u0438\u0440\u043e\u043a\u0438\u0439 \u043a\u0440\u0443\u0433 \u0437\u0430\u0434\u0430\u0447 \u0432 \u0411\u0438\u0442\u0440\u0438\u043a\u044124.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/935914\/\"> https:\/\/habr.com\/ru\/articles\/935914\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><em>\u0414\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432 \u0411\u0438\u0442\u0440\u0438\u043a\u044124 \u0431\u0435\u0437 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u2014 \u043a\u0430\u043a \u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0431\u0435\u0437 \u0447\u0435\u0440\u0442\u0435\u0436\u0435\u0439: \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f, \u043d\u043e \u043d\u0430\u0434\u043e\u043b\u0433\u043e \u043b\u0438?<\/em><\/p>\n<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442, \u044f \u0421\u0435\u0440\u0433\u0435\u0439 \u2014 \u0432\u0435\u0434\u0443\u0449\u0438\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u0432 e-commerce \u0430\u0433\u0435\u043d\u0442\u0441\u0442\u0432\u0435\u00a0<a href=\"https:\/\/b24.o2k.ru\/?utm_source=habr&amp;utm_medium=cpc&amp;utm_campaign=statya_b24-2\" rel=\"noopener noreferrer nofollow\"><strong>KISLOROD<\/strong><\/a>.<\/p>\n<p>\u0412 <a href=\"https:\/\/habr.com\/ru\/companies\/kislorod\/articles\/904166\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438<\/a> \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b, \u043a\u0430\u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043c\u043e\u0434\u0443\u043b\u044f \u0438 \u043d\u0430\u0447\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043f\u043e\u0434 \u0411\u0438\u0442\u0440\u0438\u043a\u044124. \u0422\u0435\u043f\u0435\u0440\u044c \u2014 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433.\u00a0<\/p>\n<p>\u0411\u0438\u0442\u0440\u0438\u043a\u044124 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u00ab\u043f\u043e\u0434 \u0441\u0435\u0431\u044f\u00bb, \u043d\u043e \u0435\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u2014 \u0431\u0435\u0437 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0432\u044b \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0443\u0435\u0434\u0435\u0442\u0435. \u041c\u043e\u0434\u0443\u043b\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432 \u043e\u0434\u0438\u043d \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439, \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0439 \u0431\u043b\u043e\u043a. \u042d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u043a\u0430\u043a \u0434\u043b\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c.<\/p>\n<h4>\u0427\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u043e \u043c\u043e\u0434\u0443\u043b\u044f\u0445<\/h4>\n<p>\u041c\u043e\u0434\u0443\u043b\u044c \u2014 \u044d\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0432\u0435\u0441\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b: \u0431\u0438\u0437\u043d\u0435\u0441-\u043b\u043e\u0433\u0438\u043a\u0443, \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u0438 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0432 \u043c\u043e\u0434\u0443\u043b\u0435 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u044f \u0440\u043e\u043b\u044c, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 <a href=\"https:\/\/dev.1c-bitrix.ru\/learning\/course\/index.php?COURSE_ID=43&amp;CHAPTER_ID=04609\" rel=\"noopener noreferrer nofollow\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a> \u2014 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e, \u0435\u0441\u043b\u0438 \u0432\u044b \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441 \u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438.<\/p>\n<p>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0432 \u0411\u0438\u0442\u0440\u0438\u043a\u044124 \u0438 \u0432 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u043e\u0440\u043e\u0431\u043e\u0447\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 (\u0411\u0423\u0421) \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0441\u043b\u0438 \u0432\u044b \u0443\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441 \u0411\u0423\u0421, \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u044f \u043f\u043e\u0434 \u043a\u043e\u0440\u043e\u0431\u043e\u0447\u043d\u044b\u0439 \u0411\u0438\u0442\u0440\u0438\u043a\u044124 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e\u0439.<\/p>\n<h4>\u041e\u0434\u0438\u043d \u043c\u043e\u0434\u0443\u043b\u044c \u2014 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0439<\/h4>\n<p>\u0420\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0435 \u043a\u0435\u0439\u0441\u044b \u0431\u0443\u0434\u0435\u043c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f kislorod.d7, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b \u043e\u043f\u0438\u0441\u0430\u043d \u0432 <a href=\"https:\/\/habr.com\/ru\/companies\/kislorod\/articles\/904166\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a>. \u0412\u0441\u0435 \u043a\u0435\u0439\u0441\u044b \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u044b \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0440\u0435\u0448\u0430\u043b\u0438 \u0434\u043b\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432, \u043d\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043d\u0438\u0445 \u0432\u044b\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u044b\u0435. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u0435\u0439\u0441\u044b \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u0431\u0435\u0437 \u0443\u0447\u0430\u0441\u0442\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f, \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438, \u043d\u043e \u0446\u0435\u043b\u044c\u044e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0441 API, \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c\u0438 \u0438 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439. \u041a \u0442\u043e\u043c\u0443 \u0436\u0435, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0437\u0430\u0434\u0443\u043c\u0430\u043d\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u0442\u044c.<\/p>\n<h2>\u041a\u0435\u0439\u0441. \u041f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u0437\u0432\u043e\u043d\u043a\u0438 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u0432 \u0432 \u0411\u0438\u0442\u0440\u0438\u043a\u044124.<\/h2>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430:<br \/><\/strong>\u041c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442 \u0437\u0432\u043e\u043d\u043a\u0438 \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432, \u0442\u0435\u0440\u044f\u044f \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0434\u0435\u043b\u043a\u0438.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430:<br \/><\/strong>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430\u043c \u043e \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445 \u0437\u0432\u043e\u043d\u043a\u0430\u0445. \u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>\u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0432\u0441\u0435 \u0435\u0433\u043e \u0441\u0434\u0435\u043b\u043a\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u044b \u044d\u0442\u0438\u0445 \u0441\u0434\u0435\u043b\u043e\u043a.<\/p>\n<\/li>\n<\/ul>\n<h3>\u041a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u043e \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u043c \u0437\u0432\u043e\u043d\u043a\u0435<\/h3>\n<p>\u0414\u043b\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0437\u0432\u043e\u043d\u043a\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0435 onCallEnd \u043c\u043e\u0434\u0443\u043b\u044f voximplant.<\/p>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u043d\u0435\u0433\u043e \u0432 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0435\u0440\u0435 \u043c\u043e\u0434\u0443\u043b\u044f:<\/p>\n<pre><code class=\"php\">\\Bitrix\\Main\\EventManager::getInstance()-&gt;registerEventHandler('voximplant', 'onCallEnd', $this-&gt;MODULE_ID, '\\o2k\\d7\\Events\\Voximplant', 'endCall');<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f:<\/p>\n<ol>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u0437\u0432\u043e\u043d\u043a\u0430. \u0423 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430 \u0441\u0442\u0430\u0442\u0443\u0441 304.<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0441\u0442\u0430\u0442\u0443\u0441 \u0441\u043e\u0432\u043f\u0430\u043b, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c CALL_ID.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e CALL_ID \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b StatisticTable \u043c\u043e\u0434\u0443\u043b\u044f voximplant.<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0439\u0442\u0438 \u043a\u043e\u043d\u0442\u0430\u043a\u0442 \u0432 CRM. \u041f\u043e\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0430\u043c\u0438, \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u043d\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0445\u043e\u0434\u0438\u043c \u043a\u043e\u043d\u0442\u0430\u043a\u0442 \u2014 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c\u0443 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0443.<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"php\">(int)$contactId = Voximplant::getOwnerIdByPhone($arCall['PHONE_NUMBER']);<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430\u0448\u0435\u043b\u0441\u044f \u043a\u043e\u043d\u0442\u0430\u043a\u0442 \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c \u043d\u043e\u043c\u0435\u0440\u043e\u043c \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430,\u00a0 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0435\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"php\">$ownerContact = static::getExtranetClientById($contactId);<\/code><\/pre>\n<p>\u0410 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u043a\u0438 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0430, \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438:<\/p>\n<pre><code class=\"php\">$ownerDeals = Entities\\DealField::getHTMLValues([], $contactId);<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"php\">$message = Loc::getMessage(Settings::$langPrefix.'_MESSAGE', ['#CLIENT#' =&gt; $ownerContact, '#DEALS#' =&gt; $ownerDeals]);<\/code><\/pre>\n<p>\u0418 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0441 ID 1(\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0430\u0434\u043c\u0438\u043d\u0443):<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"php\">$result = \\CIMNotify::Add([    'TO_USER_ID' =&gt; 1, \/\/\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u0430\u0434\u043c\u0438\u043d\u0443    'FROM_USER_ID' =&gt; 0,    'NOTIFY_TYPE' =&gt; IM_NOTIFY_SYSTEM,    'NOTIFY_MODULE' =&gt; Settings::$mid,    'NOTIFY_TAG' =&gt; 'missed-call'.intval($contactId).'-time-'.time(),    'NOTIFY_MESSAGE' =&gt; $message ]);<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0421\u043e\u0431\u044b\u0442\u0438\u0435 onCallEnd \u2014 \u044d\u0442\u043e \u0433\u0438\u0431\u043a\u0438\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442. \u041e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f, \u043d\u043e \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u043d\u0443\u0436\u043d\u044b\u0439 \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u0440\u043e\u0446\u0435\u0441\u0441. \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u044b:<\/p>\n<ul>\n<li>\n<p>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438 \u043f\u043e \u0438\u0442\u043e\u0433\u0430\u043c \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p>\u0410\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u0432 \u2014 \u043c\u043e\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445 \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u0438 \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0443.<\/p>\n<\/li>\n<li>\n<p>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043b\u0438\u0434\u043e\u0432 \u0438\u043b\u0438 \u0441\u0434\u0435\u043b\u043e\u043a \u2014 \u0437\u0432\u043e\u043d\u043e\u043a \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d? \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043b\u0438\u0434 \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a \u043a\u043b\u0438\u0435\u043d\u0442\u0443.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430, \u0435\u0441\u043b\u0438 \u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445.<\/p>\n<\/li>\n<li>\n<p>\u0418 \u043f\u0440\u043e\u0447\u0438\u0435 \u043a\u0435\u0439\u0441\u044b \u043a\u043e\u0438\u0445 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e.<\/p>\n<\/li>\n<\/ul>\n<p>\u0421\u0430\u043c \u043a\u043b\u0430\u0441\u0441 \u0441 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"php\">&lt;?php namespace o2k\\d7\\Events;  use o2k\\d7\\Conf\\Settings,    o2k\\d7\\Entities,    o2k\\d7\\Events\\Voximplant,    Bitrix\\Main\\Loader,    Bitrix\\Main\\ORM,    Bitrix\\Iblock\\ORM as IblockORM,    Bitrix\\Crm,    Bitrix\\Voximplant\\StatisticTable,    Bitrix\\Main\\Localization\\Loc,    Bitrix\\Main\\Config\\Option;    Loc::loadMessages(__FILE__);  class Voximplant {    private $fail = 304;     public static function endCall($arFields)    {        if(            Loader::includeModule(Settings::$voximplantMid) &amp;&amp;            $arFields['CALL_FAILED_CODE'] == self::$fail &amp;&amp;            intval($arFields['CALL_TYPE']) === \\CVoxImplantMain::CALL_INCOMING        ) {            $callID = (!empty($arFields['CALL_ID'])) ? trim($arFields['CALL_ID']) : false;             if($callID) {                if(!Loader::includeModule(Settings::$voximplantMid)) {                    return false;                }                                   $arCall = StatisticTable::getList([                    'select' =&gt; ['PHONE_NUMBER'],                    'filter' =&gt; ['=CALL_ID' =&gt; $callID],                    'limit' =&gt; 1                ])-&gt;fetch();                 if(!empty($arCall['PHONE_NUMBER'])) {                    $message = '';                    (int)$contactId = Voximplant::getOwnerIdByPhone($arCall['PHONE_NUMBER']);                    if($contactId &gt; 0) {                        $ownerContact = static::getExtranetClientById($contactId);                        $ownerDeals = Entities\\DealField::getHTMLValues([], $contactId);                        $message = Loc::getMessage(Settings::$langPrefix.'_MESSAGE', ['#CLIENT#' =&gt; $ownerContact, '#DEALS#' =&gt; $ownerDeals]);                    }                    if(Loader::IncludeModule(\"im\") &amp;&amp; !empty($message)) {                        $result = \\CIMNotify::Add([                            'TO_USER_ID' =&gt; 1, \/\/\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u0430\u0434\u043c\u0438\u043d\u0443                            'FROM_USER_ID' =&gt; 0,                            'NOTIFY_TYPE' =&gt; IM_NOTIFY_SYSTEM,                            'NOTIFY_MODULE' =&gt; Settings::$mid,                            'NOTIFY_TAG' =&gt; 'missed-call'.intval($contactId).'-time-'.time(),                            'NOTIFY_MESSAGE' =&gt; $message                        ]);                    }                }            }        }        return true;    }     public static function getOwnerIdByPhone(string $phone):int    {        $result = 0;         $query = new IblockORM\\Query(Crm\\FieldMultiTable::getEntity());        $query-&gt;setSelect(['*']);        $query-&gt;setFilter([            'TYPE_ID' =&gt; 'PHONE',            '%VALUE' =&gt; trim($phone),            'ENTITY_ID' =&gt; \\CCrmOwnerType::ContactName        ]);        $query-&gt;setLimit(1);         $getOwner = ORM\\Query\\QueryHelper::decompose($query);        if(is_object($getOwner) &amp;&amp; count($getOwner) &gt; 0) {            foreach($getOwner as $owner) {                $owner = $owner-&gt;collectValues(ORM\\Objectify\\Values::ALL, ORM\\Fields\\FieldTypeMask::ALL, true);                $result = $owner['ELEMENT_ID'];            }        }        return $result;    }     public static function getExtranetClientById(int $id):string    {        $result = 0;         $query = new IblockORM\\Query(Crm\\ContactTable::getEntity());        $query-&gt;setSelect([            'FULL_NAME'        ]);        $query-&gt;setFilter([            '=ID' =&gt; $id        ]);        $query-&gt;setLimit(1);         $getOwner = ORM\\Query\\QueryHelper::decompose($query);        if(is_object($getOwner) &amp;&amp; count($getOwner) &gt; 0) {            $link = Option::get(Settings::$intranetMid, 'path_user', 'path_user', 's1');            foreach($getOwner as $owner) {                $owner = $owner-&gt;collectValues(ORM\\Objectify\\Values::ALL, ORM\\Fields\\FieldTypeMask::ALL, true);                if(!empty($link)) {                    $result = \\CCrmViewHelper::PrepareUserBaloonHtml([                        'PREFIX' =&gt; (int)$owner['ID'].'_PREF',                        'USER_ID' =&gt; (int)$owner['ID'],                        'USER_NAME' =&gt; $owner['FULL_NAME'],                        'USER_PROFILE_URL' =&gt; str_replace('#USER_ID#', (int)$owner['ID'], $link)                    ]);                }            }        }        return $result;    } }<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f\u0445:<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0432 \u041124<\/figcaption><\/div>\n<\/figure>\n<p>\u041d\u0430 \u0432\u0438\u0437\u0443\u0430\u043b \u043e\u043f\u044f\u0442\u044c \u043d\u0435 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u043c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u2014 \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<h2>\u041a\u0435\u0439\u0441. \u0412\u044b\u0432\u043e\u0434 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0443, \u0441\u0434\u0435\u043b\u043a\u0435 \u0438\u043b\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438.<\/h2>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430:<br \/><\/strong>\u041c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u044b \u0442\u0440\u0430\u0442\u044f\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043f\u043e\u0438\u0441\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. \u042d\u0442\u043e \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0438 \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0432\u043e\u043d\u043a\u043e\u0432.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430:<br \/><\/strong>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0443 \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0441\u0434\u0435\u043b\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u043f\u043e\u0438\u0441\u043a \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0443.<\/p>\n<p>\u0427\u0430\u0441\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0438\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0443, \u0441\u0434\u0435\u043b\u043a\u0435 \u0438\u043b\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0443\u0436\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438. \u0412 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435 bitrix:crm.entity.details \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u0435 onEntityDetailsTabsInitialized, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 \u043c\u0435\u043d\u044e \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0432\u043e\u0438 \u0432\u043a\u043b\u0430\u0434\u043a\u0438.<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"php\">protected function updateTabsByEvent(array $tabs): array {     $event = new Event('crm', 'onEntityDetailsTabsInitialized', [         'entityID' =&gt; $this-&gt;entityID,         'entityTypeID' =&gt; $this-&gt;entityTypeID,         'guid' =&gt; $this-&gt;guid,         'tabs' =&gt; $tabs,     ]);     EventManager::getInstance()-&gt;send($event);     foreach($event-&gt;getResults() as $result) {         if($result-&gt;getType() === EventResult::SUCCESS) {             $parameters = $result-&gt;getParameters();             if(is_array($parameters) &amp;&amp; is_array($parameters['tabs'])) {                 $tabs = $parameters['tabs'];             }         }     }     return $tabs; }<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u043a\u0430\u043a \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 ORM-\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043c\u043e\u0434\u0443\u043b\u044f \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0435\u0439<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-470650","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/470650","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=470650"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/470650\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=470650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=470650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=470650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}