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