Built motion from commit dc14b02d.|2.6.27
[motion2.git] / server / api / smsAccount / smsAccount.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 _0x8885=['setDataValue','mandatoryDispositionPauseId','mandatoryDisposition','sequelize','randomstring','exports','STRING','ENUM','skebby','connectel','clicksend','plivo','clickatell','csc','infobip','intelepeer','BOOLEAN','TEXT','Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}','INTEGER','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue'];(function(_0x57b54c,_0x54ce0d){var _0x59cc19=function(_0xa33bc6){while(--_0xa33bc6){_0x57b54c['push'](_0x57b54c['shift']());}};_0x59cc19(++_0x54ce0d);}(_0x8885,0x1bb));var _0x5888=function(_0xad2ab5,_0x488485){_0xad2ab5=_0xad2ab5-0x0;var _0x2ab966=_0x8885[_0xad2ab5];return _0x2ab966;};'use strict';var Sequelize=require(_0x5888('0x0'));var rs=require(_0x5888('0x1'));module[_0x5888('0x2')]={'name':{'type':Sequelize['STRING'],'unique':'name','allowNull':![]},'key':{'type':Sequelize[_0x5888('0x3')],'allowNull':![]},'remote':{'type':Sequelize[_0x5888('0x3')],'allowNull':![]},'token':{'type':Sequelize[_0x5888('0x3')],'defaultValue':function(){return rs['generate']();}},'phone':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x5888('0x4')]('twilio',_0x5888('0x5'),_0x5888('0x6'),_0x5888('0x7'),_0x5888('0x8'),_0x5888('0x9'),'bandwidth',_0x5888('0xa'),_0x5888('0xb'),_0x5888('0xc'))},'accountSid':{'type':Sequelize[_0x5888('0x3')]},'authId':{'type':Sequelize[_0x5888('0x3')]},'authToken':{'type':Sequelize['STRING']},'smsMethod':{'type':Sequelize['ENUM']('SI','TI','GP')},'username':{'type':Sequelize[_0x5888('0x3')]},'password':{'type':Sequelize[_0x5888('0x3')]},'apiKey':{'type':Sequelize['STRING']},'applicationId':{'type':Sequelize[_0x5888('0x3')]},'accountId':{'type':Sequelize['STRING']},'senderString':{'type':Sequelize[_0x5888('0x3')]},'deliveryReport':{'type':Sequelize[_0x5888('0xd')],'defaultValue':![]},'description':{'type':Sequelize['STRING']},'notificationTemplate':{'type':Sequelize[_0x5888('0xe')],'defaultValue':function(){return _0x5888('0xf');}},'notificationSound':{'type':Sequelize[_0x5888('0xd')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x5888('0xd')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'waitForTheAssignedQueue':{'type':Sequelize[_0x5888('0x10')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x5888('0xd')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x5888('0x10')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x5888('0x10')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'baseUrl':{'type':Sequelize[_0x5888('0x3')]},'mandatoryDispositionPauseId':{'type':Sequelize[_0x5888('0x10')],'comment':_0x5888('0x11')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x5888('0x12'),'set':function(_0x4efc6e){if(!_0x4efc6e)this[_0x5888('0x13')](_0x5888('0x14'),null);this[_0x5888('0x13')](_0x5888('0x15'),_0x4efc6e);}}};