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