b9ea793e2320bbbad871d4579b1345c6af16f22b
[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 _0x46ed=['textarea','Comments','Leave\x20your\x20comments','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.','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}}','website_alias','bottom_right','alternate','System','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','mandatoryDispositionPauseId','mandatoryDisposition','sequelize','randomstring','STRING','address','email','Agent','#011F6A','#ffffff','BOOLEAN','rounded','squared','We\x20are\x20here!','Contact\x20us','Powered\x20by\x20xCALLY','TEXT','Form\x20properly\x20submitted','Form\x20submission\x20error','Type\x20a\x20message','Send','Feedback','ENUM','star','thumb','INTEGER','input','name','text','getDataValue','parse','setDataValue','onlineForm','stringify'];(function(_0x2ef5c8,_0x45dfbc){var _0x4ed2f4=function(_0x5b73c0){while(--_0x5b73c0){_0x2ef5c8['push'](_0x2ef5c8['shift']());}};_0x4ed2f4(++_0x45dfbc);}(_0x46ed,0x168));var _0xd46e=function(_0x199572,_0x33e667){_0x199572=_0x199572-0x0;var _0x13cfa3=_0x46ed[_0x199572];return _0x13cfa3;};'use strict';var Sequelize=require(_0xd46e('0x0'));var rs=require(_0xd46e('0x1'));module['exports']={'name':{'type':Sequelize[_0xd46e('0x2')],'allowNull':![]},'address':{'type':Sequelize[_0xd46e('0x2')],'allowNull':![],'unique':_0xd46e('0x3')},'description':{'type':Sequelize['STRING']},'mapKey':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':_0xd46e('0x4')},'mapKeyOffline':{'type':Sequelize['STRING'],'defaultValue':_0xd46e('0x4')},'key':{'type':Sequelize[_0xd46e('0x2')],'allowNull':![]},'agentAlias':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':_0xd46e('0x5')},'customerAlias':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':'Me'},'color':{'type':Sequelize[_0xd46e('0x2')],'allowNull':![],'defaultValue':_0xd46e('0x6'),'validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize[_0xd46e('0x2')],'allowNull':![],'defaultValue':_0xd46e('0x6'),'validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize[_0xd46e('0x2')],'allowNull':![],'defaultValue':_0xd46e('0x7'),'validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize['INTEGER'],'defaultValue':0xf},'remote':{'type':Sequelize[_0xd46e('0x2')]},'animation':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':!![]},'header_shape':{'type':Sequelize['ENUM'](_0xd46e('0x9'),_0xd46e('0xa')),'defaultValue':_0xd46e('0x9')},'header_online':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':_0xd46e('0xb')},'start_chat_button':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':'Chat'},'offline_chat_button':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':'Send'},'header_offline':{'type':Sequelize['STRING'],'defaultValue':_0xd46e('0xc')},'download_transcript':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':!![]},'timeout':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'whiteLabel':{'type':Sequelize['STRING'],'defaultValue':_0xd46e('0xd')},'defaultWhiteLabel':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':!![]},'sitepic':{'type':Sequelize[_0xd46e('0xe')]},'closingQuestion':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':'Do\x20you\x20want\x20to\x20close\x20the\x20interaction?'},'formSubmitSuccessMessage':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':_0xd46e('0xf')},'formSubmitFailureMessage':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':_0xd46e('0x10')},'noteTitle':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':'Note'},'placeholderMessage':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':_0xd46e('0x11')},'closingMessage':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':'Thanks\x20you\x20for\x20your\x20time!'},'closingMessageButton':{'type':Sequelize['STRING'],'defaultValue':_0xd46e('0x12')},'skipMessageButton':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':'Skip'},'conditionAgreement':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'enableRating':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':![]},'enableFeedback':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':![]},'enableSendButton':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':![]},'feedbackTitle':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':_0xd46e('0x13')},'ratingType':{'type':Sequelize[_0xd46e('0x14')](_0xd46e('0x15'),_0xd46e('0x16')),'defaultValue':_0xd46e('0x15')},'ratingStarsNumber':{'type':Sequelize[_0xd46e('0x17')],'defaultValue':0x5},'onlineForm':{'type':Sequelize[_0xd46e('0xe')],'defaultValue':function(){return JSON['stringify']({'items':[{'type':_0xd46e('0x18'),'variable':null,'config':{'placeholder':_0xd46e('0x19'),'type':_0xd46e('0x1a'),'required':!![]},'props':{'title':_0xd46e('0x19'),'helpText':''}},{'type':_0xd46e('0x18'),'props':{'title':_0xd46e('0x4'),'helpText':''},'config':{'required':!![],'placeholder':_0xd46e('0x4'),'type':_0xd46e('0x4')},'variable':null}],'fromKey':0x1});},'get':function(){return this[_0xd46e('0x1b')]('onlineForm')?JSON[_0xd46e('0x1c')](this['getDataValue']('onlineForm')):{};},'set':function(_0x371054){return this[_0xd46e('0x1d')](_0xd46e('0x1e'),JSON[_0xd46e('0x1f')](_0x371054));}},'offlineForm':{'type':Sequelize[_0xd46e('0xe')],'defaultValue':function(){return JSON[_0xd46e('0x1f')]({'items':[{'type':_0xd46e('0x18'),'props':{'title':'email','helpText':''},'config':{'required':!![],'placeholder':_0xd46e('0x4'),'type':_0xd46e('0x4')},'variable':null},{'type':_0xd46e('0x20'),'config':{'placeholder':_0xd46e('0x21')},'props':{'title':_0xd46e('0x21'),'helpText':_0xd46e('0x22')}}],'fromKey':0x0});},'get':function(){return this['getDataValue'](_0xd46e('0x23'))?JSON[_0xd46e('0x1c')](this[_0xd46e('0x1b')](_0xd46e('0x23'))):{};},'set':function(_0x106edc){return this[_0xd46e('0x1d')](_0xd46e('0x23'),JSON[_0xd46e('0x1f')](_0x106edc));}},'token':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':function(){return rs[_0xd46e('0x24')]();}},'autoclose':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':![]},'forwardTranscript':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize['STRING']},'forwardOffline':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize[_0xd46e('0x2')]},'waitingTitle':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':_0xd46e('0x25')},'waitingMessage':{'type':Sequelize['STRING'],'defaultValue':_0xd46e('0x26')},'offlineMessageSubject':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':'New\x20offline\x20message\x20from\x20websiteName'},'offlineMessageBody':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':_0xd46e('0x27')},'enableUnmanagedNote':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':_0xd46e('0x28')},'skipUnmanaged':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':'Skip'},'sendUnmanaged':{'type':Sequelize['STRING'],'defaultValue':_0xd46e('0x12')},'enableCustomerAttachment':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':![]},'enableCustomerCheckmarks':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':![]},'agentAvatar':{'type':Sequelize[_0xd46e('0xe')]},'showAgentAvatar':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':![]},'timezone':{'type':Sequelize[_0xd46e('0x2')]},'notificationTemplate':{'type':Sequelize[_0xd46e('0xe')],'defaultValue':function(){return _0xd46e('0x29');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':![]},'agentIdentifier':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':_0xd46e('0x2a')},'waitForTheAssignedAgent':{'type':Sequelize[_0xd46e('0x17')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':_0xd46e('0x2b')},'verticalAlignment':{'type':Sequelize['INTEGER'],'defaultValue':0x1e},'messagesAlignment':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':_0xd46e('0x2c')},'defaultTitle':{'type':Sequelize['STRING']},'customerAvatar':{'type':Sequelize[_0xd46e('0xe')]},'showCustomerAvatar':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':![]},'messageFontSize':{'type':Sequelize[_0xd46e('0x17')],'defaultValue':0xc},'backgroundColor':{'type':Sequelize[_0xd46e('0x2')],'allowNull':![],'defaultValue':'#fafafa','validate':{'notEmpty':!![]}},'queueTransfer':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0xd46e('0x17')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0xd46e('0x17')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':Sequelize[_0xd46e('0x2')],'defaultValue':_0xd46e('0x2d')},'systemAvatar':{'type':Sequelize[_0xd46e('0xe')]},'mandatoryDispositionPauseId':{'type':Sequelize[_0xd46e('0x17')],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0xd46e('0x8')],'defaultValue':![],'comment':_0xd46e('0x2e'),'set':function(_0xc83ea1){if(!_0xc83ea1)this[_0xd46e('0x1d')](_0xd46e('0x2f'),null);this['setDataValue'](_0xd46e('0x30'),_0xc83ea1);}},'vidaooEscalation':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'vidaooApiKey':{'type':Sequelize['STRING'],'defaultValue':![]}};