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