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