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