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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
{ | |
"from": 0, | |
"size": 12, | |
"query": { | |
"bool": { | |
"should": [ | |
{ | |
"bool": { | |
"should": [ | |
{ |
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 dotenv = require("dotenv"); | |
const fs = require("fs"); | |
const os = require("os"); | |
const _ = require("lodash"); | |
const unirest = require('unirest'); | |
dotenv.config({ silent: true }); | |
var API_KEY = process.env.FRESHDESK_API_KEY; | |
var FD_ENDPOINT = process.env.FRESHDESK_DOMAIN; |
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 _pointClickEvent = function(event){ | |
var openZAxis = function(){ | |
if(self.zAxisChartEnabled() === true && !self.customMapJsonEnabled()){ | |
_callZAxisChart(); | |
} | |
} | |
var startDrilldown = function(_event){ | |
if(self.mapVisualization() !== 'mapbubble'){ |
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
grunt.config.set('replace', { | |
icons8: { | |
files: { | |
'<%= config.lessDir %>/build/icons.less': '<%= config.lessDir %>/templates/icons.build.less' | |
}, | |
options: { | |
patterns: [ | |
{ | |
match: new RegExp('icons8', 'g'), | |
replacement: 'storedock' |
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
module.exports.models = { | |
updateOrCreate: function (criteria, values) { | |
var deferred = q.defer(); | |
var self = this; | |
this.findOne(criteria) | |
.then(function (data) { | |
if (!data || data === null) { | |
self.create(values) | |
.then(function (data) { | |
console.log('created'); |