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