Skip to content

Instantly share code, notes, and snippets.

@SuperCoolFrog
Last active February 13, 2017 14:14
Show Gist options
  • Save SuperCoolFrog/13f2f1c65b43580b81cae6b00ee81d53 to your computer and use it in GitHub Desktop.
Save SuperCoolFrog/13f2f1c65b43580b81cae6b00ee81d53 to your computer and use it in GitHub Desktop.
WIP
import Ember from 'ember';
export default Ember.Component.extend({
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: 'none',
rootURL: config.rootURL
});
Router.map(function() {
this.route('demo', { path: '/' });
});
export default Router;
import Ember from 'ember';
export default Ember.Route.extend({
});
import Ember from 'ember';
export default Ember.Service.extend({
getCompleteCall() {
return {
"id": 0,
"callFlowType": "SoEligibleCompleteCall",
"accountId": 0,
"callFlowAttributes": [
{
"id": 2,
"sortOrder": 1,
"text": {
"id": 1,
"value": "Have I satisfied your concerns?"
},
"isRequired": true,
"attributeType": "YesNo",
"callFlowType": "SoEligibleCompleteCall",
"dependencies": [],
"isScript": true,
"valuesToDisplay": []
},
{
"id": 3,
"sortOrder": 2,
"text": {
"id": 2,
"value": "I see that you are eligible to participate in a standard offer program for a 7% discount on the generation portion of your bill. Would you like to hear more?"
},
"isRequired": true,
"attributeType": "Dropdown",
"callFlowType": "SoEligibleCompleteCall",
"dependencies": [],
"isScript": true,
"valuesToDisplay": [
{
"collectionId": 1,
"id": "Yes",
"value": "Yes",
"sortOrder": 0
},
{
"collectionId": 1,
"id": "HungUp",
"value": "Hung Up",
"sortOrder": 0
},
{
"collectionId": 1,
"id": "No",
"value": "No",
"sortOrder": 0
}
]
},
{
"id": 4,
"sortOrder": 3,
"text": {
"id": 3,
"value": "Please hold while I transfer you to a specialist that can help you."
},
"isRequired": false,
"attributeType": "Information",
"callFlowType": "SoEligibleCompleteCall",
"dependencies": [
{
"id": 1001,
"dependentOnId": 3,
"value": "Yes"
}
],
"isScript": true,
"valuesToDisplay": []
},
{
"id": 5,
"sortOrder": 4,
"text": {
"id": 4,
"value": "Remember to include the customer's correct bill account number in the Client when you transfer the call."
},
"isRequired": false,
"attributeType": "Information",
"callFlowType": "SoEligibleCompleteCall",
"dependencies": [
{
"id": 1002,
"dependentOnId": 3,
"value": "Yes"
}
],
"isScript": false,
"valuesToDisplay": []
}
]
};
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<br>
<br>
{
"version": "0.11.0",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.10.2",
"ember-data": "2.11.0",
"ember-template-compiler": "2.10.2",
"ember-testing": "2.10.2"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment