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