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