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