Built motion from commit (unavailable).|2.5.31
[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 _0xa30c=['INTEGER','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue','mandatoryDispositionPauseId','mandatoryDisposition','sequelize','randomstring','name','STRING','ENUM','twilio','TEXT','BOOLEAN'];(function(_0x1c34f9,_0x580b8a){var _0x23fcab=function(_0x2530ce){while(--_0x2530ce){_0x1c34f9['push'](_0x1c34f9['shift']());}};_0x23fcab(++_0x580b8a);}(_0xa30c,0x171));var _0xca30=function(_0x4e213e,_0x1823f4){_0x4e213e=_0x4e213e-0x0;var _0x430575=_0xa30c[_0x4e213e];return _0x430575;};'use strict';var Sequelize=require(_0xca30('0x0'));var rs=require(_0xca30('0x1'));module['exports']={'name':{'type':Sequelize['STRING'],'unique':_0xca30('0x2'),'allowNull':![]},'key':{'type':Sequelize[_0xca30('0x3')],'allowNull':![]},'remote':{'type':Sequelize[_0xca30('0x3')],'allowNull':![]},'token':{'type':Sequelize[_0xca30('0x3')],'defaultValue':function(){return rs['generate']();}},'phone':{'type':Sequelize[_0xca30('0x3')]},'type':{'type':Sequelize[_0xca30('0x4')](_0xca30('0x5'))},'accountSid':{'type':Sequelize[_0xca30('0x3')]},'authToken':{'type':Sequelize[_0xca30('0x3')]},'notificationTemplate':{'type':Sequelize[_0xca30('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[_0xca30('0x7')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0xca30('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0xca30('0x7')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0xca30('0x7')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0xca30('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0xca30('0x8')],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0xca30('0x7')],'defaultValue':![],'comment':_0xca30('0x9'),'set':function(_0xa6dc4e){if(!_0xa6dc4e){this[_0xca30('0xa')](_0xca30('0xb'),null);}this[_0xca30('0xa')](_0xca30('0xc'),_0xa6dc4e);}},'description':{'type':Sequelize['STRING']}};