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