Last active
February 13, 2017 14:14
-
-
Save SuperCoolFrog/13f2f1c65b43580b81cae6b00ee81d53 to your computer and use it in GitHub Desktop.
WIP
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
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; |
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
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
}); |
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
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": [] | |
} | |
] | |
}; | |
} | |
}); |
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
{ | |
"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