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