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