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