Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
ember-liveagent
Advanced tools
Salesforce's live agent chat integration for Ember.js applications.
Salesforce's live agent chat integration for Ember.js applications.
ember install ember-liveagent
1. You'll need to configure your liveagent
chat.
// config/environment.js
module.exports = function (environment) {
let ENV = {
'ember-liveagent': {
salesforceURL: '[SALESFORCE_URL]',
communityURL: '[COMMUNITY_URL]',
org: '[ORG]',
snapinName: '[SNAPIN_NAME]',
baseLiveAgentContentURL: '[BASE_LIVEAGENT_CONTENT_URL]',
deploymentId: '[DEPLOYMENT_ID]',
buttonId: '[BUTTON_ID]',
baseLiveAgentURL: '[BASE_LIVEAGENT_URL]',
eswLiveAgentDevName: '[ESW_LIVEAGENT_DEV_NAME]',
},
};
return ENV;
};
See the service for how the parameters are passed into embedded_svc
's init
method.
2. You can then inject the liveagent
service provided by this addon to call the boot
method which accepts optional parameters.
// app/routes/application.js
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
import config from '../config/environment'; // import the configuration
export default class ApplicationRoute extends Route {
@service liveagent;
afterModel() {
const liveagentConfig = config['ember-liveagent'];
this.liveagent.boot({
...liveAgentConfig,
settings: {
displayHelpButton: true, // default value: false
isOfflineSupportEnabled: true, // default value: false
language: 'cs', // default value: 'en'
defaultMinimizedText: 'Ask guru', // default value: 'Chat with an Expert'
loadingText: 'Just wait a second', // default value: 'Loading'
prepopulatedPrechatFields: { Email: 'example@example.com' }, // default value: {}
offlineSupportMinimizedText: 'You can contact us', // default value: 'Contact Us'
},
});
}
}
See the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
Salesforce's live agent chat integration for Ember.js applications.
We found that ember-liveagent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.