Built motion from commit (unavailable).|2.5.4
[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 _0x885a=['thumb','stringify','name','input','getDataValue','parse','onlineForm','textarea','Comments','offlineForm','setDataValue','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:','Skip','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','mandatoryDispositionPauseId','mandatoryDisposition','randomstring','exports','STRING','email','Agent','#011F6A','INTEGER','BOOLEAN','ENUM','rounded','squared','We\x20are\x20here!','Chat','Send','Contact\x20us','Powered\x20by\x20xCALLY','TEXT','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','Form\x20submission\x20error','Note','star'];(function(_0x12d63a,_0x29d68c){var _0x3a5889=function(_0x482b76){while(--_0x482b76){_0x12d63a['push'](_0x12d63a['shift']());}};_0x3a5889(++_0x29d68c);}(_0x885a,0x180));var _0xa885=function(_0x21a9d9,_0x4d5ac8){_0x21a9d9=_0x21a9d9-0x0;var _0x46adce=_0x885a[_0x21a9d9];return _0x46adce;};'use strict';var Sequelize=require('sequelize');var rs=require(_0xa885('0x0'));module[_0xa885('0x1')]={'name':{'type':Sequelize[_0xa885('0x2')],'allowNull':![]},'address':{'type':Sequelize[_0xa885('0x2')],'allowNull':![],'unique':'address'},'description':{'type':Sequelize[_0xa885('0x2')]},'mapKey':{'type':Sequelize[_0xa885('0x2')],'defaultValue':_0xa885('0x3')},'mapKeyOffline':{'type':Sequelize[_0xa885('0x2')],'defaultValue':_0xa885('0x3')},'key':{'type':Sequelize[_0xa885('0x2')],'allowNull':![]},'agentAlias':{'type':Sequelize['STRING'],'defaultValue':_0xa885('0x4')},'customerAlias':{'type':Sequelize[_0xa885('0x2')],'defaultValue':'Me'},'color':{'type':Sequelize[_0xa885('0x2')],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize[_0xa885('0x2')],'allowNull':![],'defaultValue':_0xa885('0x5'),'validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize[_0xa885('0x2')],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize[_0xa885('0x6')],'defaultValue':0xf},'remote':{'type':Sequelize[_0xa885('0x2')]},'animation':{'type':Sequelize[_0xa885('0x7')],'defaultValue':!![]},'header_shape':{'type':Sequelize[_0xa885('0x8')](_0xa885('0x9'),_0xa885('0xa')),'defaultValue':_0xa885('0x9')},'header_online':{'type':Sequelize['STRING'],'defaultValue':_0xa885('0xb')},'start_chat_button':{'type':Sequelize[_0xa885('0x2')],'defaultValue':_0xa885('0xc')},'offline_chat_button':{'type':Sequelize[_0xa885('0x2')],'defaultValue':_0xa885('0xd')},'header_offline':{'type':Sequelize[_0xa885('0x2')],'defaultValue':_0xa885('0xe')},'download_transcript':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'timeout':{'type':Sequelize[_0xa885('0x6')],'defaultValue':0x0},'whiteLabel':{'type':Sequelize[_0xa885('0x2')],'defaultValue':_0xa885('0xf')},'defaultWhiteLabel':{'type':Sequelize[_0xa885('0x7')],'defaultValue':!![]},'sitepic':{'type':Sequelize[_0xa885('0x10')]},'closingQuestion':{'type':Sequelize['STRING'],'defaultValue':_0xa885('0x11')},'formSubmitSuccessMessage':{'type':Sequelize[_0xa885('0x2')],'defaultValue':'Form\x20properly\x20submitted'},'formSubmitFailureMessage':{'type':Sequelize[_0xa885('0x2')],'defaultValue':_0xa885('0x12')},'noteTitle':{'type':Sequelize['STRING'],'defaultValue':_0xa885('0x13')},'placeholderMessage':{'type':Sequelize[_0xa885('0x2')],'defaultValue':'Type\x20a\x20message'},'closingMessage':{'type':Sequelize[_0xa885('0x2')],'defaultValue':'Thanks\x20you\x20for\x20your\x20time!'},'closingMessageButton':{'type':Sequelize[_0xa885('0x2')],'defaultValue':_0xa885('0xd')},'skipMessageButton':{'type':Sequelize[_0xa885('0x2')],'defaultValue':'Skip'},'conditionAgreement':{'type':Sequelize[_0xa885('0x7')],'defaultValue':![]},'enableRating':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'enableFeedback':{'type':Sequelize[_0xa885('0x7')],'defaultValue':![]},'enableSendButton':{'type':Sequelize[_0xa885('0x7')],'defaultValue':![]},'feedbackTitle':{'type':Sequelize[_0xa885('0x2')],'defaultValue':'Feedback'},'ratingType':{'type':Sequelize[_0xa885('0x8')](_0xa885('0x14'),_0xa885('0x15')),'defaultValue':'star'},'ratingStarsNumber':{'type':Sequelize[_0xa885('0x6')],'defaultValue':0x5},'onlineForm':{'type':Sequelize[_0xa885('0x10')],'defaultValue':function(){return JSON[_0xa885('0x16')]({'items':[{'type':'input','variable':null,'config':{'placeholder':_0xa885('0x17'),'type':'text','required':!![]},'props':{'title':_0xa885('0x17'),'helpText':''}},{'type':_0xa885('0x18'),'props':{'title':'email','helpText':''},'config':{'required':!![],'placeholder':_0xa885('0x3'),'type':_0xa885('0x3')},'variable':null}],'fromKey':0x1});},'get':function(){return this[_0xa885('0x19')]('onlineForm')?JSON[_0xa885('0x1a')](this[_0xa885('0x19')]('onlineForm')):{};},'set':function(_0x39ae58){return this['setDataValue'](_0xa885('0x1b'),JSON['stringify'](_0x39ae58));}},'offlineForm':{'type':Sequelize[_0xa885('0x10')],'defaultValue':function(){return JSON[_0xa885('0x16')]({'items':[{'type':_0xa885('0x18'),'props':{'title':_0xa885('0x3'),'helpText':''},'config':{'required':!![],'placeholder':_0xa885('0x3'),'type':_0xa885('0x3')},'variable':null},{'type':_0xa885('0x1c'),'config':{'placeholder':_0xa885('0x1d')},'props':{'title':'Comments','helpText':'Leave\x20your\x20comments'}}],'fromKey':0x0});},'get':function(){return this['getDataValue']('offlineForm')?JSON[_0xa885('0x1a')](this[_0xa885('0x19')](_0xa885('0x1e'))):{};},'set':function(_0x17c0eb){return this[_0xa885('0x1f')](_0xa885('0x1e'),JSON['stringify'](_0x17c0eb));}},'token':{'type':Sequelize[_0xa885('0x2')],'defaultValue':function(){return rs['generate']();}},'autoclose':{'type':Sequelize[_0xa885('0x7')],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'forwardTranscript':{'type':Sequelize[_0xa885('0x7')],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize['STRING']},'forwardOffline':{'type':Sequelize[_0xa885('0x7')],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize[_0xa885('0x2')]},'waitingTitle':{'type':Sequelize[_0xa885('0x2')],'defaultValue':'All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.'},'waitingMessage':{'type':Sequelize[_0xa885('0x2')],'defaultValue':_0xa885('0x20')},'offlineMessageSubject':{'type':Sequelize['STRING'],'defaultValue':_0xa885('0x21')},'offlineMessageBody':{'type':Sequelize['STRING'],'defaultValue':_0xa885('0x22')},'enableUnmanagedNote':{'type':Sequelize[_0xa885('0x7')],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize[_0xa885('0x2')],'defaultValue':'Your\x20request\x20has\x20not\x20been\x20processed.'},'skipUnmanaged':{'type':Sequelize[_0xa885('0x2')],'defaultValue':_0xa885('0x23')},'sendUnmanaged':{'type':Sequelize[_0xa885('0x2')],'defaultValue':'Send'},'enableCustomerAttachment':{'type':Sequelize[_0xa885('0x7')],'defaultValue':![]},'enableCustomerCheckmarks':{'type':Sequelize[_0xa885('0x7')],'defaultValue':![]},'agentAvatar':{'type':Sequelize[_0xa885('0x10')]},'showAgentAvatar':{'type':Sequelize[_0xa885('0x7')],'defaultValue':![]},'timezone':{'type':Sequelize[_0xa885('0x2')]},'notificationTemplate':{'type':Sequelize[_0xa885('0x10')],'defaultValue':function(){return _0xa885('0x24');}},'notificationSound':{'type':Sequelize[_0xa885('0x7')],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentIdentifier':{'type':Sequelize[_0xa885('0x2')],'defaultValue':_0xa885('0x25')},'waitForTheAssignedAgent':{'type':Sequelize[_0xa885('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize[_0xa885('0x2')],'defaultValue':_0xa885('0x26')},'verticalAlignment':{'type':Sequelize[_0xa885('0x6')],'defaultValue':0x1e},'messagesAlignment':{'type':Sequelize[_0xa885('0x2')],'defaultValue':_0xa885('0x27')},'defaultTitle':{'type':Sequelize[_0xa885('0x2')]},'customerAvatar':{'type':Sequelize['TEXT']},'showCustomerAvatar':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'messageFontSize':{'type':Sequelize[_0xa885('0x6')],'defaultValue':0xc},'backgroundColor':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'#fafafa','validate':{'notEmpty':!![]}},'queueTransfer':{'type':Sequelize[_0xa885('0x7')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0xa885('0x7')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0xa885('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':Sequelize[_0xa885('0x2')],'defaultValue':_0xa885('0x28')},'systemAvatar':{'type':Sequelize[_0xa885('0x10')]},'mandatoryDispositionPauseId':{'type':Sequelize[_0xa885('0x6')],'comment':_0xa885('0x29')},'mandatoryDisposition':{'type':Sequelize[_0xa885('0x7')],'defaultValue':![],'comment':_0xa885('0x2a'),'set':function(_0x2f48a9){if(!_0x2f48a9)this['setDataValue'](_0xa885('0x2b'),null);this[_0xa885('0x1f')](_0xa885('0x2c'),_0x2f48a9);}},'vidaooEscalation':{'type':Sequelize[_0xa885('0x7')],'defaultValue':![]},'vidaooApiKey':{'type':Sequelize[_0xa885('0x2')],'defaultValue':![]}};