# v1.16.9 ## Feature list * add reaction supporting (Facebook => Rake user app) * quoted message (backend) * Contact Center Billing Requirements (backend) ## Services to deploy * admin service (Max) * core service (Mykola) - done * main worker service (Mykola) - done * rake user app module (Mykola) - done * NICE inContact module (Mykola) - done * system statistic (Anton) * api service (Mykola) -- done * user app worker (Mykola) - done ## DB ### System configuration Update unversal session template ``` (Mykola) - done db.getCollection("systemConfigs").update({ nodeEnv: 'uat' }, { $set: { "templates.admin.invitation.universalPlatform": { "templateId": "d-36c03f16e2b84d2ea773342bb1d47b8b", "header": { "logo": "", "title": "Join the channel" }, "invitor_entity": { "firstName": "Workspace", "lastName": "Administrator" }, "receipt": true, "body": { "p1": "You're invited to join the {{sessions.channel.name}} channel, a private universal messaging channel.", "p2": "Rake hosts Universal Channels so everyone can use their preferred messaging app and collaborate in real-time. You may join this channel via one of the supported messaging platforms listed below.", "join-header": "This invitation comes from {{invitor_entity.firstName}} {{invitor_entity.lastName}} who is a member of the {{workspace.name}} workspace.", "channel_inviteeEmail": "jim.wood@rake.ai", "channelName-header": "Join the:", "channelName": "{{channelName}}", "p3": "If you need further assistance, please contact {{invitor_entity.firstName}} {{invitor_entity.lastName}} via email at {{invitor_entity.email}}.", "signature": "Let's get the conversation started!", "signatureImage": "http://cdn.mcauto-images-production.sendgrid.net/c57a7072e7f7ee63/a96ef31e-7db3-4073-b972-1687188cf8fa/194x36.png" }, "universalPlatforms": [ { "platformId": 8, "platform_genericName": "Rake", "platform_buttonText": "", "platform_genericLogo": "http://cdn.mcauto-images-production.sendgrid.net/c57a7072e7f7ee63/98545032-0e47-4b8b-8c1b-0ff6bb63a9de/20x20.png", "joinPageLink": "https://rake.page.link/abcdef-rake", "isRakeApp": true }, { "platformId": 3, "platform_genericName": "Facebook Messenger", "platform_buttonText": "", "platform_genericLogo": "http://cdn.mcauto-images-production.sendgrid.net/c57a7072e7f7ee63/85547599-8184-4468-bd4a-08e637f980e8/20x20.png", "joinPageLink": "https://rake.page.link/abcdef-fbmessenger" }, { "platformId": 12, "platform_genericName": "WhatsApp", "platform_buttonText": "", "platform_genericLogo": "http://cdn.mcauto-images-production.sendgrid.net/c57a7072e7f7ee63/c3371d22-63ec-4575-905d-f7bb755d6244/20x20.png", "joinPageLink": "https://rake.page.link/abcdef-whatsapp" }, { "platformId": 1, "platform_genericName": "SMS", "platform_buttonText": "+1 602 555 1212", "platform_genericLogo": "http://cdn.mcauto-images-production.sendgrid.net/c57a7072e7f7ee63/a25bc7e6-2beb-4ed9-95fb-cf0c9e9c3a6b/20x20.png", "joinPageLink": "https://rake.page.link/abcdef1234-sms16025551212" } ], "footer": { "company": "Rake LLC | 19740 Governors Highway, Suite 115 | Flossmoor, IL 60422 USA", "website": "https://rake.ai" } } } }) ``` ## Mongo triggers * sessions * ## Facebook issues > Repo: mongo scripts > Run command: ```node mongo-db-scripts/1.16.9/facebook-workspaces.js``` -- done ## Contact Billing Center Insert events -- done ``` { "_id" : ObjectId("615ffd6cb2f21d69806987ec"), "name" : "Selected session", "systemEventId" : -185, "systemReference" : "session.select" }, /* 2 createdAt:10/8/2021, 11:12:28 AM*/ { "_id" : ObjectId("615ffd6cb2f21d69806987eb"), "name" : "Unselected session", "systemEventId" : -184, "systemReference" : "session.unselect" }, ``` ## Workspace > deploy rabbitmq-events-handler - 1.16.9 (Mykola) -- done > deploy redis-rabbitmq - develop => 1.16.9 (Mykola) -- done ## Universal channels (billing events) > event trigger 1.16.9 -- done Add new events -- done ``` { "_id" : ObjectId("6156f3fad3597c2eb436b66d"), "systemEventId" : -183, "name" : "Disable platform connectors by billings", "systemReference" : "billings.disablePlatformConnectors" }, ``` Add new event triggers -- done ``` { "_id" : ObjectId("615c25e5056e384d34038272"), "eventTriggerId" : -242, "description" : "Disable platform by billings.", "eventIds" : [ -183 ], "filters" : [ ], "actions" : [ { "id" : 7, "arguments" : [ { "function" : "{function.setData({rawMessage.data}).forEach(%40self,elem%41 => {elem.platformWorkspaceIds.forEach%40id => {self._platformWorkspaceAction%40{ method: 'PATCH', uri: '{adminUrl}', platformId: elem.platformId, platformWorkspaceId: id, action: 'disableBilling', token: '0.lo22gendj5i' }%41 }%41 }) }" } ] } ], "customFilter" : "" }, { "_id" : ObjectId("615d5e25512aee3f084f5c0f"), "eventTriggerId" : -243, "description" : "Channel archived in session.", "eventIds" : [ -131 ], "filters" : [ ], "actions" : [ { "id" : 7, "arguments" : [ { "function" : "{function.setData({rawMessage.data}).forEach(%40self,elem%41 => {elem.platformWorkspaceIds.forEach%40id => {self._platformWorkspaceAction%40{ method: 'DELETE', uri: '{adminUrl}', platformId: elem.platformId, platformWorkspaceId: id, token: '0.lo22gendj5i' }%41 }%41 }) }" } ] }, { "id" : 7, "arguments" : [ { "function" : "{function.setData({rawMessage.entities}).filter(%40elem%41 => elem.platformId === 8).request({ method: 'DELETE', uri: '{serverUrl}/sessions/{rawMessage.sessionId}/entities', token: '0.lo22gendj5i', body: { entities: result.data.map%40one => one.entityId%41 }}) }" } ] } ], "customFilter" : "" }, ```