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