{"id":1450,"date":"2025-12-29T13:40:03","date_gmt":"2025-12-29T13:40:03","guid":{"rendered":"https:\/\/shopmobinnet.ir\/?page_id=1450"},"modified":"2026-01-05T11:27:15","modified_gmt":"2026-01-05T11:27:15","slug":"bot","status":"publish","type":"page","link":"https:\/\/shopmobinnet.ir\/index.php\/bot\/","title":{"rendered":""},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1450\" class=\"elementor elementor-1450\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c4813c3 e-flex e-con-boxed e-con e-parent\" data-id=\"c4813c3\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ce1c69a elementor-widget elementor-widget-html\" data-id=\"ce1c69a\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!DOCTYPE html>\r\n<html lang=\"fa\">\r\n<head>\r\n<meta charset=\"UTF-8\">\r\n<title>ShopMobinnet - \u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u0648\u062f\u0645<\/title>\r\n<style>\r\nbody {font-family: Tahoma,sans-serif; background: #e5ddd5; margin:0; padding:0; direction: rtl;}\r\nheader {background:#4caf50;color:#fff;text-align:center;padding:15px;font-size:20px;font-weight:bold;}\r\n.chat-container {max-width:450px;margin:0 auto;border-radius:10px;background:#f0f0f0;display:flex;flex-direction:column;height:90vh;overflow:hidden;box-shadow:0 0 10px rgba(0,0,0,0.2);}\r\n.chat-box {flex:1; overflow-y:auto;padding:15px;}\r\n.message {display:inline-block;padding:10px 14px;border-radius:20px;margin:5px 0; max-width:80%; word-wrap:break-word;}\r\n.bot {background:#fff; align-self:flex-start; border-top-left-radius:0;}\r\n.user {background:#dcf8c6; align-self:flex-end; border-top-right-radius:0;}\r\n.buttons {margin-top:5px; display:flex; flex-direction:column;}\r\n.buttons button {padding:10px;margin:3px 0; border-radius:15px;border:none; cursor:pointer; background-color:#4caf50;color:#fff;transition:background 0.3s;}\r\n.buttons button:hover {background-color:#388e3c;}\r\n.buttons button.selected {background-color:#1b5e20;}\r\n.product {border-top:1px dashed #ccc;margin-top:8px;padding-top:8px;background:#fdfdfd;border-radius:8px; position: relative;}\r\n.product img {width:100%;border-radius:8px;margin-top:5px;}\r\n.product strong {user-select: text; font-size:16px; display:inline-block; margin-right:5px;} \r\n.copy-btn {font-size:12px; padding:2px 6px; cursor:pointer; background:#4caf50; color:#fff; border:none; border-radius:4px;}\r\n.buy {display:block;margin-top:8px;background:green;color:#fff;padding:8px;border-radius:6px;text-align:center;text-decoration:none;}\r\n.summary {background:#e1f5fe;border-radius:10px;padding:10px;margin-top:10px;font-size:14px;}\r\n<\/style>\r\n<\/head>\r\n<body>\r\n<header>shopmobinnet<\/header>\r\n<div class=\"chat-container\">\r\n    <div class=\"chat-box\" id=\"chat\"><\/div>\r\n<\/div>\r\n\r\n<script>\r\nconst chat = document.getElementById(\"chat\");\r\nlet answers = {};\r\nlet lastProducts = {best:null, normal:null};\r\nlet productOrder = [];\r\nlet productIdCounter = 0;\r\n\r\nconst products = {\r\n    \"4300\": {name:\"\u0645\u0648\u062f\u0645 4300\", img:\"https:\/\/shopmobinnet.ir\/wp-content\/uploads\/2025\/12\/ff0a2121168a3de24573621f07105681.png\",\r\n             price:{\"200\":4400000,\"100\":4100000,\"30\":3700000}},\r\n    \"4200\": {name:\"\u0645\u0648\u062f\u0645 4200\", img:\"https:\/\/shopmobinnet.ir\/wp-content\/uploads\/2025\/12\/ff0a2121168a3de24573621f07105681.png\",\r\n             price:{\"200\":4400000,\"100\":4100000,\"30\":3700000}},\r\n    \"4400\": {name:\"\u0645\u0648\u062f\u0645 4400\", img:\"https:\/\/shopmobinnet.ir\/wp-content\/uploads\/2025\/12\/ff0a2121168a3de24573621f07105681.png\",\r\n             price:{\"200\":4400000,\"100\":4100000,\"30\":3700000}},\r\n    \"B636\": {name:\"\u0645\u0648\u062f\u0645 \u0647\u0648\u0622\u0648\u06cc B636\", img:\"https:\/\/shopmobinnet.ir\/wp-content\/uploads\/2025\/12\/edec7cd8085bbd6058f81deb75887604.png\",\r\n             price:{\"200\":10300000,\"30\":9700000}},\r\n    \"6500\": {name:\"\u0645\u0648\u062f\u0645 6500\", img:\"https:\/\/shopmobinnet.ir\/wp-content\/uploads\/2025\/12\/9b1ea1297eddc250082628619f29b6cf-1-1.webp\",\r\n             price:{\"200\":6800000,\"100\":6600000,\"30\":6200000}},\r\n    \"6200\": {name:\"\u0645\u0648\u062f\u0645 6200\", img:\"https:\/\/shopmobinnet.ir\/wp-content\/uploads\/2025\/12\/MN600D-1.webp\",\r\n             price:{\"200\":6200000,\"100\":6000000,\"30\":5600000}},\r\n    \"E5785\": {name:\"\u0645\u0648\u062f\u0645 \u062c\u06cc\u0628\u06cc \u0645\u0628\u06cc\u0646\u200c\u0646\u062a Huawei E5785-320a\", img:\"https:\/\/shopmobinnet.ir\/wp-content\/uploads\/2025\/12\/1234.jpg\",\r\n              price:{\"200\":9100000,\"100\":8800000,\"30\":8400000}}\r\n};\r\n\r\nfunction addMessage(text, sender=\"bot\", callback){\r\n    const div = document.createElement(\"div\");\r\n    div.className = `message ${sender}`;\r\n    chat.appendChild(div);\r\n    if(sender===\"bot\"){\r\n        let i=0;\r\n        const interval=setInterval(()=>{\r\n            div.innerHTML+=text.charAt(i);\r\n            i++;\r\n            chat.scrollTop=chat.scrollHeight;\r\n            if(i===text.length){clearInterval(interval); if(callback)callback();}\r\n        },20);\r\n    } else {\r\n        div.innerHTML=text;\r\n        if(callback)callback();\r\n    }\r\n}\r\n\r\nfunction showButtons(buttons){\r\n    const div=document.createElement(\"div\");\r\n    div.className=\"buttons\";\r\n    buttons.forEach(b=>{\r\n        const btn=document.createElement(\"button\");\r\n        btn.innerText = b.text;\r\n        btn.onclick = ()=>{\r\n            Array.from(div.children).forEach(c=>c.classList.remove('selected'));\r\n            btn.classList.add('selected');\r\n            setTimeout(()=>div.remove(),200);\r\n            b.action();\r\n        };\r\n        div.appendChild(btn);\r\n    });\r\n    chat.appendChild(div);\r\n    chat.scrollTop = chat.scrollHeight;\r\n}\r\n\r\nfunction priceRange(code){\r\n    switch(code){\r\n        case \"low\": return [0, 4500000];\r\n        case \"mid\": return [5000000, 8000000];\r\n        case \"high\": return [6000000, Infinity];\r\n    }\r\n}\r\n\r\n\/\/ \u0645\u0631\u0627\u062d\u0644\r\nfunction step1Portable(){\r\n    addMessage(\"\u0622\u06cc\u0627 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0645\u0648\u062f\u0645 **\u0642\u0627\u0628\u0644 \u062d\u0645\u0644 \/ \u062c\u06cc\u0628\u06cc** \u0628\u0627\u0634\u062f\u061f \ud83d\udcf1\",\"bot\",()=>{showButtons([\r\n        {text:\"\u0622\u0631\u0647\", action:()=>{answers.portable=true; step2DataPortable();}},\r\n        {text:\"\u0646\u0647\", action:()=>{answers.portable=false; step2Data();}}\r\n    ]);});\r\n}\r\n\r\nfunction step2DataPortable(){\r\n    addMessage(\"\u0645\u06cc\u0632\u0627\u0646 \u0645\u0635\u0631\u0641 \u0627\u06cc\u0646\u062a\u0631\u0646\u062a\u062a \u0686\u0642\u062f\u0631\u0647\u061f \ud83d\udcca\",\"bot\",()=>{showButtons([\r\n        {text:\"\u0645\u0635\u0631\u0641 \u06a9\u0645 (<17 \u06af\u06cc\u06af)\", action:()=>{answers.data=\"200\"; showPortable();}},\r\n        {text:\"\u0645\u0635\u0631\u0641 \u0645\u062a\u0648\u0633\u0637\", action:()=>{answers.data=\"100\"; showPortable();}},\r\n        {text:\"\u0645\u0635\u0631\u0641 \u0632\u06cc\u0627\u062f\", action:()=>{answers.data=\"30\"; showPortable();}}\r\n    ]);});\r\n}\r\n\r\nfunction step2Data(){\r\n    addMessage(\"\u0645\u06cc\u0632\u0627\u0646 \u0645\u0635\u0631\u0641 \u0627\u06cc\u0646\u062a\u0631\u0646\u062a\u062a \u0686\u0642\u062f\u0631\u0647\u061f \ud83d\udcca\",\"bot\",()=>{showButtons([\r\n        {text:\"\u0645\u0635\u0631\u0641 \u06a9\u0645 (<17 \u06af\u06cc\u06af)\", action:()=>{answers.data=\"200\"; step3Use();}},\r\n        {text:\"\u0645\u0635\u0631\u0641 \u0645\u062a\u0648\u0633\u0637\", action:()=>{answers.data=\"100\"; step3Use();}},\r\n        {text:\"\u0645\u0635\u0631\u0641 \u0632\u06cc\u0627\u062f\", action:()=>{answers.data=\"30\"; step3Use();}}\r\n    ]);});\r\n}\r\n\r\nfunction step3Use(){\r\n    addMessage(\"\u0645\u0648\u062f\u0645 \u0631\u0648 \u0628\u0631\u0627\u06cc \u0686\u0647 \u0645\u0635\u0631\u0641\u06cc \u0645\u06cc\u200c\u062e\u0648\u0627\u06cc\u061f \ud83e\udd14\",\"bot\",()=>{showButtons([\r\n        {text:\"\u0645\u0635\u0631\u0641 \u0633\u0628\u06a9 \u062e\u0627\u0646\u06af\u06cc \/ \u062f\u0648\u0631\u0628\u06cc\u0646\", action:()=>{answers.use=\"light\"; step4Price();}},\r\n        {text:\"\u06af\u06cc\u0645 \u0648 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0633\u0631\u0639\u062a \u0628\u0627\u0644\u0627\", action:()=>{answers.use=\"gaming\"; step4Price();}},\r\n        {text:\"\u0627\u062f\u0627\u0631\u06cc \u0628\u0627 \u0686\u0646\u062f \u06a9\u0627\u0631\u0628\u0631 \u0647\u0645\u0632\u0645\u0627\u0646\", action:()=>{answers.use=\"office\"; step4Price();}}\r\n    ]);});\r\n}\r\n\r\nfunction step4Price(){\r\n    addMessage(\"\u062d\u062f\u0648\u062f \u0628\u0648\u062f\u062c\u0647\u200c\u0627\u062a \u0686\u0642\u062f\u0631\u0647\u061f \ud83d\udcb0\",\"bot\",()=>{showButtons([\r\n        {text:\"\u0632\u06cc\u0631 \u06f4\u066b\u06f5 \u0645\u06cc\u0644\u06cc\u0648\u0646 \u062a\u0648\u0645\u0627\u0646\", action:()=>{answers.price=\"low\"; result();}},\r\n        {text:\"\u0628\u06cc\u0646 \u06f5 \u062a\u0627 \u06f8 \u0645\u06cc\u0644\u06cc\u0648\u0646 \u062a\u0648\u0645\u0627\u0646\", action:()=>{answers.price=\"mid\"; result();}},\r\n        {text:\"\u0628\u0627\u0644\u0627\u06cc \u06f6 \u0645\u06cc\u0644\u06cc\u0648\u0646 \u062a\u0648\u0645\u0627\u0646\", action:()=>{answers.price=\"high\"; result();}}\r\n    ]);});\r\n}\r\n\r\nfunction showPortable(){\r\n    const product = products[\"E5785\"];\r\n    const price = product.price[answers.data];\r\n    addMessage(\"\ud83c\udfaf \u067e\u06cc\u0634\u0646\u0647\u0627\u062f \u0645\u0648\u062f\u0645 \u062c\u06cc\u0628\u06cc:\", \"bot\", ()=>{\r\n        showProduct(product,\"\u2705 \u0645\u0648\u062f\u0645 \u062c\u06cc\u0628\u06cc\", price, answers.data);\r\n        showSummaryPortable();\r\n        showSurvey();\r\n    });\r\n}\r\n\r\nfunction showSummaryPortable(){\r\n    const div=document.createElement(\"div\");\r\n    div.className=\"summary\";\r\n    div.innerHTML=`<strong>\ud83d\udccb \u062e\u0644\u0627\u0635\u0647 \u0645\u0633\u06cc\u0631 \u0634\u0645\u0627:<\/strong><br>\r\n    \u0645\u0648\u062f\u0645 \u062c\u06cc\u0628\u06cc: \u0628\u0644\u0647<br>\r\n    \u062d\u062c\u0645 \u0627\u0646\u062a\u062e\u0627\u0628\u06cc: ${answers.data === \"200\" ? \"200 \u06af\u06cc\u06af \u06cc\u06a9\u0633\u0627\u0644\u0647\" : answers.data===\"100\"?\"100 \u06af\u06cc\u06af \u0634\u0634 \u0645\u0627\u0647\u0647\":\"30 \u06af\u06cc\u06af \u0633\u0647 \u0645\u0627\u0647\u0647\"}`;\r\n    chat.appendChild(div);\r\n    chat.scrollTop = chat.scrollHeight;\r\n}\r\n\r\nfunction showProduct(product,label, price, volume){\r\n    const div=document.createElement(\"div\");\r\n    div.className=\"product\";\r\n    const volText = volume===\"200\"?\"200 \u06af\u06cc\u06af \u06cc\u06a9\u0633\u0627\u0644\u0647\":volume===\"100\"?\"100 \u06af\u06cc\u06af \u0634\u0634 \u0645\u0627\u0647\u0647\":\"30 \u06af\u06cc\u06af \u0633\u0647 \u0645\u0627\u0647\u0647\";\r\n    const uniqueId = \"modemTitle\"+(productIdCounter++);\r\n    div.innerHTML=`<strong id=\"${uniqueId}\" style=\"user-select:text;\">${product.name}<\/strong>\r\n                     <button class=\"copy-btn\" onclick=\"copyText('${uniqueId}')\">\u06a9\u067e\u06cc<\/button><br>\r\n                     \ud83d\udcb0 \u0642\u06cc\u0645\u062a: ${price.toLocaleString()} \u062a\u0648\u0645\u0627\u0646<br>\r\n                     \ud83d\udce6 \u062d\u062c\u0645: ${volText}\r\n                     <img decoding=\"async\" src=\"${product.img}\">\r\n                     <a class=\"buy\" href=\"#\">\u062e\u0631\u06cc\u062f \u0645\u0648\u062f\u0645<\/a>`;\r\n    chat.appendChild(div);\r\n    chat.scrollTop = chat.scrollHeight;\r\n}\r\n\r\nfunction copyText(id){\r\n    const text = document.getElementById(id).innerText;\r\n    navigator.clipboard.writeText(text).then(()=>alert('\u0639\u0646\u0648\u0627\u0646 \u06a9\u067e\u06cc \u0634\u062f!'));\r\n}\r\n\r\n\/\/ \u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u062d\u0635\u0648\u0644 \u063a\u06cc\u0631\u062c\u06cc\u0628\u06cc \u0628\u0627 \u0641\u06cc\u0644\u062a\u0631 \u0645\u062d\u062f\u0648\u062f\u0647 \u0642\u06cc\u0645\u062a \u0648 \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0627\u0632 \u062a\u06a9\u0631\u0627\u0631\u06cc \u0628\u0648\u062f\u0646\r\nfunction selectProduct(level,excludeIds=[],direction=null,referencePrice=null){\r\n    let filteredProducts = Object.keys(products).filter(id=>products[id].price[answers.data]);\r\n    if(!answers.portable) filteredProducts = filteredProducts.filter(id=>id!==\"E5785\");\r\n    filteredProducts = filteredProducts.filter(id=>!excludeIds.includes(id));\r\n    const [minPrice,maxPrice] = priceRange(answers.price);\r\n    filteredProducts = filteredProducts.filter(id=>{\r\n        const p = products[id].price[answers.data];\r\n        if(p<minPrice || p>maxPrice) return false;\r\n        if(direction===\"up\" && p<=referencePrice) return false;\r\n        if(direction===\"down\" && p>=referencePrice) return false;\r\n        return true;\r\n    });\r\n    if(filteredProducts.length===0) return null;\r\n    const sorted = filteredProducts.map(id=>({id, price: products[id].price[answers.data]}))\r\n                                  .sort((a,b)=>a.price-b.price);\r\n    productOrder = sorted.map(p=>p.id);\r\n    let productId;\r\n    if(level===\"best\") productId = sorted[sorted.length-1].id;\r\n    else productId = sorted[0].id;\r\n    const product = products[productId];\r\n    const price = product.price[answers.data];\r\n    return {product, price, volume:answers.data, name:productId};\r\n}\r\n\r\nfunction result(){\r\n    if(answers.portable){\r\n        showPortable();\r\n        return;\r\n    }\r\n    lastProducts.best=selectProduct(\"best\");\r\n    lastProducts.normal=selectProduct(\"normal\",[lastProducts.best?lastProducts.best.name:null].filter(Boolean));\r\n    addMessage(\"\ud83c\udfaf \u067e\u06cc\u0634\u0646\u0647\u0627\u062f \u0645\u0646\u0627\u0633\u0628 \u0628\u0631\u0627\u06cc \u0634\u0645\u0627:\", \"bot\", ()=>{\r\n        if(lastProducts.best) showProduct(lastProducts.best.product,\"\u2705 \u0628\u0647\u062a\u0631\u06cc\u0646 \u0627\u0646\u062a\u062e\u0627\u0628\", lastProducts.best.price, lastProducts.best.volume);\r\n        if(lastProducts.normal) showProduct(lastProducts.normal.product,\"\u2139\ufe0f \u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u0639\u0645\u0648\u0644\u06cc\", lastProducts.normal.price, lastProducts.normal.volume);\r\n        showSummaryNonPortable();\r\n        showPriceAdjustButtons();\r\n    });\r\n}\r\n\r\nfunction showSummaryNonPortable(){\r\n    const div=document.createElement(\"div\");\r\n    div.className=\"summary\";\r\n    div.innerHTML=`<strong>\ud83d\udccb \u062e\u0644\u0627\u0635\u0647 \u0645\u0633\u06cc\u0631 \u0634\u0645\u0627:<\/strong><br>\r\n    \u0645\u0648\u062f\u0645 \u062c\u06cc\u0628\u06cc: \u062e\u06cc\u0631<br>\r\n    \u0646\u0648\u0639 \u0645\u0635\u0631\u0641: ${answers.use}<br>\r\n    \u0628\u0648\u062f\u062c\u0647: ${answers.price}<br>\r\n    \u062d\u062c\u0645 \u0627\u0646\u062a\u062e\u0627\u0628\u06cc: ${answers.data === \"200\" ? \"200 \u06af\u06cc\u06af \u06cc\u06a9\u0633\u0627\u0644\u0647\" : answers.data===\"100\"?\"100 \u06af\u06cc\u06af \u0634\u0634 \u0645\u0627\u0647\u0647\":\"30 \u06af\u06cc\u06af \u0633\u0647 \u0645\u0627\u0647\u0647\"}`;\r\n    chat.appendChild(div);\r\n    chat.scrollTop = chat.scrollHeight;\r\n}\r\n\r\nfunction showPriceAdjustButtons(){\r\n    showButtons([\r\n        {text:\"\ud83d\udcb8 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u0645 \u0628\u06cc\u0634\u062a\u0631 \u0647\u0632\u06cc\u0646\u0647 \u06a9\u0646\u0645\", action:()=>adjustPrice(\"up\")},\r\n        {text:\"\ud83d\udcb0 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u0645 \u06a9\u0645\u062a\u0631 \u0647\u0632\u06cc\u0646\u0647 \u06a9\u0646\u0645\", action:()=>adjustPrice(\"down\")}\r\n    ]);\r\n}\r\n\r\nfunction adjustPrice(direction){\r\n    if(!productOrder.length) return;\r\n    let excludeIds = [lastProducts.best?.name,lastProducts.normal?.name].filter(Boolean);\r\n    let next;\r\n    if(direction===\"up\"){\r\n        next = selectProduct(\"best\",excludeIds,\"up\",lastProducts.best?.price);\r\n        if(next) addMessage(\"\ud83d\udca1 \u0628\u0627 \u0627\u0641\u0632\u0627\u06cc\u0634 \u0628\u0648\u062f\u062c\u0647 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u06cc\u0646 \u06af\u0632\u06cc\u0646\u0647 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f:\",\"bot\",()=>{showProduct(next.product,\"\u2705 \u0633\u0637\u062d \u0628\u0627\u0644\u0627\u062a\u0631\", next.price, answers.data); showSurvey();});\r\n        else alert(\"\u06af\u0632\u06cc\u0646\u0647 \u06af\u0631\u0627\u0646\u200c\u062a\u0631 \u0645\u0648\u062c\u0648\u062f \u0646\u06cc\u0633\u062a \u062f\u0631 \u0647\u0645\u06cc\u0646 \u0628\u0627\u0632\u0647 \u0642\u06cc\u0645\u062a.\");\r\n    } else {\r\n        next = selectProduct(\"normal\",excludeIds,\"down\",lastProducts.normal?.price);\r\n        if(next) addMessage(\"\ud83d\udca1 \u0628\u0627 \u06a9\u0627\u0647\u0634 \u0628\u0648\u062f\u062c\u0647 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u06cc\u0646 \u06af\u0632\u06cc\u0646\u0647 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f:\",\"bot\",()=>{showProduct(next.product,\"\u2139\ufe0f \u0633\u0637\u062d \u067e\u0627\u06cc\u06cc\u0646\u200c\u062a\u0631\", next.price, answers.data); showSurvey();});\r\n        else alert(\"\u06af\u0632\u06cc\u0646\u0647 \u0627\u0631\u0632\u0627\u0646\u200c\u062a\u0631 \u0645\u0648\u062c\u0648\u062f \u0646\u06cc\u0633\u062a \u062f\u0631 \u0647\u0645\u06cc\u0646 \u0628\u0627\u0632\u0647 \u0642\u06cc\u0645\u062a.\");\r\n    }\r\n}\r\n\r\nfunction showSurvey(){\r\n    addMessage(\"\u0644\u0637\u0641\u0627 \u062a\u062c\u0631\u0628\u0647 \u062e\u0648\u062f \u0631\u0627 \u0627\u0631\u0632\u06cc\u0627\u0628\u06cc \u06a9\u0646\u06cc\u062f (\u06f1 \u062a\u0627 \u06f5): \u2b50\",\"bot\",()=>{\r\n        showButtons([\r\n            {text:\"1\", action:()=>sendSurvey(1)},\r\n            {text:\"2\", action:()=>sendSurvey(2)},\r\n            {text:\"3\", action:()=>sendSurvey(3)},\r\n            {text:\"4\", action:()=>sendSurvey(4)},\r\n            {text:\"5\", action:()=>sendSurvey(5)}\r\n        ]);\r\n    });\r\n}\r\n\r\nfunction sendSurvey(score){\r\n    addMessage(`\u0634\u0645\u0627 \u0627\u0645\u062a\u06cc\u0627\u0632 ${score} \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0631\u062f\u06cc\u062f`,\"user\",()=>{\r\n        addMessage(\"\u0646\u0638\u0631 \u0634\u0645\u0627 \u0627\u0631\u0633\u0627\u0644 \u0634\u062f\u060c \u0628\u0627 \u062a\u0634\u06a9\u0631 \u0627\u0632 \u0634\u0645\u0627 \ud83d\ude4f\",\"bot\",showRestartButton);\r\n    });\r\n}\r\n\r\nfunction showRestartButton(){\r\n    showButtons([{text:\"\ud83d\udd04 \u0634\u0631\u0648\u0639 \u0645\u062c\u062f\u062f \u062a\u0633\u062a\", action:resetTest}]);\r\n}\r\n\r\nfunction resetTest(){\r\n    answers={};\r\n    lastProducts={best:null, normal:null};\r\n    productOrder=[];\r\n    addMessage(\"\u267b\ufe0f \u0634\u0631\u0648\u0639 \u0645\u062c\u062f\u062f \u062a\u0633\u062a...\",\"bot\",step1Portable);\r\n}\r\n\r\n\/\/ \u0634\u0631\u0648\u0639 \u0686\u062a\r\naddMessage(\"\u0633\u0644\u0627\u0645 \ud83d\udc4b \u0628\u0631\u0627\u06cc \u0627\u0646\u062a\u062e\u0627\u0628 \u0628\u0647\u062a\u0631\u06cc\u0646 \u0645\u0648\u062f\u0645\u060c \u0686\u0646\u062f \u0633\u0624\u0627\u0644 \u06a9\u0648\u062a\u0627\u0647 \u062f\u0627\u0631\u0645 \ud83d\ude0a\",\"bot\",step1Portable);\r\n\r\n<\/script>\r\n<\/body>\r\n<\/html>\r\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-dbd8579 e-flex e-con-boxed e-con e-parent\" data-id=\"dbd8579\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-187b39e elementor-widget elementor-widget-html\" data-id=\"187b39e\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div style=\"width:100%;display:flex;justify-content:center;margin-top:20px;\">\r\n  <button onclick=\"history.back()\" style=\"\r\n    display:flex;\r\n    justify-content:center;\r\n    align-items:center;\r\n    width:100%;\r\n    max-width:200px;\r\n    padding:15px;\r\n    background: linear-gradient(90deg, #6ee7b7, #059669);\r\n    color:#fff;\r\n    text-align:center;\r\n    border:none;\r\n    border-radius:8px;\r\n    font-size:14px;\r\n    font-weight:bold;\r\n    cursor:pointer;\r\n    box-shadow: 0 3px 10px rgba(0,0,0,0.2);\r\n    transition: transform 0.2s, box-shadow 0.2s;\r\n  \"\r\n  onmouseover=\"this.style.transform='scale(1.05)'; this.style.boxShadow='0 5px 14px rgba(0,0,0,0.3)';\" \r\n  onmouseout=\"this.style.transform='scale(1)'; this.style.boxShadow='0 3px 10px rgba(0,0,0,0.2)';\">\r\n    \u0628\u0627\u0632\u06af\u0634\u062a \u0628\u0647 \u0635\u0641\u062d\u0647 \u0642\u0628\u0644\r\n  <\/button>\r\n<\/div>\r\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>ShopMobinnet &#8211; \u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u0648\u062f\u0645 shopmobinnet \u0628\u0627\u0632\u06af\u0634\u062a \u0628\u0647 \u0635\u0641\u062d\u0647 \u0642\u0628\u0644<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-1450","page","type-page","status-publish","hentry"],"aioseo_notices":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/shopmobinnet.ir\/index.php\/wp-json\/wp\/v2\/pages\/1450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shopmobinnet.ir\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/shopmobinnet.ir\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/shopmobinnet.ir\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shopmobinnet.ir\/index.php\/wp-json\/wp\/v2\/comments?post=1450"}],"version-history":[{"count":37,"href":"https:\/\/shopmobinnet.ir\/index.php\/wp-json\/wp\/v2\/pages\/1450\/revisions"}],"predecessor-version":[{"id":1699,"href":"https:\/\/shopmobinnet.ir\/index.php\/wp-json\/wp\/v2\/pages\/1450\/revisions\/1699"}],"wp:attachment":[{"href":"https:\/\/shopmobinnet.ir\/index.php\/wp-json\/wp\/v2\/media?parent=1450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}