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