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