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