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