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