d905dd3178355563bcc41f9a5ff19f3dc0f0afbf
[motion2.git] / server / api / whatsappAccount / whatsappAccount.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 _0x3866=['randomstring','exports','STRING','name','generate','twilio','TEXT','INTEGER','BOOLEAN','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue'];(function(_0x6c9266,_0x3e39dc){var _0x1f0122=function(_0x563486){while(--_0x563486){_0x6c9266['push'](_0x6c9266['shift']());}};_0x1f0122(++_0x3e39dc);}(_0x3866,0xf0));var _0x6386=function(_0x3341af,_0x1e9ace){_0x3341af=_0x3341af-0x0;var _0x5b7003=_0x3866[_0x3341af];return _0x5b7003;};'use strict';var Sequelize=require('sequelize');var rs=require(_0x6386('0x0'));module[_0x6386('0x1')]={'name':{'type':Sequelize[_0x6386('0x2')],'unique':_0x6386('0x3'),'allowNull':![]},'key':{'type':Sequelize[_0x6386('0x2')],'allowNull':![]},'remote':{'type':Sequelize[_0x6386('0x2')],'allowNull':![]},'token':{'type':Sequelize[_0x6386('0x2')],'defaultValue':function(){return rs[_0x6386('0x4')]();}},'phone':{'type':Sequelize['STRING']},'type':{'type':Sequelize['ENUM'](_0x6386('0x5'),'sinch')},'accountSid':{'type':Sequelize[_0x6386('0x2')]},'baseUrl':{'type':Sequelize['STRING']},'authToken':{'type':Sequelize[_0x6386('0x2')]},'notificationTemplate':{'type':Sequelize[_0x6386('0x6')],'defaultValue':function(){return'Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}';}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x6386('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x6386('0x8')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x6386('0x8')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x6386('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x6386('0x7')],'comment':_0x6386('0x9')},'mandatoryDisposition':{'type':Sequelize[_0x6386('0x8')],'defaultValue':![],'comment':_0x6386('0xa'),'set':function(_0x1f977f){if(!_0x1f977f){this[_0x6386('0xb')]('mandatoryDispositionPauseId',null);}this['setDataValue']('mandatoryDisposition',_0x1f977f);}},'description':{'type':Sequelize[_0x6386('0x2')]}};