Built motion from commit a61a4a20.|2.5.46
[motion2.git] / server / api / chatWebsite / chatWebsite.attributes.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x99f1=['Form\x20properly\x20submitted','Form\x20submission\x20error','Note','Thanks\x20you\x20for\x20your\x20time!','Send','Skip','Feedback','star','TEXT','stringify','input','text','name','onlineForm','setDataValue','Comments','Leave\x20your\x20comments','getDataValue','offlineForm','parse','generate','Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.','New\x20offline\x20message\x20from\x20websiteName','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','Your\x20request\x20has\x20not\x20been\x20processed.','Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}','website_alias','bottom_right','CHAT','#fafafa','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','mandatoryDispositionPauseId','mandatoryDisposition','Meeting\x20generated\x20for\x20interaction\x20#{{interaction.id}}\x20by\x20{{agent.name}}','sequelize','randomstring','STRING','address','email','Agent','#011F6A','#ffffff','BOOLEAN','ENUM','rounded','INTEGER','Powered\x20by\x20xCALLY','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?'];(function(_0x47b995,_0x32abfa){var _0x38898b=function(_0x3ed3eb){while(--_0x3ed3eb){_0x47b995['push'](_0x47b995['shift']());}};_0x38898b(++_0x32abfa);}(_0x99f1,0x1a2));var _0x199f=function(_0xbd08b4,_0x4790ed){_0xbd08b4=_0xbd08b4-0x0;var _0x314f1e=_0x99f1[_0xbd08b4];return _0x314f1e;};'use strict';var Sequelize=require(_0x199f('0x0'));var rs=require(_0x199f('0x1'));module['exports']={'name':{'type':Sequelize[_0x199f('0x2')],'allowNull':![]},'address':{'type':Sequelize[_0x199f('0x2')],'allowNull':![],'unique':_0x199f('0x3')},'description':{'type':Sequelize[_0x199f('0x2')]},'mapKey':{'type':Sequelize[_0x199f('0x2')],'defaultValue':'email'},'mapKeyOffline':{'type':Sequelize[_0x199f('0x2')],'defaultValue':_0x199f('0x4')},'key':{'type':Sequelize[_0x199f('0x2')],'allowNull':![]},'agentAlias':{'type':Sequelize[_0x199f('0x2')],'defaultValue':_0x199f('0x5')},'customerAlias':{'type':Sequelize[_0x199f('0x2')],'defaultValue':'Me'},'color':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x199f('0x6'),'validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize[_0x199f('0x2')],'allowNull':![],'defaultValue':_0x199f('0x6'),'validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize[_0x199f('0x2')],'allowNull':![],'defaultValue':_0x199f('0x7'),'validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize['INTEGER'],'defaultValue':0xf},'remote':{'type':Sequelize['STRING']},'animation':{'type':Sequelize[_0x199f('0x8')],'defaultValue':!![]},'header_shape':{'type':Sequelize[_0x199f('0x9')](_0x199f('0xa'),'squared'),'defaultValue':'rounded'},'header_online':{'type':Sequelize['STRING'],'defaultValue':'We\x20are\x20here!'},'start_chat_button':{'type':Sequelize[_0x199f('0x2')],'defaultValue':'Chat'},'offline_chat_button':{'type':Sequelize[_0x199f('0x2')],'defaultValue':'Send'},'header_offline':{'type':Sequelize[_0x199f('0x2')],'defaultValue':'Contact\x20us'},'download_transcript':{'type':Sequelize[_0x199f('0x8')],'defaultValue':!![]},'timeout':{'type':Sequelize[_0x199f('0xb')],'defaultValue':0x0},'whiteLabel':{'type':Sequelize['STRING'],'defaultValue':_0x199f('0xc')},'defaultWhiteLabel':{'type':Sequelize[_0x199f('0x8')],'defaultValue':!![]},'sitepic':{'type':Sequelize['TEXT']},'closingQuestion':{'type':Sequelize[_0x199f('0x2')],'defaultValue':_0x199f('0xd')},'formSubmitSuccessMessage':{'type':Sequelize['STRING'],'defaultValue':_0x199f('0xe')},'formSubmitFailureMessage':{'type':Sequelize[_0x199f('0x2')],'defaultValue':_0x199f('0xf')},'noteTitle':{'type':Sequelize[_0x199f('0x2')],'defaultValue':_0x199f('0x10')},'placeholderMessage':{'type':Sequelize[_0x199f('0x2')],'defaultValue':'Type\x20a\x20message'},'closingMessage':{'type':Sequelize[_0x199f('0x2')],'defaultValue':_0x199f('0x11')},'closingMessageButton':{'type':Sequelize[_0x199f('0x2')],'defaultValue':_0x199f('0x12')},'skipMessageButton':{'type':Sequelize[_0x199f('0x2')],'defaultValue':_0x199f('0x13')},'conditionAgreement':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'enableRating':{'type':Sequelize[_0x199f('0x8')],'defaultValue':![]},'enableFeedback':{'type':Sequelize[_0x199f('0x8')],'defaultValue':![]},'enableSendButton':{'type':Sequelize[_0x199f('0x8')],'defaultValue':![]},'feedbackTitle':{'type':Sequelize[_0x199f('0x2')],'defaultValue':_0x199f('0x14')},'ratingType':{'type':Sequelize[_0x199f('0x9')](_0x199f('0x15'),'thumb'),'defaultValue':_0x199f('0x15')},'ratingStarsNumber':{'type':Sequelize[_0x199f('0xb')],'defaultValue':0x5},'onlineForm':{'type':Sequelize[_0x199f('0x16')],'defaultValue':function(){return JSON[_0x199f('0x17')]({'items':[{'type':_0x199f('0x18'),'variable':null,'config':{'placeholder':'name','type':_0x199f('0x19'),'required':!![]},'props':{'title':_0x199f('0x1a'),'helpText':''}},{'type':_0x199f('0x18'),'props':{'title':_0x199f('0x4'),'helpText':''},'config':{'required':!![],'placeholder':_0x199f('0x4'),'type':_0x199f('0x4')},'variable':null}],'fromKey':0x1});},'get':function(){return this['getDataValue'](_0x199f('0x1b'))?JSON['parse'](this['getDataValue'](_0x199f('0x1b'))):{};},'set':function(_0x18a3e0){return this[_0x199f('0x1c')]('onlineForm',JSON[_0x199f('0x17')](_0x18a3e0));}},'offlineForm':{'type':Sequelize['TEXT'],'defaultValue':function(){return JSON[_0x199f('0x17')]({'items':[{'type':'input','props':{'title':_0x199f('0x4'),'helpText':''},'config':{'required':!![],'placeholder':_0x199f('0x4'),'type':_0x199f('0x4')},'variable':null},{'type':'textarea','config':{'placeholder':_0x199f('0x1d')},'props':{'title':_0x199f('0x1d'),'helpText':_0x199f('0x1e')}}],'fromKey':0x0});},'get':function(){return this[_0x199f('0x1f')](_0x199f('0x20'))?JSON[_0x199f('0x21')](this[_0x199f('0x1f')](_0x199f('0x20'))):{};},'set':function(_0x5c93a2){return this['setDataValue'](_0x199f('0x20'),JSON[_0x199f('0x17')](_0x5c93a2));}},'token':{'type':Sequelize[_0x199f('0x2')],'defaultValue':function(){return rs[_0x199f('0x22')]();}},'autoclose':{'type':Sequelize[_0x199f('0x8')],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize[_0x199f('0x8')],'defaultValue':![]},'forwardTranscript':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize['STRING']},'forwardOffline':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize['STRING']},'waitingTitle':{'type':Sequelize[_0x199f('0x2')],'defaultValue':'All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.'},'waitingMessage':{'type':Sequelize[_0x199f('0x2')],'defaultValue':_0x199f('0x23')},'offlineMessageSubject':{'type':Sequelize['STRING'],'defaultValue':_0x199f('0x24')},'offlineMessageBody':{'type':Sequelize[_0x199f('0x2')],'defaultValue':_0x199f('0x25')},'enableUnmanagedNote':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize['STRING'],'defaultValue':_0x199f('0x26')},'skipUnmanaged':{'type':Sequelize[_0x199f('0x2')],'defaultValue':_0x199f('0x13')},'sendUnmanaged':{'type':Sequelize['STRING'],'defaultValue':_0x199f('0x12')},'enableCustomerAttachment':{'type':Sequelize[_0x199f('0x8')],'defaultValue':![]},'enableCustomerCheckmarks':{'type':Sequelize[_0x199f('0x8')],'defaultValue':![]},'agentAvatar':{'type':Sequelize['TEXT']},'showAgentAvatar':{'type':Sequelize[_0x199f('0x8')],'defaultValue':![]},'timezone':{'type':Sequelize[_0x199f('0x2')]},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){return _0x199f('0x27');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x199f('0x8')],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize[_0x199f('0x8')],'defaultValue':![]},'agentIdentifier':{'type':Sequelize['STRING'],'defaultValue':_0x199f('0x28')},'waitForTheAssignedAgent':{'type':Sequelize[_0x199f('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize[_0x199f('0x2')],'defaultValue':_0x199f('0x29')},'verticalAlignment':{'type':Sequelize[_0x199f('0xb')],'defaultValue':0x1e},'labelText':{'type':Sequelize[_0x199f('0x2')],'defaultValue':_0x199f('0x2a')},'messagesAlignment':{'type':Sequelize[_0x199f('0x2')],'defaultValue':'alternate'},'defaultTitle':{'type':Sequelize['STRING']},'customerAvatar':{'type':Sequelize['TEXT']},'showCustomerAvatar':{'type':Sequelize[_0x199f('0x8')],'defaultValue':![]},'messageFontSize':{'type':Sequelize[_0x199f('0xb')],'defaultValue':0xc},'backgroundColor':{'type':Sequelize[_0x199f('0x2')],'allowNull':![],'defaultValue':_0x199f('0x2b'),'validate':{'notEmpty':!![]}},'queueTransfer':{'type':Sequelize[_0x199f('0x8')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x199f('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x199f('0x8')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x199f('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':Sequelize[_0x199f('0x2')],'defaultValue':'System'},'systemAvatar':{'type':Sequelize[_0x199f('0x16')]},'mandatoryDispositionPauseId':{'type':Sequelize[_0x199f('0xb')],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x199f('0x8')],'defaultValue':![],'comment':_0x199f('0x2c'),'set':function(_0x2c52cf){if(!_0x2c52cf)this['setDataValue'](_0x199f('0x2d'),null);this[_0x199f('0x1c')](_0x199f('0x2e'),_0x2c52cf);}},'vidaooEscalation':{'type':Sequelize[_0x199f('0x8')],'defaultValue':![]},'vidaooApiKey':{'type':Sequelize['STRING']},'vidaooTopic':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'Generated\x20by\x20XCALLY\x20Motion'},'vidaooNote':{'type':Sequelize[_0x199f('0x2')],'defaultValue':function(){return _0x199f('0x2f');}},'vidaooMetadata':{'type':Sequelize[_0x199f('0x16')],'defaultValue':null},'openNewInteraction':{'type':Sequelize[_0x199f('0x8')],'defaultValue':![],'allowNull':!![]},'subjectOffline':{'type':Sequelize['TEXT']}};