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