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