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