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
[ | |
{ | |
"contactId": "01FEX1KCD8YMTH0CXHWQCG116F", | |
"message": "this is a message for a contact" | |
}, | |
{ | |
"contactId": "01FEX1KCD8YMTH0CXHWQCG116F", | |
"message": "this is another message for a contact" | |
}, | |
{ |
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
define(["../../src/components","code-plug","graphql-tag","lodash","react","react-apollo","rsuite","use-http"],(e,n,t,o,r,a,i,l)=>(()=>{var s={631:(e,n,t)=>{"use strict";t.r(n);var o=t(297),r=t.n(o),a=t(399),i=t(186),l=t(222),s=t(74),c=t(875),u=t.n(c),p=t(939),d=t.n(p),m=t(804),g=t.n(m);function f(){}const y=function(e,n){var t,o=0,r=1,a={},i=(n=n||{}).maxAttempts||1/0;return a.open=function(){(t=new WebSocket(e,n.protocols||[])).onmessage=n.onmessage||f,t.onopen=function(e){(n.onopen||f)(e),o=0},t.onclose=function(e){1e3===e.code||1001===e.code||1005===e.code||a.reconnect(e),(n.onclose||f)(e)},t.onerror=function(e){e&&"ECONNREFUSED"===e.code?a.reconnect(e):(n.onerror||f)(e)}},a.reconnect=function(e){r&&o++<i?r=setTimeout((function(){(n.onreconnect||f)(e),a.open()}),n.timeout||1e3):(n.onmaximum||f)(e)},a.json=function(e){t.send(JSON.stringify(e))},a.send=function(e){t.send(e)},a.close=function(e,n){r=clearTimeout(r),t.close(e||1e3,n)},a.open(),a},h=new function({url:e,maxAttempts:n=10,timeout:t=5e3}){let o={}; |
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":"4ae37f7c.a3b2d","type":"subflow","name":"Commands","info":"Show some predefined contents defined in **Mission Control** after some command-like messages from the user (for example `/privacy`, `/terms`, etc).\n\nEdit the content [here](/mc/configuration-commands).","category":"RedBot Flows","in":[{"x":60,"y":120,"wires":[{"id":"713c0557.e8f73c"}]}],"out":[{"x":1380,"y":100,"wires":[{"id":"73981e80.0fa4d","port":0}]},{"x":840,"y":300,"wires":[{"id":"713c0557.e8f73c","port":1},{"id":"f105aa1c.ddeba8","port":1},{"id":"23b96bda.f03d04","port":1}]}],"env":[],"color":"#ff6633","outputLabels":["Command Found","Pass Thru"],"icon":"font-awesome/fa-terminal"},{"id":"8e5ea84d.c2ba28","type":"mc-configuration","z":"4ae37f7c.a3b2d","namespace":"commands","debug":true,"x":170,"y":240,"wires":[[]]},{"id":"713c0557.e8f73c","type":"chatbot-rules","z":"4ae37f7c.a3b2d","name":"","rules":[{"type":"anyCommand"},{"type":"catchAll"}],"outputs":2,"x":230,"y":120,"wires":[["f105aa1c.ddeba8"],[]]},{"id":"f105aa1c.ddeba8","type" |
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
define(["../../../src/components","../../src/components","code-plug","lodash","prop-types","react","rsuite"],(e,n,t,a,o,r,l)=>(()=>{"use strict";var i={647:(e,n,t)=>{t.r(n);var a=t(297),o=t.n(a),r=t(399),l=t(186),i=t(222),s=t(738),u=t(804),m=t.n(u);const{StringType:c,ArrayType:p,ObjectType:d,DateType:g}=i.Schema.Types,f=i.Schema.Model({openings:p().of(d().shape({start:g().isRequired("Specify starting hour"),end:g().isRequired("Specify ending hour"),range:c().isRequired("Select a range for opening hours")})).addRule(e=>m().isArray(e)&&0!==e.length,"Specify at least an opening hour")});var y=t(229),h=t.n(y);const b=[{value:"mo",label:"Monday"},{value:"tu",label:"Tuesday"},{value:"we",label:"Wednesday"},{value:"th",label:"Thursday"},{value:"fr",label:"Friday"},{value:"sa",label:"Saturday"},{value:"su",label:"Sunday"},{value:"mo-fr",label:"Monday - Friday"},{value:"mo-sa",label:"Monday - Saturday"},{value:"mo-su",label:"Monday - Sunday"},{value:"sa-su",label:"Saturday - Sunday"}],v=e=>{const n=new Date(e);return( |
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
define(["../../../src/components","../../src/components","code-plug","react","rsuite"],(e,t,n,l,o)=>(()=>{"use strict";var r={849:(e,t,n)=>{n.r(t);var l=n(297),o=n.n(l),r=n(399),a=n(186),c=n(222),s=n(738);const{NodeRedNode:u,SlugHelp:i,TypeCommand:m}=a.HelpElements;(0,r.plug)("sidebar",null,{permission:"configure",id:"configuration",label:"Configuration",icon:"cog",options:[{id:"welcome-message",label:"Welcome Message",url:"/welcome"}]}),(0,r.plug)("pages",(0,a.withConfigurationPage)("survey",({value:e,onSubmit:t=(()=>{}),disabled:n=!1})=>{const[r,a]=(0,l.useState)(e),[u,i]=(0,l.useState)(null),m=(0,l.useRef)(null);return o().createElement("div",null,o().createElement(c.Form,{disabled:!0,formValue:r,formError:u,ref:m,checkTrigger:"none",layout:"vertical",fluid:!0,onChange:e=>{a(e),i(null)},onCheck:e=>{i(e)}},o().createElement(l.Fragment,null,o().createElement(c.FormGroup,null,o().createElement(c.ControlLabel,null,"Welcome message",o().createElement(c.HelpBlock,{tooltip:!0},"Select the content to show when the |
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
define(["../../../src/components","../../src/components","code-plug","lodash","prop-types","react","rsuite"],(e,t,o,n,a,r,l)=>(()=>{"use strict";var m={499:(e,t,o)=>{o.r(t),o.d(t,{default:()=>S});var n=o(297),a=o.n(n),r=o(399),l=o(186),m=o(222),s=o(738),c=o(804),i=o.n(c);const{StringType:u,ArrayType:d,ObjectType:p,DateType:g}=m.Schema.Types,f=m.Schema.Model({commands:d().of(p().shape({command:u().isRequired("Specify the command").addRule(e=>e.startsWith("/"),'Command should start with "/"'),slug:u().isRequired("Specifig a slug (shortcut) for a content")})).addRule(e=>{const t=e.map(e=>e.command);return i().uniq(t).length===t.length},"Some contents have the same command")});var b=o(229),h=o.n(b);const y=({value:e,onChange:t,disabled:o=!1})=>a().createElement(m.FlexboxGrid,{justify:"space-between"},a().createElement(m.FlexboxGrid.Item,{colspan:8},a().createElement(m.Input,{value:e.command,placeholder:"/command",onChange:o=>t({...e,command:o})})),a().createElement(m.FlexboxGrid.Item,{colspan:15},a().createElemen |
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
console.log('Test plugin'); |
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
const { Button, Placeholder } = RSuite; | |
const MyPage = () => { | |
return ( | |
<div> | |
<br /> | |
Bella page | |
<br /> |
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
const { Button, Paragraph } = RSuite; | |
const MyPage = () => { | |
return ( | |
<div> | |
<br /> | |
Bella page |
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 poller = new Poller(); | |
poller.intervals([1000, 5000, 10000]) | |
.checkback(function(callback) { | |
// could be anything asynchronous | |
$.getJSON('/is/server/ready', function(response) { | |
if (response.ready) { | |
callback(true); | |
} else { | |
else callback(false); | |
} |
NewerOlder