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