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