86b625baf27d1b66c5faf3bd778554181afbcee2
[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 _0x9bd6=['BOOLEAN','INTEGER','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue','mandatoryDispositionPauseId','mandatoryDisposition','sequelize','exports','name','STRING','ENUM','Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}'];(function(_0xca047f,_0x48590a){var _0x17cc5a=function(_0x50cd2c){while(--_0x50cd2c){_0xca047f['push'](_0xca047f['shift']());}};_0x17cc5a(++_0x48590a);}(_0x9bd6,0xae));var _0x69bd=function(_0x51c24b,_0x4b77d8){_0x51c24b=_0x51c24b-0x0;var _0x4eaf35=_0x9bd6[_0x51c24b];return _0x4eaf35;};'use strict';var Sequelize=require(_0x69bd('0x0'));var rs=require('randomstring');module[_0x69bd('0x1')]={'name':{'type':Sequelize['STRING'],'unique':_0x69bd('0x2'),'allowNull':![]},'key':{'type':Sequelize['STRING'],'allowNull':![]},'remote':{'type':Sequelize[_0x69bd('0x3')],'allowNull':![]},'token':{'type':Sequelize['STRING'],'defaultValue':function(){return rs['generate']();}},'phone':{'type':Sequelize[_0x69bd('0x3')]},'type':{'type':Sequelize[_0x69bd('0x4')]('twilio','sinch')},'accountSid':{'type':Sequelize[_0x69bd('0x3')]},'baseUrl':{'type':Sequelize[_0x69bd('0x3')]},'authToken':{'type':Sequelize[_0x69bd('0x3')]},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){return _0x69bd('0x5');}},'notificationSound':{'type':Sequelize[_0x69bd('0x6')],'defaultValue':![]},'notificationShake':{'type':Sequelize[_0x69bd('0x6')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x69bd('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x69bd('0x6')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x69bd('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x69bd('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x69bd('0x7')],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x69bd('0x6')],'defaultValue':![],'comment':_0x69bd('0x8'),'set':function(_0x4c2b88){if(!_0x4c2b88){this[_0x69bd('0x9')](_0x69bd('0xa'),null);}this[_0x69bd('0x9')](_0x69bd('0xb'),_0x4c2b88);}},'description':{'type':Sequelize['STRING']}};