Built motion from commit 67e5df37.|2.0.68
[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 _0x5f5d=['address','email','Agent','#9f946a','#ffffff','INTEGER','BOOLEAN','ENUM','rounded','squared','Chat','Send','Contact\x20us','Powered\x20by\x20xCALLY','TEXT','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','Form\x20properly\x20submitted','Form\x20submission\x20error','Thanks\x20you\x20for\x20your\x20time!','Skip','star','thumb','stringify','name','text','input','getDataValue','onlineForm','setDataValue','textarea','Comments','offlineForm','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.','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','randomstring','exports','STRING'];(function(_0x432682,_0x253044){var _0x463d05=function(_0xa73403){while(--_0xa73403){_0x432682['push'](_0x432682['shift']());}};_0x463d05(++_0x253044);}(_0x5f5d,0x15d));var _0xd5f5=function(_0x176521,_0x30b1e4){_0x176521=_0x176521-0x0;var _0x177589=_0x5f5d[_0x176521];return _0x177589;};'use strict';var Sequelize=require('sequelize');var rs=require(_0xd5f5('0x0'));module[_0xd5f5('0x1')]={'name':{'type':Sequelize[_0xd5f5('0x2')],'allowNull':![]},'address':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0xd5f5('0x3')},'description':{'type':Sequelize['STRING']},'mapKey':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':_0xd5f5('0x4')},'mapKeyOffline':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':_0xd5f5('0x4')},'key':{'type':Sequelize[_0xd5f5('0x2')],'allowNull':![]},'agentAlias':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':_0xd5f5('0x5')},'customerAlias':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':'Me'},'color':{'type':Sequelize[_0xd5f5('0x2')],'allowNull':![],'defaultValue':'#9f946a','validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize[_0xd5f5('0x2')],'allowNull':![],'defaultValue':_0xd5f5('0x6'),'validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize[_0xd5f5('0x2')],'allowNull':![],'defaultValue':_0xd5f5('0x7'),'validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize[_0xd5f5('0x8')],'defaultValue':0xf},'remote':{'type':Sequelize[_0xd5f5('0x2')]},'animation':{'type':Sequelize[_0xd5f5('0x9')],'defaultValue':!![]},'header_shape':{'type':Sequelize[_0xd5f5('0xa')](_0xd5f5('0xb'),_0xd5f5('0xc')),'defaultValue':_0xd5f5('0xb')},'header_online':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':'We\x20are\x20here!'},'start_chat_button':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':_0xd5f5('0xd')},'offline_chat_button':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':_0xd5f5('0xe')},'header_offline':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':_0xd5f5('0xf')},'download_transcript':{'type':Sequelize[_0xd5f5('0x9')],'defaultValue':!![]},'timeout':{'type':Sequelize[_0xd5f5('0x8')],'defaultValue':0x0},'whiteLabel':{'type':Sequelize['STRING'],'defaultValue':_0xd5f5('0x10')},'defaultWhiteLabel':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sitepic':{'type':Sequelize[_0xd5f5('0x11')]},'closingQuestion':{'type':Sequelize['STRING'],'defaultValue':_0xd5f5('0x12')},'formSubmitSuccessMessage':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':_0xd5f5('0x13')},'formSubmitFailureMessage':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':_0xd5f5('0x14')},'noteTitle':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':'Note'},'placeholderMessage':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':'Type\x20a\x20message'},'closingMessage':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':_0xd5f5('0x15')},'closingMessageButton':{'type':Sequelize['STRING'],'defaultValue':_0xd5f5('0xe')},'skipMessageButton':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':_0xd5f5('0x16')},'conditionAgreement':{'type':Sequelize[_0xd5f5('0x9')],'defaultValue':![]},'enableRating':{'type':Sequelize[_0xd5f5('0x9')],'defaultValue':![]},'enableFeedback':{'type':Sequelize[_0xd5f5('0x9')],'defaultValue':![]},'ratingType':{'type':Sequelize['ENUM'](_0xd5f5('0x17'),_0xd5f5('0x18')),'defaultValue':_0xd5f5('0x17')},'ratingStarsNumber':{'type':Sequelize[_0xd5f5('0x8')],'defaultValue':0x5},'onlineForm':{'type':Sequelize[_0xd5f5('0x11')],'defaultValue':function(){return JSON[_0xd5f5('0x19')]({'items':[{'type':'input','variable':null,'config':{'placeholder':_0xd5f5('0x1a'),'type':_0xd5f5('0x1b'),'required':!![]},'props':{'title':_0xd5f5('0x1a'),'helpText':''}},{'type':_0xd5f5('0x1c'),'props':{'title':_0xd5f5('0x4'),'helpText':''},'config':{'required':!![],'placeholder':_0xd5f5('0x4'),'type':'email'},'variable':null}],'fromKey':0x1});},'get':function(){return this[_0xd5f5('0x1d')](_0xd5f5('0x1e'))?JSON['parse'](this['getDataValue']('onlineForm')):{};},'set':function(_0x12ebd8){return this[_0xd5f5('0x1f')]('onlineForm',JSON[_0xd5f5('0x19')](_0x12ebd8));}},'offlineForm':{'type':Sequelize[_0xd5f5('0x11')],'defaultValue':function(){return JSON['stringify']({'items':[{'type':_0xd5f5('0x1c'),'props':{'title':_0xd5f5('0x4'),'helpText':''},'config':{'required':!![],'placeholder':'email','type':_0xd5f5('0x4')},'variable':null},{'type':_0xd5f5('0x20'),'config':{'placeholder':_0xd5f5('0x21')},'props':{'title':_0xd5f5('0x21'),'helpText':'Leave\x20your\x20comments'}}],'fromKey':0x0});},'get':function(){return this['getDataValue']('offlineForm')?JSON['parse'](this['getDataValue'](_0xd5f5('0x22'))):{};},'set':function(_0x50177b){return this[_0xd5f5('0x1f')](_0xd5f5('0x22'),JSON[_0xd5f5('0x19')](_0x50177b));}},'token':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':function(){return rs[_0xd5f5('0x23')]();}},'autoclose':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize[_0xd5f5('0x9')],'defaultValue':![]},'forwardTranscript':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize[_0xd5f5('0x2')]},'forwardOffline':{'type':Sequelize[_0xd5f5('0x9')],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize[_0xd5f5('0x2')]},'waitingTitle':{'type':Sequelize['STRING'],'defaultValue':_0xd5f5('0x24')},'waitingMessage':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':_0xd5f5('0x25')},'offlineMessageSubject':{'type':Sequelize['STRING'],'defaultValue':_0xd5f5('0x26')},'offlineMessageBody':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':_0xd5f5('0x27')},'enableUnmanagedNote':{'type':Sequelize[_0xd5f5('0x9')],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':'Your\x20request\x20has\x20not\x20been\x20processed.'},'skipUnmanaged':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':_0xd5f5('0x16')},'sendUnmanaged':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':'Send'},'enableCustomerAttachment':{'type':Sequelize[_0xd5f5('0x9')],'defaultValue':![]},'agentAvatar':{'type':Sequelize[_0xd5f5('0x11')]},'showAgentAvatar':{'type':Sequelize[_0xd5f5('0x9')],'defaultValue':![]},'timezone':{'type':Sequelize['STRING']},'notificationTemplate':{'type':Sequelize[_0xd5f5('0x11')],'defaultValue':function(){return _0xd5f5('0x28');}},'notificationSound':{'type':Sequelize[_0xd5f5('0x9')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0xd5f5('0x9')],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize[_0xd5f5('0x9')],'defaultValue':![]},'agentIdentifier':{'type':Sequelize['STRING'],'defaultValue':_0xd5f5('0x29')},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':_0xd5f5('0x2a')},'verticalAlignment':{'type':Sequelize[_0xd5f5('0x8')],'defaultValue':0x1e},'messagesAlignment':{'type':Sequelize[_0xd5f5('0x2')],'defaultValue':_0xd5f5('0x2b')},'defaultTitle':{'type':Sequelize[_0xd5f5('0x2')]},'customerAvatar':{'type':Sequelize[_0xd5f5('0x11')]},'showCustomerAvatar':{'type':Sequelize[_0xd5f5('0x9')],'defaultValue':![]}};