Built motion from commit b0a9a629.|2.6.33
[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 _0xcfa1=['sinch','Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}','BOOLEAN','INTEGER','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue','mandatoryDisposition','sequelize','exports','STRING','generate','twilio'];(function(_0x44e866,_0x17ce18){var _0x50eb6a=function(_0x75b5ea){while(--_0x75b5ea){_0x44e866['push'](_0x44e866['shift']());}};_0x50eb6a(++_0x17ce18);}(_0xcfa1,0xbe));var _0x1cfa=function(_0x397e5f,_0x454c8f){_0x397e5f=_0x397e5f-0x0;var _0x5302b8=_0xcfa1[_0x397e5f];return _0x5302b8;};'use strict';var Sequelize=require(_0x1cfa('0x0'));var rs=require('randomstring');module[_0x1cfa('0x1')]={'name':{'type':Sequelize['STRING'],'unique':'name','allowNull':![]},'key':{'type':Sequelize[_0x1cfa('0x2')],'allowNull':![]},'remote':{'type':Sequelize[_0x1cfa('0x2')],'allowNull':![]},'token':{'type':Sequelize[_0x1cfa('0x2')],'defaultValue':function(){return rs[_0x1cfa('0x3')]();}},'phone':{'type':Sequelize[_0x1cfa('0x2')]},'type':{'type':Sequelize['ENUM'](_0x1cfa('0x4'),_0x1cfa('0x5'))},'accountSid':{'type':Sequelize[_0x1cfa('0x2')]},'baseUrl':{'type':Sequelize['STRING']},'authToken':{'type':Sequelize['STRING']},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){return _0x1cfa('0x6');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'notificationShake':{'type':Sequelize[_0x1cfa('0x7')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x1cfa('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'waitForTheAssignedQueue':{'type':Sequelize[_0x1cfa('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x1cfa('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'comment':_0x1cfa('0x9')},'mandatoryDisposition':{'type':Sequelize[_0x1cfa('0x7')],'defaultValue':![],'comment':_0x1cfa('0xa'),'set':function(_0x6d5c70){if(!_0x6d5c70){this[_0x1cfa('0xb')]('mandatoryDispositionPauseId',null);}this[_0x1cfa('0xb')](_0x1cfa('0xc'),_0x6d5c70);}},'description':{'type':Sequelize[_0x1cfa('0x2')]}};