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