10acb049f09c1f16969ca27a30f0af47d6a469d1
[motion-next.git] / server / api / whatsappAccount / whatsappAccount.attributes.js
1 const a937_0x46b9=['sequelize','ENUM','BOOLEAN','TEXT','attributes','INTEGER','STRING','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','exports','twilio','name'];(function(_0x520cce,_0x5bd624){const _0x46b93e=function(_0x5b8a4b){while(--_0x5b8a4b){_0x520cce['push'](_0x520cce['shift']());}};_0x46b93e(++_0x5bd624);}(a937_0x46b9,0xd0));const a937_0x5b8a=function(_0x520cce,_0x5bd624){_0x520cce=_0x520cce-0x93;let _0x46b93e=a937_0x46b9[_0x520cce];return _0x46b93e;};const a937_0x75a668=a937_0x5b8a;'use strict';const {DataTypes}=require(a937_0x75a668(0x9b)),rs=require('randomstring'),attributes={'name':{'type':DataTypes['STRING'],'unique':a937_0x75a668(0x9a),'allowNull':![]},'key':{'type':DataTypes['STRING'],'allowNull':![]},'remote':{'type':DataTypes[a937_0x75a668(0x95)],'allowNull':![]},'token':{'type':DataTypes[a937_0x75a668(0x95)],'defaultValue':function(){return rs['generate']();}},'phone':{'type':DataTypes[a937_0x75a668(0x95)]},'type':{'type':DataTypes[a937_0x75a668(0x9c)](a937_0x75a668(0x99))},'accountSid':{'type':DataTypes[a937_0x75a668(0x95)]},'authToken':{'type':DataTypes[a937_0x75a668(0x95)]},'notificationTemplate':{'type':DataTypes[a937_0x75a668(0x9e)],'defaultValue':function(){return'Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}';}},'notificationSound':{'type':DataTypes[a937_0x75a668(0x9d)],'defaultValue':![]},'notificationShake':{'type':DataTypes[a937_0x75a668(0x9d)],'defaultValue':![]},'waitForTheAssignedAgent':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':DataTypes[a937_0x75a668(0x9d)],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes[a937_0x75a668(0x9d)],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes[a937_0x75a668(0x94)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':DataTypes['INTEGER'],'comment':a937_0x75a668(0x96)},'mandatoryDisposition':{'type':DataTypes[a937_0x75a668(0x9d)],'defaultValue':![],'comment':a937_0x75a668(0x97),'set':function(_0x47175b){!_0x47175b&&this['setDataValue']('mandatoryDispositionPauseId',null),this['setDataValue']('mandatoryDisposition',_0x47175b);}},'description':{'type':DataTypes['STRING']}};module[a937_0x75a668(0x98)][a937_0x75a668(0x93)]=attributes;