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