7661cb3b413a0ae52cbbab1ea8c65973bb7528fb
[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 _0xe21c=['Chat','Send','Contact\x20us','BOOLEAN','INTEGER','Powered\x20by\x20xCALLY','TEXT','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','Form\x20submission\x20error','Type\x20a\x20message','Thanks\x20you\x20for\x20your\x20time!','Skip','star','thumb','input','name','getDataValue','onlineForm','parse','setDataValue','stringify','textarea','Comments','offlineForm','generate','All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.','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','alternate','System','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','mandatoryDisposition','Generated\x20by\x20XCALLY\x20Motion','Meeting\x20generated\x20for\x20interaction\x20#{{interaction.id}}\x20by\x20{{agent.name}}','sequelize','exports','STRING','address','email','Agent','#011F6A','#ffffff','ENUM','rounded','squared','We\x20are\x20here!'];(function(_0x29113c,_0x91bb04){var _0x16e4a0=function(_0x33aa0f){while(--_0x33aa0f){_0x29113c['push'](_0x29113c['shift']());}};_0x16e4a0(++_0x91bb04);}(_0xe21c,0x12c));var _0xce21=function(_0x21090b,_0x39dd3b){_0x21090b=_0x21090b-0x0;var _0x3c68d7=_0xe21c[_0x21090b];return _0x3c68d7;};'use strict';var Sequelize=require(_0xce21('0x0'));var rs=require('randomstring');module[_0xce21('0x1')]={'name':{'type':Sequelize[_0xce21('0x2')],'allowNull':![]},'address':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0xce21('0x3')},'description':{'type':Sequelize[_0xce21('0x2')]},'mapKey':{'type':Sequelize['STRING'],'defaultValue':_0xce21('0x4')},'mapKeyOffline':{'type':Sequelize[_0xce21('0x2')],'defaultValue':_0xce21('0x4')},'key':{'type':Sequelize['STRING'],'allowNull':![]},'agentAlias':{'type':Sequelize['STRING'],'defaultValue':_0xce21('0x5')},'customerAlias':{'type':Sequelize['STRING'],'defaultValue':'Me'},'color':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize[_0xce21('0x2')],'allowNull':![],'defaultValue':_0xce21('0x6'),'validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize[_0xce21('0x2')],'allowNull':![],'defaultValue':_0xce21('0x7'),'validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize['INTEGER'],'defaultValue':0xf},'remote':{'type':Sequelize['STRING']},'animation':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'header_shape':{'type':Sequelize[_0xce21('0x8')](_0xce21('0x9'),_0xce21('0xa')),'defaultValue':_0xce21('0x9')},'header_online':{'type':Sequelize[_0xce21('0x2')],'defaultValue':_0xce21('0xb')},'start_chat_button':{'type':Sequelize['STRING'],'defaultValue':_0xce21('0xc')},'offline_chat_button':{'type':Sequelize[_0xce21('0x2')],'defaultValue':_0xce21('0xd')},'header_offline':{'type':Sequelize['STRING'],'defaultValue':_0xce21('0xe')},'download_transcript':{'type':Sequelize[_0xce21('0xf')],'defaultValue':!![]},'timeout':{'type':Sequelize[_0xce21('0x10')],'defaultValue':0x0},'whiteLabel':{'type':Sequelize[_0xce21('0x2')],'defaultValue':_0xce21('0x11')},'defaultWhiteLabel':{'type':Sequelize[_0xce21('0xf')],'defaultValue':!![]},'sitepic':{'type':Sequelize[_0xce21('0x12')]},'closingQuestion':{'type':Sequelize[_0xce21('0x2')],'defaultValue':_0xce21('0x13')},'formSubmitSuccessMessage':{'type':Sequelize[_0xce21('0x2')],'defaultValue':'Form\x20properly\x20submitted'},'formSubmitFailureMessage':{'type':Sequelize[_0xce21('0x2')],'defaultValue':_0xce21('0x14')},'noteTitle':{'type':Sequelize['STRING'],'defaultValue':'Note'},'placeholderMessage':{'type':Sequelize[_0xce21('0x2')],'defaultValue':_0xce21('0x15')},'closingMessage':{'type':Sequelize[_0xce21('0x2')],'defaultValue':_0xce21('0x16')},'closingMessageButton':{'type':Sequelize[_0xce21('0x2')],'defaultValue':_0xce21('0xd')},'skipMessageButton':{'type':Sequelize[_0xce21('0x2')],'defaultValue':_0xce21('0x17')},'conditionAgreement':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'enableRating':{'type':Sequelize[_0xce21('0xf')],'defaultValue':![]},'enableFeedback':{'type':Sequelize[_0xce21('0xf')],'defaultValue':![]},'enableSendButton':{'type':Sequelize[_0xce21('0xf')],'defaultValue':![]},'feedbackTitle':{'type':Sequelize[_0xce21('0x2')],'defaultValue':'Feedback'},'ratingType':{'type':Sequelize[_0xce21('0x8')](_0xce21('0x18'),_0xce21('0x19')),'defaultValue':_0xce21('0x18')},'ratingStarsNumber':{'type':Sequelize[_0xce21('0x10')],'defaultValue':0x5},'onlineForm':{'type':Sequelize['TEXT'],'defaultValue':function(){return JSON['stringify']({'items':[{'type':_0xce21('0x1a'),'variable':null,'config':{'placeholder':_0xce21('0x1b'),'type':'text','required':!![]},'props':{'title':_0xce21('0x1b'),'helpText':''}},{'type':_0xce21('0x1a'),'props':{'title':_0xce21('0x4'),'helpText':''},'config':{'required':!![],'placeholder':_0xce21('0x4'),'type':_0xce21('0x4')},'variable':null}],'fromKey':0x1});},'get':function(){return this[_0xce21('0x1c')](_0xce21('0x1d'))?JSON[_0xce21('0x1e')](this['getDataValue'](_0xce21('0x1d'))):{};},'set':function(_0x371e85){return this[_0xce21('0x1f')](_0xce21('0x1d'),JSON[_0xce21('0x20')](_0x371e85));}},'offlineForm':{'type':Sequelize['TEXT'],'defaultValue':function(){return JSON[_0xce21('0x20')]({'items':[{'type':_0xce21('0x1a'),'props':{'title':_0xce21('0x4'),'helpText':''},'config':{'required':!![],'placeholder':_0xce21('0x4'),'type':'email'},'variable':null},{'type':_0xce21('0x21'),'config':{'placeholder':_0xce21('0x22')},'props':{'title':_0xce21('0x22'),'helpText':'Leave\x20your\x20comments'}}],'fromKey':0x0});},'get':function(){return this[_0xce21('0x1c')](_0xce21('0x23'))?JSON[_0xce21('0x1e')](this['getDataValue'](_0xce21('0x23'))):{};},'set':function(_0x1f66fb){return this[_0xce21('0x1f')](_0xce21('0x23'),JSON[_0xce21('0x20')](_0x1f66fb));}},'token':{'type':Sequelize[_0xce21('0x2')],'defaultValue':function(){return rs[_0xce21('0x24')]();}},'autoclose':{'type':Sequelize[_0xce21('0xf')],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'forwardTranscript':{'type':Sequelize[_0xce21('0xf')],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize[_0xce21('0x2')]},'forwardOffline':{'type':Sequelize[_0xce21('0xf')],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize[_0xce21('0x2')]},'waitingTitle':{'type':Sequelize[_0xce21('0x2')],'defaultValue':_0xce21('0x25')},'waitingMessage':{'type':Sequelize['STRING'],'defaultValue':_0xce21('0x26')},'offlineMessageSubject':{'type':Sequelize[_0xce21('0x2')],'defaultValue':_0xce21('0x27')},'offlineMessageBody':{'type':Sequelize[_0xce21('0x2')],'defaultValue':_0xce21('0x28')},'enableUnmanagedNote':{'type':Sequelize[_0xce21('0xf')],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize[_0xce21('0x2')],'defaultValue':_0xce21('0x29')},'skipUnmanaged':{'type':Sequelize[_0xce21('0x2')],'defaultValue':_0xce21('0x17')},'sendUnmanaged':{'type':Sequelize['STRING'],'defaultValue':_0xce21('0xd')},'enableCustomerAttachment':{'type':Sequelize[_0xce21('0xf')],'defaultValue':![]},'enableCustomerCheckmarks':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentAvatar':{'type':Sequelize[_0xce21('0x12')]},'showAgentAvatar':{'type':Sequelize[_0xce21('0xf')],'defaultValue':![]},'timezone':{'type':Sequelize[_0xce21('0x2')]},'notificationTemplate':{'type':Sequelize[_0xce21('0x12')],'defaultValue':function(){return _0xce21('0x2a');}},'notificationSound':{'type':Sequelize[_0xce21('0xf')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0xce21('0xf')],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentIdentifier':{'type':Sequelize[_0xce21('0x2')],'defaultValue':_0xce21('0x2b')},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize[_0xce21('0x2')],'defaultValue':_0xce21('0x2c')},'verticalAlignment':{'type':Sequelize[_0xce21('0x10')],'defaultValue':0x1e},'messagesAlignment':{'type':Sequelize['STRING'],'defaultValue':_0xce21('0x2d')},'defaultTitle':{'type':Sequelize['STRING']},'customerAvatar':{'type':Sequelize['TEXT']},'showCustomerAvatar':{'type':Sequelize[_0xce21('0xf')],'defaultValue':![]},'messageFontSize':{'type':Sequelize[_0xce21('0x10')],'defaultValue':0xc},'backgroundColor':{'type':Sequelize[_0xce21('0x2')],'allowNull':![],'defaultValue':'#fafafa','validate':{'notEmpty':!![]}},'queueTransfer':{'type':Sequelize[_0xce21('0xf')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0xce21('0x10')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':Sequelize[_0xce21('0x2')],'defaultValue':_0xce21('0x2e')},'systemAvatar':{'type':Sequelize[_0xce21('0x12')]},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'comment':_0xce21('0x2f')},'mandatoryDisposition':{'type':Sequelize[_0xce21('0xf')],'defaultValue':![],'comment':_0xce21('0x30'),'set':function(_0x2a4857){if(!_0x2a4857)this[_0xce21('0x1f')]('mandatoryDispositionPauseId',null);this['setDataValue'](_0xce21('0x31'),_0x2a4857);}},'vidaooEscalation':{'type':Sequelize[_0xce21('0xf')],'defaultValue':![]},'vidaooApiKey':{'type':Sequelize[_0xce21('0x2')]},'vidaooTopic':{'type':Sequelize[_0xce21('0x2')],'allowNull':![],'defaultValue':_0xce21('0x32')},'vidaooNote':{'type':Sequelize['STRING'],'defaultValue':function(){return _0xce21('0x33');}},'vidaooMetadata':{'type':Sequelize['TEXT'],'defaultValue':null},'openNewInteraction':{'type':Sequelize[_0xce21('0xf')],'defaultValue':![],'allowNull':!![]},'subjectOffline':{'type':Sequelize[_0xce21('0x12')]}};