bbe92490fd36e4a684612cc73393ffa2bc194385
[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 _0xb072=['INTEGER','BOOLEAN','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue','mandatoryDispositionPauseId','mandatoryDisposition','sequelize','randomstring','STRING','name','ENUM','sinch','TEXT'];(function(_0x22d6e6,_0x41a3e0){var _0x2eb9a2=function(_0x1be80c){while(--_0x1be80c){_0x22d6e6['push'](_0x22d6e6['shift']());}};_0x2eb9a2(++_0x41a3e0);}(_0xb072,0x1cd));var _0x2b07=function(_0x42b683,_0x150e5e){_0x42b683=_0x42b683-0x0;var _0xf3a6f2=_0xb072[_0x42b683];return _0xf3a6f2;};'use strict';var Sequelize=require(_0x2b07('0x0'));var rs=require(_0x2b07('0x1'));module['exports']={'name':{'type':Sequelize[_0x2b07('0x2')],'unique':_0x2b07('0x3'),'allowNull':![]},'key':{'type':Sequelize[_0x2b07('0x2')],'allowNull':![]},'remote':{'type':Sequelize[_0x2b07('0x2')],'allowNull':![]},'token':{'type':Sequelize[_0x2b07('0x2')],'defaultValue':function(){return rs['generate']();}},'phone':{'type':Sequelize[_0x2b07('0x2')]},'type':{'type':Sequelize[_0x2b07('0x4')]('twilio',_0x2b07('0x5'))},'accountSid':{'type':Sequelize[_0x2b07('0x2')]},'baseUrl':{'type':Sequelize[_0x2b07('0x2')]},'authToken':{'type':Sequelize[_0x2b07('0x2')]},'notificationTemplate':{'type':Sequelize[_0x2b07('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['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'waitForTheAssignedQueue':{'type':Sequelize[_0x2b07('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x2b07('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x2b07('0x8')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x2b07('0x7')],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x2b07('0x8')],'defaultValue':![],'comment':_0x2b07('0x9'),'set':function(_0x72f255){if(!_0x72f255){this[_0x2b07('0xa')](_0x2b07('0xb'),null);}this[_0x2b07('0xa')](_0x2b07('0xc'),_0x72f255);}},'description':{'type':Sequelize['STRING']}};