This file contains 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 conversation; | |
function unassign() { | |
Front.unassign(conversation); | |
} | |
function toggleArchive() { | |
Front.toggleArchive(conversation); | |
} |
This file contains 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
function updateMessageActivity(message, date, done) { | |
message.company.listTeam(function (err, teammates) { | |
if (err) | |
return done(err); | |
var user = (message.author) ? message.author : teammates[0], | |
now = Math.floor(date/1000); | |
var intercomData = { | |
email: user.email, |
This file contains 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
{ | |
"id": 42, | |
"url": "/api/1/companies/mycompany/conversations/42", | |
"type": "conversation", | |
"message_type": "email", | |
"status": "unassigned", | |
"archived": false, | |
"trashed": false, | |
"replied": false, | |
"reacted": false, |
This file contains 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
@echo off | |
REM %1 is either staging or prod | |
REM Copy the config files and resources | |
copy %1\package.json . | |
copy %1\config.json . | |
copy ..\res\img\favicon.png . | |
copy ..\res\img\logo.png . |
This file contains 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 https = require('https'), | |
url = require('url'); | |
// your credentials | |
var apiKey = '*** YOUR API KEY ***', | |
companySlug = '*** YOUR COMPANY SLUG ***'; | |
// Build the first request to retrieve all your inboxes | |
var listInboxesOptions = { | |
host: 'webhooks.frontapp.com', |
This file contains 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
{ | |
"from": "+123456789", | |
"body": "Your sms content" | |
} |
This file contains 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
{ | |
"from": "sender@provider.com", | |
"subject": "Email's subject", | |
"text_body": "Your email content in a text format", | |
"html_body": "Your email <b>content</b> in an <i>HTML</i> format" | |
} |
This file contains 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
[ | |
{ | |
"alias": "support", | |
"name": "Support", | |
"type": "imap", | |
"address": "support@mycompany.com", | |
"links": { | |
"messages": "webhooks.frontapp.com/api/1/inboxes/support/messages", | |
"inbox": "webhooks.frontapp.com/api/1/inboxes/support" | |
} |
This file contains 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
{ | |
"name": "String - your contact full name", | |
"description": "Optional String - describe your contact", | |
"fields": [ | |
{ | |
"source": "String - either email, twitter or phone", | |
"handle": "String - email address, phone number, twitter handle as selected by the above source field" | |
} | |
], | |
"links": [ |
This file contains 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 https = require('https'); | |
var apiKey = '*** YOUR API KEY ***', | |
companySlug = '*** YOUR COMPANY SLUG ***'; | |
var data = { | |
name: 'Arthur Dent', | |
description: 'Earthman', | |
fields: [ | |
{ |
NewerOlder