This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #cloud-config | |
| coreos: | |
| units: | |
| - name: docker.service | |
| command: start | |
| - name: install-docker-compose.service | |
| command: start | |
| content: | | |
| [Unit] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var areas = {"type":"FeatureCollection","features":[{"type":"Feature","properties":{"Name":"#mg_bh_barreiro"},"geometry":{"type":"Polygon","coordinates":[[[-44.00614757282236,-19.95520180429213],[-44.00628218543212,-19.95517229431444],[-44.00635903346772,-19.95515637311685],[-44.00641274895099,-19.95514763986715],[-44.00651447278684,-19.95513556170971],[-44.00659700492775,-19.95513051287263],[-44.00667945679085,-19.95513829165888],[-44.00675013043528,-19.95515205721261],[-44.00686715471843,-19.95515036307723],[-44.00700544895295,-19.95514951054416],[-44.00721461402854,-19.95515610065901],[-44.00736910403056,-19.95517367719091],[-44.00752347574034,-19.95519757664618],[-44.00766483061535,-19.95522393269852],[-44.00786395457513,-19.95526118113073],[-44.00803492160375,-19.95529005118494],[-44.00821123972339,-19.95533268247427],[-44.00867984844057,-19.95540811284284],[-44.00888171042394,-19.95544862763712],[-44.00918791317056,-19.95546180985582],[-44.00946722870222,-19.95545252783466],[-44.0096104880201,-19.955438 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require('express') | |
| const request = require('request') | |
| const bodyParser = require('body-parser') | |
| const app = express() | |
| const port = process.env.PORT | |
| app.use(bodyParser.urlencoded({ extended: false })) | |
| app.use(bodyParser.json()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const ACCOUNT_ID = 11; // ID da conta | |
| const USER_TOKEN = ''; // Token de usuário | |
| const API_URL = ''; // URL do Chatwoot | |
| async function getContacts(page = 1) { | |
| const query = new URLSearchParams({ | |
| page, | |
| }); | |
| const response = await fetch( |
OlderNewer