Built motion from commit f7863d46.|2.5.41
[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 _0xae47=['mandatoryDispositionPauseId','Meeting\x20generated\x20for\x20interaction\x20#{{interaction.id}}\x20by\x20{{agent.name}}','randomstring','exports','STRING','address','email','Agent','#011F6A','INTEGER','BOOLEAN','ENUM','rounded','squared','We\x20are\x20here!','Chat','Send','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!','Skip','Feedback','star','thumb','name','input','onlineForm','parse','setDataValue','stringify','textarea','Comments','Leave\x20your\x20comments','offlineForm','getDataValue','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:','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(_0x57966a,_0x477964){var _0x191765=function(_0x106a01){while(--_0x106a01){_0x57966a['push'](_0x57966a['shift']());}};_0x191765(++_0x477964);}(_0xae47,0x110));var _0x7ae4=function(_0x492705,_0x321f1c){_0x492705=_0x492705-0x0;var _0x57d6c5=_0xae47[_0x492705];return _0x57d6c5;};'use strict';var Sequelize=require('sequelize');var rs=require(_0x7ae4('0x0'));module[_0x7ae4('0x1')]={'name':{'type':Sequelize[_0x7ae4('0x2')],'allowNull':![]},'address':{'type':Sequelize[_0x7ae4('0x2')],'allowNull':![],'unique':_0x7ae4('0x3')},'description':{'type':Sequelize[_0x7ae4('0x2')]},'mapKey':{'type':Sequelize['STRING'],'defaultValue':_0x7ae4('0x4')},'mapKeyOffline':{'type':Sequelize['STRING'],'defaultValue':_0x7ae4('0x4')},'key':{'type':Sequelize[_0x7ae4('0x2')],'allowNull':![]},'agentAlias':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':_0x7ae4('0x5')},'customerAlias':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':'Me'},'color':{'type':Sequelize[_0x7ae4('0x2')],'allowNull':![],'defaultValue':_0x7ae4('0x6'),'validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize[_0x7ae4('0x2')],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize[_0x7ae4('0x7')],'defaultValue':0xf},'remote':{'type':Sequelize['STRING']},'animation':{'type':Sequelize[_0x7ae4('0x8')],'defaultValue':!![]},'header_shape':{'type':Sequelize[_0x7ae4('0x9')](_0x7ae4('0xa'),_0x7ae4('0xb')),'defaultValue':_0x7ae4('0xa')},'header_online':{'type':Sequelize['STRING'],'defaultValue':_0x7ae4('0xc')},'start_chat_button':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':_0x7ae4('0xd')},'offline_chat_button':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':_0x7ae4('0xe')},'header_offline':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':_0x7ae4('0xf')},'download_transcript':{'type':Sequelize[_0x7ae4('0x8')],'defaultValue':!![]},'timeout':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'whiteLabel':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':_0x7ae4('0x10')},'defaultWhiteLabel':{'type':Sequelize[_0x7ae4('0x8')],'defaultValue':!![]},'sitepic':{'type':Sequelize[_0x7ae4('0x11')]},'closingQuestion':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':_0x7ae4('0x12')},'formSubmitSuccessMessage':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':_0x7ae4('0x13')},'formSubmitFailureMessage':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':_0x7ae4('0x14')},'noteTitle':{'type':Sequelize['STRING'],'defaultValue':_0x7ae4('0x15')},'placeholderMessage':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':_0x7ae4('0x16')},'closingMessage':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':_0x7ae4('0x17')},'closingMessageButton':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':'Send'},'skipMessageButton':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':_0x7ae4('0x18')},'conditionAgreement':{'type':Sequelize[_0x7ae4('0x8')],'defaultValue':![]},'enableRating':{'type':Sequelize[_0x7ae4('0x8')],'defaultValue':![]},'enableFeedback':{'type':Sequelize[_0x7ae4('0x8')],'defaultValue':![]},'enableSendButton':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'feedbackTitle':{'type':Sequelize['STRING'],'defaultValue':_0x7ae4('0x19')},'ratingType':{'type':Sequelize[_0x7ae4('0x9')](_0x7ae4('0x1a'),_0x7ae4('0x1b')),'defaultValue':_0x7ae4('0x1a')},'ratingStarsNumber':{'type':Sequelize[_0x7ae4('0x7')],'defaultValue':0x5},'onlineForm':{'type':Sequelize['TEXT'],'defaultValue':function(){return JSON['stringify']({'items':[{'type':'input','variable':null,'config':{'placeholder':_0x7ae4('0x1c'),'type':'text','required':!![]},'props':{'title':_0x7ae4('0x1c'),'helpText':''}},{'type':_0x7ae4('0x1d'),'props':{'title':_0x7ae4('0x4'),'helpText':''},'config':{'required':!![],'placeholder':'email','type':_0x7ae4('0x4')},'variable':null}],'fromKey':0x1});},'get':function(){return this['getDataValue'](_0x7ae4('0x1e'))?JSON[_0x7ae4('0x1f')](this['getDataValue']('onlineForm')):{};},'set':function(_0x376898){return this[_0x7ae4('0x20')](_0x7ae4('0x1e'),JSON[_0x7ae4('0x21')](_0x376898));}},'offlineForm':{'type':Sequelize[_0x7ae4('0x11')],'defaultValue':function(){return JSON[_0x7ae4('0x21')]({'items':[{'type':_0x7ae4('0x1d'),'props':{'title':_0x7ae4('0x4'),'helpText':''},'config':{'required':!![],'placeholder':_0x7ae4('0x4'),'type':_0x7ae4('0x4')},'variable':null},{'type':_0x7ae4('0x22'),'config':{'placeholder':'Comments'},'props':{'title':_0x7ae4('0x23'),'helpText':_0x7ae4('0x24')}}],'fromKey':0x0});},'get':function(){return this['getDataValue'](_0x7ae4('0x25'))?JSON[_0x7ae4('0x1f')](this[_0x7ae4('0x26')]('offlineForm')):{};},'set':function(_0x1e7cd9){return this[_0x7ae4('0x20')](_0x7ae4('0x25'),JSON['stringify'](_0x1e7cd9));}},'token':{'type':Sequelize['STRING'],'defaultValue':function(){return rs['generate']();}},'autoclose':{'type':Sequelize[_0x7ae4('0x8')],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize[_0x7ae4('0x8')],'defaultValue':![]},'forwardTranscript':{'type':Sequelize[_0x7ae4('0x8')],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize['STRING']},'forwardOffline':{'type':Sequelize[_0x7ae4('0x8')],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize[_0x7ae4('0x2')]},'waitingTitle':{'type':Sequelize['STRING'],'defaultValue':_0x7ae4('0x27')},'waitingMessage':{'type':Sequelize['STRING'],'defaultValue':_0x7ae4('0x28')},'offlineMessageSubject':{'type':Sequelize['STRING'],'defaultValue':_0x7ae4('0x29')},'offlineMessageBody':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':_0x7ae4('0x2a')},'enableUnmanagedNote':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize['STRING'],'defaultValue':'Your\x20request\x20has\x20not\x20been\x20processed.'},'skipUnmanaged':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':_0x7ae4('0x18')},'sendUnmanaged':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':_0x7ae4('0xe')},'enableCustomerAttachment':{'type':Sequelize[_0x7ae4('0x8')],'defaultValue':![]},'enableCustomerCheckmarks':{'type':Sequelize[_0x7ae4('0x8')],'defaultValue':![]},'agentAvatar':{'type':Sequelize[_0x7ae4('0x11')]},'showAgentAvatar':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'timezone':{'type':Sequelize[_0x7ae4('0x2')]},'notificationTemplate':{'type':Sequelize[_0x7ae4('0x11')],'defaultValue':function(){return _0x7ae4('0x2b');}},'notificationSound':{'type':Sequelize[_0x7ae4('0x8')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x7ae4('0x8')],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentIdentifier':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':_0x7ae4('0x2c')},'waitForTheAssignedAgent':{'type':Sequelize[_0x7ae4('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':_0x7ae4('0x2d')},'verticalAlignment':{'type':Sequelize['INTEGER'],'defaultValue':0x1e},'labelText':{'type':Sequelize['STRING'],'defaultValue':_0x7ae4('0x2e')},'messagesAlignment':{'type':Sequelize['STRING'],'defaultValue':_0x7ae4('0x2f')},'defaultTitle':{'type':Sequelize[_0x7ae4('0x2')]},'customerAvatar':{'type':Sequelize['TEXT']},'showCustomerAvatar':{'type':Sequelize[_0x7ae4('0x8')],'defaultValue':![]},'messageFontSize':{'type':Sequelize[_0x7ae4('0x7')],'defaultValue':0xc},'backgroundColor':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x7ae4('0x30'),'validate':{'notEmpty':!![]}},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x7ae4('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x7ae4('0x8')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x7ae4('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':_0x7ae4('0x31')},'systemAvatar':{'type':Sequelize['TEXT']},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'comment':_0x7ae4('0x32')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x7ae4('0x33'),'set':function(_0x21db89){if(!_0x21db89)this['setDataValue'](_0x7ae4('0x34'),null);this[_0x7ae4('0x20')]('mandatoryDisposition',_0x21db89);}},'vidaooEscalation':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'vidaooApiKey':{'type':Sequelize[_0x7ae4('0x2')]},'vidaooTopic':{'type':Sequelize[_0x7ae4('0x2')],'allowNull':![],'defaultValue':'Generated\x20by\x20XCALLY\x20Motion'},'vidaooNote':{'type':Sequelize[_0x7ae4('0x2')],'defaultValue':function(){return _0x7ae4('0x35');}},'vidaooMetadata':{'type':Sequelize[_0x7ae4('0x11')],'defaultValue':null},'openNewInteraction':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'allowNull':!![]},'subjectOffline':{'type':Sequelize[_0x7ae4('0x11')]}};