Built motion from commit (unavailable).|2.5.20
[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 _0x84e7=['Form\x20submission\x20error','Type\x20a\x20message','Thanks\x20you\x20for\x20your\x20time!','Feedback','ENUM','star','stringify','text','name','input','onlineForm','parse','setDataValue','textarea','Comments','Leave\x20your\x20comments','getDataValue','offlineForm','generate','New\x20offline\x20message\x20from\x20websiteName','Your\x20request\x20has\x20not\x20been\x20processed.','Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}','website_alias','#fafafa','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','randomstring','exports','STRING','address','email','#011F6A','#ffffff','INTEGER','rounded','squared','Chat','Send','Contact\x20us','Powered\x20by\x20xCALLY','BOOLEAN','TEXT','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','Form\x20properly\x20submitted'];(function(_0x5e9372,_0x556e9b){var _0x45279c=function(_0x3ad798){while(--_0x3ad798){_0x5e9372['push'](_0x5e9372['shift']());}};_0x45279c(++_0x556e9b);}(_0x84e7,0x122));var _0x784e=function(_0x3ba861,_0x3aa456){_0x3ba861=_0x3ba861-0x0;var _0x284621=_0x84e7[_0x3ba861];return _0x284621;};'use strict';var Sequelize=require('sequelize');var rs=require(_0x784e('0x0'));module[_0x784e('0x1')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'address':{'type':Sequelize[_0x784e('0x2')],'allowNull':![],'unique':_0x784e('0x3')},'description':{'type':Sequelize['STRING']},'mapKey':{'type':Sequelize[_0x784e('0x2')],'defaultValue':_0x784e('0x4')},'mapKeyOffline':{'type':Sequelize[_0x784e('0x2')],'defaultValue':_0x784e('0x4')},'key':{'type':Sequelize[_0x784e('0x2')],'allowNull':![]},'agentAlias':{'type':Sequelize[_0x784e('0x2')],'defaultValue':'Agent'},'customerAlias':{'type':Sequelize[_0x784e('0x2')],'defaultValue':'Me'},'color':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x784e('0x5'),'validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize[_0x784e('0x2')],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize[_0x784e('0x2')],'allowNull':![],'defaultValue':_0x784e('0x6'),'validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize[_0x784e('0x7')],'defaultValue':0xf},'remote':{'type':Sequelize[_0x784e('0x2')]},'animation':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'header_shape':{'type':Sequelize['ENUM'](_0x784e('0x8'),_0x784e('0x9')),'defaultValue':_0x784e('0x8')},'header_online':{'type':Sequelize[_0x784e('0x2')],'defaultValue':'We\x20are\x20here!'},'start_chat_button':{'type':Sequelize[_0x784e('0x2')],'defaultValue':_0x784e('0xa')},'offline_chat_button':{'type':Sequelize[_0x784e('0x2')],'defaultValue':_0x784e('0xb')},'header_offline':{'type':Sequelize[_0x784e('0x2')],'defaultValue':_0x784e('0xc')},'download_transcript':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'timeout':{'type':Sequelize[_0x784e('0x7')],'defaultValue':0x0},'whiteLabel':{'type':Sequelize['STRING'],'defaultValue':_0x784e('0xd')},'defaultWhiteLabel':{'type':Sequelize[_0x784e('0xe')],'defaultValue':!![]},'sitepic':{'type':Sequelize[_0x784e('0xf')]},'closingQuestion':{'type':Sequelize[_0x784e('0x2')],'defaultValue':_0x784e('0x10')},'formSubmitSuccessMessage':{'type':Sequelize[_0x784e('0x2')],'defaultValue':_0x784e('0x11')},'formSubmitFailureMessage':{'type':Sequelize[_0x784e('0x2')],'defaultValue':_0x784e('0x12')},'noteTitle':{'type':Sequelize['STRING'],'defaultValue':'Note'},'placeholderMessage':{'type':Sequelize[_0x784e('0x2')],'defaultValue':_0x784e('0x13')},'closingMessage':{'type':Sequelize[_0x784e('0x2')],'defaultValue':_0x784e('0x14')},'closingMessageButton':{'type':Sequelize[_0x784e('0x2')],'defaultValue':_0x784e('0xb')},'skipMessageButton':{'type':Sequelize[_0x784e('0x2')],'defaultValue':'Skip'},'conditionAgreement':{'type':Sequelize[_0x784e('0xe')],'defaultValue':![]},'enableRating':{'type':Sequelize[_0x784e('0xe')],'defaultValue':![]},'enableFeedback':{'type':Sequelize[_0x784e('0xe')],'defaultValue':![]},'enableSendButton':{'type':Sequelize[_0x784e('0xe')],'defaultValue':![]},'feedbackTitle':{'type':Sequelize[_0x784e('0x2')],'defaultValue':_0x784e('0x15')},'ratingType':{'type':Sequelize[_0x784e('0x16')]('star','thumb'),'defaultValue':_0x784e('0x17')},'ratingStarsNumber':{'type':Sequelize['INTEGER'],'defaultValue':0x5},'onlineForm':{'type':Sequelize[_0x784e('0xf')],'defaultValue':function(){return JSON[_0x784e('0x18')]({'items':[{'type':'input','variable':null,'config':{'placeholder':'name','type':_0x784e('0x19'),'required':!![]},'props':{'title':_0x784e('0x1a'),'helpText':''}},{'type':_0x784e('0x1b'),'props':{'title':_0x784e('0x4'),'helpText':''},'config':{'required':!![],'placeholder':'email','type':'email'},'variable':null}],'fromKey':0x1});},'get':function(){return this['getDataValue'](_0x784e('0x1c'))?JSON[_0x784e('0x1d')](this['getDataValue'](_0x784e('0x1c'))):{};},'set':function(_0x5e809a){return this[_0x784e('0x1e')]('onlineForm',JSON[_0x784e('0x18')](_0x5e809a));}},'offlineForm':{'type':Sequelize[_0x784e('0xf')],'defaultValue':function(){return JSON[_0x784e('0x18')]({'items':[{'type':_0x784e('0x1b'),'props':{'title':'email','helpText':''},'config':{'required':!![],'placeholder':_0x784e('0x4'),'type':_0x784e('0x4')},'variable':null},{'type':_0x784e('0x1f'),'config':{'placeholder':_0x784e('0x20')},'props':{'title':'Comments','helpText':_0x784e('0x21')}}],'fromKey':0x0});},'get':function(){return this[_0x784e('0x22')]('offlineForm')?JSON['parse'](this[_0x784e('0x22')](_0x784e('0x23'))):{};},'set':function(_0x17a278){return this[_0x784e('0x1e')](_0x784e('0x23'),JSON[_0x784e('0x18')](_0x17a278));}},'token':{'type':Sequelize[_0x784e('0x2')],'defaultValue':function(){return rs[_0x784e('0x24')]();}},'autoclose':{'type':Sequelize[_0x784e('0xe')],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize[_0x784e('0xe')],'defaultValue':![]},'forwardTranscript':{'type':Sequelize[_0x784e('0xe')],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize[_0x784e('0x2')]},'forwardOffline':{'type':Sequelize[_0x784e('0xe')],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize[_0x784e('0x2')]},'waitingTitle':{'type':Sequelize[_0x784e('0x2')],'defaultValue':'All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.'},'waitingMessage':{'type':Sequelize[_0x784e('0x2')],'defaultValue':'Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.'},'offlineMessageSubject':{'type':Sequelize[_0x784e('0x2')],'defaultValue':_0x784e('0x25')},'offlineMessageBody':{'type':Sequelize[_0x784e('0x2')],'defaultValue':'You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:'},'enableUnmanagedNote':{'type':Sequelize[_0x784e('0xe')],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize['STRING'],'defaultValue':_0x784e('0x26')},'skipUnmanaged':{'type':Sequelize[_0x784e('0x2')],'defaultValue':'Skip'},'sendUnmanaged':{'type':Sequelize[_0x784e('0x2')],'defaultValue':_0x784e('0xb')},'enableCustomerAttachment':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'enableCustomerCheckmarks':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentAvatar':{'type':Sequelize[_0x784e('0xf')]},'showAgentAvatar':{'type':Sequelize[_0x784e('0xe')],'defaultValue':![]},'timezone':{'type':Sequelize[_0x784e('0x2')]},'notificationTemplate':{'type':Sequelize[_0x784e('0xf')],'defaultValue':function(){return _0x784e('0x27');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x784e('0xe')],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize[_0x784e('0xe')],'defaultValue':![]},'agentIdentifier':{'type':Sequelize['STRING'],'defaultValue':_0x784e('0x28')},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize['STRING'],'defaultValue':'bottom_right'},'verticalAlignment':{'type':Sequelize[_0x784e('0x7')],'defaultValue':0x1e},'messagesAlignment':{'type':Sequelize[_0x784e('0x2')],'defaultValue':'alternate'},'defaultTitle':{'type':Sequelize[_0x784e('0x2')]},'customerAvatar':{'type':Sequelize[_0x784e('0xf')]},'showCustomerAvatar':{'type':Sequelize[_0x784e('0xe')],'defaultValue':![]},'messageFontSize':{'type':Sequelize[_0x784e('0x7')],'defaultValue':0xc},'backgroundColor':{'type':Sequelize[_0x784e('0x2')],'allowNull':![],'defaultValue':_0x784e('0x29'),'validate':{'notEmpty':!![]}},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x784e('0xe')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x784e('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':Sequelize['STRING'],'defaultValue':'System'},'systemAvatar':{'type':Sequelize['TEXT']},'mandatoryDispositionPauseId':{'type':Sequelize[_0x784e('0x7')],'comment':_0x784e('0x2a')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x784e('0x2b'),'set':function(_0x2b8dbc){if(!_0x2b8dbc)this[_0x784e('0x1e')]('mandatoryDispositionPauseId',null);this[_0x784e('0x1e')]('mandatoryDisposition',_0x2b8dbc);}},'vidaooEscalation':{'type':Sequelize[_0x784e('0xe')],'defaultValue':![]},'vidaooApiKey':{'type':Sequelize['STRING'],'defaultValue':![]}};