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