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