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