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