var user = require(["CurrentUserInitialData"]).USER_ID;
var fb_dtsg = require(["DTSGInitData"]).token;
var businessID = require(["BusinessUnifiedNavigationContext"]).businessID;
fetch("https://business.facebook.com/api/graphql/", {
"headers": {
"accept": "*/*",
"accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
"content-type": "application/x-www-form-urlencoded",
"origin": "https://business.facebook.com",
"priority": "u=1, i",
"sec-ch-prefers-color-scheme": "light",
"sec-ch-ua": "\"Google Chrome\";v=\"131\", \"Chromium\";v=\"131\", \"Not_A Brand\";v=\"24\"",
"sec-ch-ua-full-version-list": "\"Google Chrome\";v=\"131.0.6778.265\", \"Chromium\";v=\"131.0.6778.265\", \"Not_A Brand\";v=\"24.0.0.0\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-model": "\"\"",
"sec-ch-ua-platform": "\"Windows\"",
"sec-ch-ua-platform-version": "\"10.0.0\"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
"x-asbd-id": "129477",
"x-fb-friendly-name": "BizKitSetBMCOptinStatusMutation"
},
"body": "av="+user+"&__usid=6-Tsqkyy8w0tcok%3APsqkyy71sb03kb%3A0-Asqkyum1wsl3oc-RV%3D6%3AF%3D&__aaid=0&__bid="+businessID+"&__user="+user+"&__a=1&__req=14&__hs=20112.HYP%3Abizweb_comet_pkg.2.1.0.0.0&dpr=1&__ccg=EXCELLENT&__rev=1019554632&__s=rdueq6%3Agijvxo%3A75aros&__hsi=7463370504534184896&__dyn=7xeUmxa2C6onwkECbwKBAgc9o9E6u5U4e0yoW3qi4EowNwnof8bo19oaUO4o2vw6_CyU4a1Zg4K0RUb87C2m3K2y11wBz81bo4a9DwnU2lwv89k2C1FwRwEwiUmw9O48comwkE-UbE7i4UaEW2G261fwwwJK1qxa1ozEjU4Wdwoo4S5ayocE3BwMzUbVEHyU8U3ywbS1LwTwNAK2q0z8co9U4S7E6C13www4kxW1owmUaE2mwww&__csr=gihqdZlddlOjMBfqbE9tbaF2Oh28phfZBOiAuG4pcWluF5ZZvFWiFFuPBWaZb-huvDqtqOdRjQN5bRHhlFkj-jpppuWqxum8vRG8DFAlWAiFrG-qiF5dO5F9biGypGRHCGLaZ9ejH8bFF5GmdCBFateDGGRA-nBVrnBK9BATBy8yleXCpqJqoZdHACYJBhEC4nCyWXzHCByEyh1GuegzGQ8igWuAQF4aKu-WQUzgSiaAAhQFqDVohLiyoCETG8wwggHxe9y8hxedBx5oGqUpz8eE8ougLxi2yaxaEKmbyryouhUtAwioC5Fd6K9DwAwExC12xqmawpU6-E4C2y8yUdqBwn41YG1dgeE1zhaxRi4i98AYf04wg2uAhKAWxi0duQ0bYw1YC36gAEd8dFE2fwcq0sV124eaB82KCJo3gwFU2nG0aLw2yawvU1C85alw9Wm0D81dEGlwkUaFqw0pjo04Nba04Pi0zCx501I-O094w3nz40iOu0fqw1ruIC0bJg08BU0fJ84i68jw1oGO0eO0Co4C0kK08Ew8Nxi7U2AU4eE0k6g1EVEkG22m08kwf5a4o8S0sG481R9Qaw7mw&__comet_req=11&fb_dtsg="+fb_dtsg+"&jazoest=25584&lsd=6qoqmO_Si16G0ouyAtf-t1&__spin_r=1019554632&__spin_b=trunk&__spin_t=1737701358&__jssesw=1&fb_api_caller_class=RelayModern&fb_api_req_friendly_name=BizKitSetBMCOptinStatusMutation&variables=%7B%22input%22%3A%7B%22client_mutation_id%22%3A%224%22%2C%22actor_id%22%3A%22"+user+"%22%2C%22bmc_optin_status%22%3A%22OPT_OUT%22%7D%7D&server_timestamps=true&doc_id=8398852550167223",
"method": "POST"
}).then(e => e.text()).then(e => {console.log(e); window.open('https://business.facebook.com/settings/?business_id='+businessID+'&enable_redirection=0', '_blank');});