d1371b6aa7148d75c5f0acfa0b53cfe17fd2db00
[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 _0xbcb4=['We\x20are\x20here!','Send','BOOLEAN','Powered\x20by\x20xCALLY','TEXT','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','Form\x20properly\x20submitted','Type\x20a\x20message','Thanks\x20you\x20for\x20your\x20time!','Skip','Feedback','star','thumb','stringify','name','text','input','getDataValue','onlineForm','parse','textarea','Comments','offlineForm','setDataValue','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','alternate','#fafafa','System','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','mandatoryDispositionPauseId','sequelize','exports','STRING','address','email','Agent','#9f946a','#ffffff','INTEGER','ENUM','rounded','squared'];(function(_0x4867c2,_0x1fc65d){var _0x5d7148=function(_0x8777de){while(--_0x8777de){_0x4867c2['push'](_0x4867c2['shift']());}};_0x5d7148(++_0x1fc65d);}(_0xbcb4,0x14b));var _0x4bcb=function(_0xb718df,_0x306cae){_0xb718df=_0xb718df-0x0;var _0x2b8391=_0xbcb4[_0xb718df];return _0x2b8391;};'use strict';var Sequelize=require(_0x4bcb('0x0'));var rs=require('randomstring');module[_0x4bcb('0x1')]={'name':{'type':Sequelize[_0x4bcb('0x2')],'allowNull':![]},'address':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x4bcb('0x3')},'description':{'type':Sequelize['STRING']},'mapKey':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':_0x4bcb('0x4')},'mapKeyOffline':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':_0x4bcb('0x4')},'key':{'type':Sequelize[_0x4bcb('0x2')],'allowNull':![]},'agentAlias':{'type':Sequelize['STRING'],'defaultValue':_0x4bcb('0x5')},'customerAlias':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':'Me'},'color':{'type':Sequelize[_0x4bcb('0x2')],'allowNull':![],'defaultValue':_0x4bcb('0x6'),'validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize[_0x4bcb('0x2')],'allowNull':![],'defaultValue':_0x4bcb('0x6'),'validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize[_0x4bcb('0x2')],'allowNull':![],'defaultValue':_0x4bcb('0x7'),'validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize[_0x4bcb('0x8')],'defaultValue':0xf},'remote':{'type':Sequelize['STRING']},'animation':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'header_shape':{'type':Sequelize[_0x4bcb('0x9')](_0x4bcb('0xa'),_0x4bcb('0xb')),'defaultValue':_0x4bcb('0xa')},'header_online':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':_0x4bcb('0xc')},'start_chat_button':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':'Chat'},'offline_chat_button':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':_0x4bcb('0xd')},'header_offline':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':'Contact\x20us'},'download_transcript':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':!![]},'timeout':{'type':Sequelize[_0x4bcb('0x8')],'defaultValue':0x0},'whiteLabel':{'type':Sequelize['STRING'],'defaultValue':_0x4bcb('0xf')},'defaultWhiteLabel':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':!![]},'sitepic':{'type':Sequelize[_0x4bcb('0x10')]},'closingQuestion':{'type':Sequelize['STRING'],'defaultValue':_0x4bcb('0x11')},'formSubmitSuccessMessage':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':_0x4bcb('0x12')},'formSubmitFailureMessage':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':'Form\x20submission\x20error'},'noteTitle':{'type':Sequelize['STRING'],'defaultValue':'Note'},'placeholderMessage':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':_0x4bcb('0x13')},'closingMessage':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':_0x4bcb('0x14')},'closingMessageButton':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':_0x4bcb('0xd')},'skipMessageButton':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':_0x4bcb('0x15')},'conditionAgreement':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':![]},'enableRating':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':![]},'enableFeedback':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':![]},'enableSendButton':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':![]},'feedbackTitle':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':_0x4bcb('0x16')},'ratingType':{'type':Sequelize[_0x4bcb('0x9')](_0x4bcb('0x17'),_0x4bcb('0x18')),'defaultValue':'star'},'ratingStarsNumber':{'type':Sequelize[_0x4bcb('0x8')],'defaultValue':0x5},'onlineForm':{'type':Sequelize['TEXT'],'defaultValue':function(){return JSON[_0x4bcb('0x19')]({'items':[{'type':'input','variable':null,'config':{'placeholder':_0x4bcb('0x1a'),'type':_0x4bcb('0x1b'),'required':!![]},'props':{'title':_0x4bcb('0x1a'),'helpText':''}},{'type':_0x4bcb('0x1c'),'props':{'title':_0x4bcb('0x4'),'helpText':''},'config':{'required':!![],'placeholder':_0x4bcb('0x4'),'type':_0x4bcb('0x4')},'variable':null}],'fromKey':0x1});},'get':function(){return this[_0x4bcb('0x1d')](_0x4bcb('0x1e'))?JSON[_0x4bcb('0x1f')](this[_0x4bcb('0x1d')](_0x4bcb('0x1e'))):{};},'set':function(_0x43f300){return this['setDataValue'](_0x4bcb('0x1e'),JSON[_0x4bcb('0x19')](_0x43f300));}},'offlineForm':{'type':Sequelize[_0x4bcb('0x10')],'defaultValue':function(){return JSON[_0x4bcb('0x19')]({'items':[{'type':_0x4bcb('0x1c'),'props':{'title':_0x4bcb('0x4'),'helpText':''},'config':{'required':!![],'placeholder':_0x4bcb('0x4'),'type':_0x4bcb('0x4')},'variable':null},{'type':_0x4bcb('0x20'),'config':{'placeholder':_0x4bcb('0x21')},'props':{'title':'Comments','helpText':'Leave\x20your\x20comments'}}],'fromKey':0x0});},'get':function(){return this[_0x4bcb('0x1d')](_0x4bcb('0x22'))?JSON['parse'](this['getDataValue'](_0x4bcb('0x22'))):{};},'set':function(_0x149190){return this[_0x4bcb('0x23')](_0x4bcb('0x22'),JSON[_0x4bcb('0x19')](_0x149190));}},'token':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':function(){return rs['generate']();}},'autoclose':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':![]},'forwardTranscript':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize[_0x4bcb('0x2')]},'forwardOffline':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize[_0x4bcb('0x2')]},'waitingTitle':{'type':Sequelize['STRING'],'defaultValue':_0x4bcb('0x24')},'waitingMessage':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':_0x4bcb('0x25')},'offlineMessageSubject':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':_0x4bcb('0x26')},'offlineMessageBody':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':_0x4bcb('0x27')},'enableUnmanagedNote':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':'Your\x20request\x20has\x20not\x20been\x20processed.'},'skipUnmanaged':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':'Skip'},'sendUnmanaged':{'type':Sequelize['STRING'],'defaultValue':_0x4bcb('0xd')},'enableCustomerAttachment':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'enableCustomerCheckmarks':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':![]},'agentAvatar':{'type':Sequelize[_0x4bcb('0x10')]},'showAgentAvatar':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':![]},'timezone':{'type':Sequelize[_0x4bcb('0x2')]},'notificationTemplate':{'type':Sequelize[_0x4bcb('0x10')],'defaultValue':function(){return _0x4bcb('0x28');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':![]},'agentIdentifier':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':_0x4bcb('0x29')},'waitForTheAssignedAgent':{'type':Sequelize[_0x4bcb('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':_0x4bcb('0x2a')},'verticalAlignment':{'type':Sequelize[_0x4bcb('0x8')],'defaultValue':0x1e},'messagesAlignment':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':_0x4bcb('0x2b')},'defaultTitle':{'type':Sequelize[_0x4bcb('0x2')]},'customerAvatar':{'type':Sequelize[_0x4bcb('0x10')]},'showCustomerAvatar':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':![]},'messageFontSize':{'type':Sequelize['INTEGER'],'defaultValue':0xc},'backgroundColor':{'type':Sequelize[_0x4bcb('0x2')],'allowNull':![],'defaultValue':_0x4bcb('0x2c'),'validate':{'notEmpty':!![]}},'queueTransfer':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x4bcb('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x4bcb('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':Sequelize[_0x4bcb('0x2')],'defaultValue':_0x4bcb('0x2d')},'systemAvatar':{'type':Sequelize['TEXT']},'mandatoryDispositionPauseId':{'type':Sequelize[_0x4bcb('0x8')],'comment':_0x4bcb('0x2e')},'mandatoryDisposition':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':![],'comment':_0x4bcb('0x2f'),'set':function(_0x2c22da){if(!_0x2c22da)this['setDataValue'](_0x4bcb('0x30'),null);this['setDataValue']('mandatoryDisposition',_0x2c22da);}},'vidaooEscalation':{'type':Sequelize[_0x4bcb('0xe')],'defaultValue':![]},'vidaooApiKey':{'type':Sequelize['STRING'],'defaultValue':![]}};