61f14a9c228ee7ca80719cad86b2f7e5de43fe31
[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 _0x446c=['text','input','email','getDataValue','onlineForm','parse','setDataValue','textarea','Comments','offlineForm','generate','All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.','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.','Skip','Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}','website_alias','bottom_right','#fafafa','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','mandatoryDispositionPauseId','mandatoryDisposition','sequelize','randomstring','exports','STRING','address','Agent','#011F6A','#ffffff','BOOLEAN','ENUM','rounded','We\x20are\x20here!','Chat','Send','Contact\x20us','INTEGER','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','name'];(function(_0xdb1168,_0x4a370b){var _0xa678b9=function(_0x30e110){while(--_0x30e110){_0xdb1168['push'](_0xdb1168['shift']());}};_0xa678b9(++_0x4a370b);}(_0x446c,0x156));var _0xc446=function(_0xa6cc5c,_0x239c99){_0xa6cc5c=_0xa6cc5c-0x0;var _0x44803d=_0x446c[_0xa6cc5c];return _0x44803d;};'use strict';var Sequelize=require(_0xc446('0x0'));var rs=require(_0xc446('0x1'));module[_0xc446('0x2')]={'name':{'type':Sequelize[_0xc446('0x3')],'allowNull':![]},'address':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0xc446('0x4')},'description':{'type':Sequelize[_0xc446('0x3')]},'mapKey':{'type':Sequelize[_0xc446('0x3')],'defaultValue':'email'},'mapKeyOffline':{'type':Sequelize[_0xc446('0x3')],'defaultValue':'email'},'key':{'type':Sequelize['STRING'],'allowNull':![]},'agentAlias':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0x5')},'customerAlias':{'type':Sequelize['STRING'],'defaultValue':'Me'},'color':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0xc446('0x6'),'validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize[_0xc446('0x3')],'allowNull':![],'defaultValue':_0xc446('0x6'),'validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize[_0xc446('0x3')],'allowNull':![],'defaultValue':_0xc446('0x7'),'validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize['INTEGER'],'defaultValue':0xf},'remote':{'type':Sequelize[_0xc446('0x3')]},'animation':{'type':Sequelize[_0xc446('0x8')],'defaultValue':!![]},'header_shape':{'type':Sequelize[_0xc446('0x9')](_0xc446('0xa'),'squared'),'defaultValue':_0xc446('0xa')},'header_online':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0xb')},'start_chat_button':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0xc')},'offline_chat_button':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0xd')},'header_offline':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0xe')},'download_transcript':{'type':Sequelize[_0xc446('0x8')],'defaultValue':!![]},'timeout':{'type':Sequelize[_0xc446('0xf')],'defaultValue':0x0},'whiteLabel':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0x10')},'defaultWhiteLabel':{'type':Sequelize[_0xc446('0x8')],'defaultValue':!![]},'sitepic':{'type':Sequelize[_0xc446('0x11')]},'closingQuestion':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0x12')},'formSubmitSuccessMessage':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0x13')},'formSubmitFailureMessage':{'type':Sequelize['STRING'],'defaultValue':_0xc446('0x14')},'noteTitle':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0x15')},'placeholderMessage':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0x16')},'closingMessage':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0x17')},'closingMessageButton':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0xd')},'skipMessageButton':{'type':Sequelize[_0xc446('0x3')],'defaultValue':'Skip'},'conditionAgreement':{'type':Sequelize[_0xc446('0x8')],'defaultValue':![]},'enableRating':{'type':Sequelize[_0xc446('0x8')],'defaultValue':![]},'enableFeedback':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'enableSendButton':{'type':Sequelize[_0xc446('0x8')],'defaultValue':![]},'feedbackTitle':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0x18')},'ratingType':{'type':Sequelize[_0xc446('0x9')](_0xc446('0x19'),_0xc446('0x1a')),'defaultValue':_0xc446('0x19')},'ratingStarsNumber':{'type':Sequelize[_0xc446('0xf')],'defaultValue':0x5},'onlineForm':{'type':Sequelize[_0xc446('0x11')],'defaultValue':function(){return JSON[_0xc446('0x1b')]({'items':[{'type':'input','variable':null,'config':{'placeholder':_0xc446('0x1c'),'type':_0xc446('0x1d'),'required':!![]},'props':{'title':_0xc446('0x1c'),'helpText':''}},{'type':_0xc446('0x1e'),'props':{'title':_0xc446('0x1f'),'helpText':''},'config':{'required':!![],'placeholder':_0xc446('0x1f'),'type':_0xc446('0x1f')},'variable':null}],'fromKey':0x1});},'get':function(){return this[_0xc446('0x20')](_0xc446('0x21'))?JSON[_0xc446('0x22')](this[_0xc446('0x20')](_0xc446('0x21'))):{};},'set':function(_0x25f58d){return this[_0xc446('0x23')](_0xc446('0x21'),JSON[_0xc446('0x1b')](_0x25f58d));}},'offlineForm':{'type':Sequelize[_0xc446('0x11')],'defaultValue':function(){return JSON['stringify']({'items':[{'type':_0xc446('0x1e'),'props':{'title':_0xc446('0x1f'),'helpText':''},'config':{'required':!![],'placeholder':_0xc446('0x1f'),'type':_0xc446('0x1f')},'variable':null},{'type':_0xc446('0x24'),'config':{'placeholder':_0xc446('0x25')},'props':{'title':'Comments','helpText':'Leave\x20your\x20comments'}}],'fromKey':0x0});},'get':function(){return this[_0xc446('0x20')](_0xc446('0x26'))?JSON[_0xc446('0x22')](this[_0xc446('0x20')]('offlineForm')):{};},'set':function(_0x420fcb){return this[_0xc446('0x23')](_0xc446('0x26'),JSON[_0xc446('0x1b')](_0x420fcb));}},'token':{'type':Sequelize[_0xc446('0x3')],'defaultValue':function(){return rs[_0xc446('0x27')]();}},'autoclose':{'type':Sequelize[_0xc446('0x8')],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize[_0xc446('0x8')],'defaultValue':![]},'forwardTranscript':{'type':Sequelize[_0xc446('0x8')],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize[_0xc446('0x3')]},'forwardOffline':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize['STRING']},'waitingTitle':{'type':Sequelize['STRING'],'defaultValue':_0xc446('0x28')},'waitingMessage':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0x29')},'offlineMessageSubject':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0x2a')},'offlineMessageBody':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0x2b')},'enableUnmanagedNote':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0x2c')},'skipUnmanaged':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0x2d')},'sendUnmanaged':{'type':Sequelize[_0xc446('0x3')],'defaultValue':'Send'},'enableCustomerAttachment':{'type':Sequelize[_0xc446('0x8')],'defaultValue':![]},'enableCustomerCheckmarks':{'type':Sequelize[_0xc446('0x8')],'defaultValue':![]},'agentAvatar':{'type':Sequelize[_0xc446('0x11')]},'showAgentAvatar':{'type':Sequelize[_0xc446('0x8')],'defaultValue':![]},'timezone':{'type':Sequelize[_0xc446('0x3')]},'notificationTemplate':{'type':Sequelize[_0xc446('0x11')],'defaultValue':function(){return _0xc446('0x2e');}},'notificationSound':{'type':Sequelize[_0xc446('0x8')],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentIdentifier':{'type':Sequelize[_0xc446('0x3')],'defaultValue':_0xc446('0x2f')},'waitForTheAssignedAgent':{'type':Sequelize[_0xc446('0xf')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize['STRING'],'defaultValue':_0xc446('0x30')},'verticalAlignment':{'type':Sequelize[_0xc446('0xf')],'defaultValue':0x1e},'messagesAlignment':{'type':Sequelize[_0xc446('0x3')],'defaultValue':'alternate'},'defaultTitle':{'type':Sequelize['STRING']},'customerAvatar':{'type':Sequelize['TEXT']},'showCustomerAvatar':{'type':Sequelize[_0xc446('0x8')],'defaultValue':![]},'messageFontSize':{'type':Sequelize['INTEGER'],'defaultValue':0xc},'backgroundColor':{'type':Sequelize[_0xc446('0x3')],'allowNull':![],'defaultValue':_0xc446('0x31'),'validate':{'notEmpty':!![]}},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0xc446('0xf')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0xc446('0x8')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0xc446('0xf')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':Sequelize[_0xc446('0x3')],'defaultValue':'System'},'systemAvatar':{'type':Sequelize[_0xc446('0x11')]},'mandatoryDispositionPauseId':{'type':Sequelize[_0xc446('0xf')],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0xc446('0x8')],'defaultValue':![],'comment':_0xc446('0x32'),'set':function(_0x43cf3e){if(!_0x43cf3e)this[_0xc446('0x23')](_0xc446('0x33'),null);this['setDataValue'](_0xc446('0x34'),_0x43cf3e);}},'vidaooEscalation':{'type':Sequelize[_0xc446('0x8')],'defaultValue':![]},'vidaooApiKey':{'type':Sequelize[_0xc446('0x3')],'defaultValue':![]}};