chore: remove ekata feature

This commit is contained in:
Rafael Taranto 2025-05-12 09:24:35 +01:00
parent 8b3f93d8f0
commit c593b60a4e
12 changed files with 8 additions and 184 deletions

View file

@ -2,17 +2,6 @@ const _ = require('lodash/fp')
const NAME = 'MockSMS'
function getLookup (account, number) {
console.log('Looking up number: %j', number)
return new Promise((resolve, reject) => {
if (_.endsWith('666', number)) {
reject (new Error(`${exports.NAME} mocked error!`))
} else {
setTimeout(resolve, 1)
}
})
}
function sendMessage (account, rec) {
console.log('Sending SMS: %j', rec)
return new Promise((resolve, reject) => {
@ -26,6 +15,5 @@ function sendMessage (account, rec) {
module.exports = {
NAME,
sendMessage,
getLookup
sendMessage
}