5757f151f4e169b515558c6b3b2fefd6482ab9fb
[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 _0x077a=['STRING','address','email','#011F6A','#ffffff','INTEGER','BOOLEAN','ENUM','rounded','squared','We\x20are\x20here!','Chat','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','stringify','input','name','text','getDataValue','onlineForm','textarea','Comments','Leave\x20your\x20comments','offlineForm','parse','setDataValue','generate','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.','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','Your\x20request\x20has\x20not\x20been\x20processed.','website_alias','alternate','#fafafa','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','mandatoryDispositionPauseId','mandatoryDisposition','sequelize','exports'];(function(_0x27f4dd,_0x6657dc){var _0x17410f=function(_0x40abc5){while(--_0x40abc5){_0x27f4dd['push'](_0x27f4dd['shift']());}};_0x17410f(++_0x6657dc);}(_0x077a,0x1f2));var _0xa077=function(_0xf2efae,_0x307737){_0xf2efae=_0xf2efae-0x0;var _0x241311=_0x077a[_0xf2efae];return _0x241311;};'use strict';var Sequelize=require(_0xa077('0x0'));var rs=require('randomstring');module[_0xa077('0x1')]={'name':{'type':Sequelize[_0xa077('0x2')],'allowNull':![]},'address':{'type':Sequelize[_0xa077('0x2')],'allowNull':![],'unique':_0xa077('0x3')},'description':{'type':Sequelize[_0xa077('0x2')]},'mapKey':{'type':Sequelize[_0xa077('0x2')],'defaultValue':_0xa077('0x4')},'mapKeyOffline':{'type':Sequelize[_0xa077('0x2')],'defaultValue':'email'},'key':{'type':Sequelize[_0xa077('0x2')],'allowNull':![]},'agentAlias':{'type':Sequelize[_0xa077('0x2')],'defaultValue':'Agent'},'customerAlias':{'type':Sequelize['STRING'],'defaultValue':'Me'},'color':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0xa077('0x5'),'validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize[_0xa077('0x2')],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0xa077('0x6'),'validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize[_0xa077('0x7')],'defaultValue':0xf},'remote':{'type':Sequelize[_0xa077('0x2')]},'animation':{'type':Sequelize[_0xa077('0x8')],'defaultValue':!![]},'header_shape':{'type':Sequelize[_0xa077('0x9')](_0xa077('0xa'),_0xa077('0xb')),'defaultValue':'rounded'},'header_online':{'type':Sequelize[_0xa077('0x2')],'defaultValue':_0xa077('0xc')},'start_chat_button':{'type':Sequelize[_0xa077('0x2')],'defaultValue':_0xa077('0xd')},'offline_chat_button':{'type':Sequelize['STRING'],'defaultValue':'Send'},'header_offline':{'type':Sequelize[_0xa077('0x2')],'defaultValue':_0xa077('0xe')},'download_transcript':{'type':Sequelize[_0xa077('0x8')],'defaultValue':!![]},'timeout':{'type':Sequelize[_0xa077('0x7')],'defaultValue':0x0},'whiteLabel':{'type':Sequelize[_0xa077('0x2')],'defaultValue':_0xa077('0xf')},'defaultWhiteLabel':{'type':Sequelize[_0xa077('0x8')],'defaultValue':!![]},'sitepic':{'type':Sequelize[_0xa077('0x10')]},'closingQuestion':{'type':Sequelize[_0xa077('0x2')],'defaultValue':_0xa077('0x11')},'formSubmitSuccessMessage':{'type':Sequelize[_0xa077('0x2')],'defaultValue':_0xa077('0x12')},'formSubmitFailureMessage':{'type':Sequelize[_0xa077('0x2')],'defaultValue':_0xa077('0x13')},'noteTitle':{'type':Sequelize[_0xa077('0x2')],'defaultValue':_0xa077('0x14')},'placeholderMessage':{'type':Sequelize[_0xa077('0x2')],'defaultValue':_0xa077('0x15')},'closingMessage':{'type':Sequelize[_0xa077('0x2')],'defaultValue':_0xa077('0x16')},'closingMessageButton':{'type':Sequelize[_0xa077('0x2')],'defaultValue':'Send'},'skipMessageButton':{'type':Sequelize['STRING'],'defaultValue':_0xa077('0x17')},'conditionAgreement':{'type':Sequelize[_0xa077('0x8')],'defaultValue':![]},'enableRating':{'type':Sequelize[_0xa077('0x8')],'defaultValue':![]},'enableFeedback':{'type':Sequelize[_0xa077('0x8')],'defaultValue':![]},'enableSendButton':{'type':Sequelize[_0xa077('0x8')],'defaultValue':![]},'feedbackTitle':{'type':Sequelize['STRING'],'defaultValue':_0xa077('0x18')},'ratingType':{'type':Sequelize['ENUM'](_0xa077('0x19'),_0xa077('0x1a')),'defaultValue':_0xa077('0x19')},'ratingStarsNumber':{'type':Sequelize['INTEGER'],'defaultValue':0x5},'onlineForm':{'type':Sequelize[_0xa077('0x10')],'defaultValue':function(){return JSON[_0xa077('0x1b')]({'items':[{'type':_0xa077('0x1c'),'variable':null,'config':{'placeholder':_0xa077('0x1d'),'type':_0xa077('0x1e'),'required':!![]},'props':{'title':'name','helpText':''}},{'type':_0xa077('0x1c'),'props':{'title':_0xa077('0x4'),'helpText':''},'config':{'required':!![],'placeholder':_0xa077('0x4'),'type':_0xa077('0x4')},'variable':null}],'fromKey':0x1});},'get':function(){return this[_0xa077('0x1f')](_0xa077('0x20'))?JSON['parse'](this['getDataValue'](_0xa077('0x20'))):{};},'set':function(_0x4dc63e){return this['setDataValue']('onlineForm',JSON[_0xa077('0x1b')](_0x4dc63e));}},'offlineForm':{'type':Sequelize[_0xa077('0x10')],'defaultValue':function(){return JSON[_0xa077('0x1b')]({'items':[{'type':_0xa077('0x1c'),'props':{'title':'email','helpText':''},'config':{'required':!![],'placeholder':_0xa077('0x4'),'type':_0xa077('0x4')},'variable':null},{'type':_0xa077('0x21'),'config':{'placeholder':'Comments'},'props':{'title':_0xa077('0x22'),'helpText':_0xa077('0x23')}}],'fromKey':0x0});},'get':function(){return this['getDataValue'](_0xa077('0x24'))?JSON[_0xa077('0x25')](this[_0xa077('0x1f')](_0xa077('0x24'))):{};},'set':function(_0x4612cc){return this[_0xa077('0x26')](_0xa077('0x24'),JSON[_0xa077('0x1b')](_0x4612cc));}},'token':{'type':Sequelize[_0xa077('0x2')],'defaultValue':function(){return rs[_0xa077('0x27')]();}},'autoclose':{'type':Sequelize[_0xa077('0x8')],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize[_0xa077('0x8')],'defaultValue':![]},'forwardTranscript':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize[_0xa077('0x2')]},'forwardOffline':{'type':Sequelize[_0xa077('0x8')],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize[_0xa077('0x2')]},'waitingTitle':{'type':Sequelize['STRING'],'defaultValue':_0xa077('0x28')},'waitingMessage':{'type':Sequelize[_0xa077('0x2')],'defaultValue':_0xa077('0x29')},'offlineMessageSubject':{'type':Sequelize[_0xa077('0x2')],'defaultValue':'New\x20offline\x20message\x20from\x20websiteName'},'offlineMessageBody':{'type':Sequelize['STRING'],'defaultValue':_0xa077('0x2a')},'enableUnmanagedNote':{'type':Sequelize[_0xa077('0x8')],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize['STRING'],'defaultValue':_0xa077('0x2b')},'skipUnmanaged':{'type':Sequelize['STRING'],'defaultValue':_0xa077('0x17')},'sendUnmanaged':{'type':Sequelize['STRING'],'defaultValue':'Send'},'enableCustomerAttachment':{'type':Sequelize[_0xa077('0x8')],'defaultValue':![]},'enableCustomerCheckmarks':{'type':Sequelize[_0xa077('0x8')],'defaultValue':![]},'agentAvatar':{'type':Sequelize['TEXT']},'showAgentAvatar':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'timezone':{'type':Sequelize['STRING']},'notificationTemplate':{'type':Sequelize[_0xa077('0x10')],'defaultValue':function(){return'Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}';}},'notificationSound':{'type':Sequelize[_0xa077('0x8')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0xa077('0x8')],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize[_0xa077('0x8')],'defaultValue':![]},'agentIdentifier':{'type':Sequelize[_0xa077('0x2')],'defaultValue':_0xa077('0x2c')},'waitForTheAssignedAgent':{'type':Sequelize[_0xa077('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize[_0xa077('0x2')],'defaultValue':'bottom_right'},'verticalAlignment':{'type':Sequelize[_0xa077('0x7')],'defaultValue':0x1e},'messagesAlignment':{'type':Sequelize[_0xa077('0x2')],'defaultValue':_0xa077('0x2d')},'defaultTitle':{'type':Sequelize[_0xa077('0x2')]},'customerAvatar':{'type':Sequelize[_0xa077('0x10')]},'showCustomerAvatar':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'messageFontSize':{'type':Sequelize[_0xa077('0x7')],'defaultValue':0xc},'backgroundColor':{'type':Sequelize[_0xa077('0x2')],'allowNull':![],'defaultValue':_0xa077('0x2e'),'validate':{'notEmpty':!![]}},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0xa077('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0xa077('0x8')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0xa077('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':Sequelize[_0xa077('0x2')],'defaultValue':'System'},'systemAvatar':{'type':Sequelize[_0xa077('0x10')]},'mandatoryDispositionPauseId':{'type':Sequelize[_0xa077('0x7')],'comment':_0xa077('0x2f')},'mandatoryDisposition':{'type':Sequelize[_0xa077('0x8')],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x9f9310){if(!_0x9f9310)this[_0xa077('0x26')](_0xa077('0x30'),null);this['setDataValue'](_0xa077('0x31'),_0x9f9310);}},'vidaooEscalation':{'type':Sequelize[_0xa077('0x8')],'defaultValue':![]},'vidaooApiKey':{'type':Sequelize[_0xa077('0x2')],'defaultValue':![]}};