e9f07f7767a875f3fe863303bcb8d032d9f970ed
[motion2.git] / server / api / faxAccount / faxAccount.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 _0x199c=['SIP','IAX','DADHI','TEXT','Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}','BOOLEAN','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue','mandatoryDispositionPauseId','mandatoryDisposition','STRING','ENUM','yes','xCALLY\x20Motion\x20Fax','2400','9600','12000','14400','4800','7200','v17,v27,v29','INTEGER'];(function(_0x44fef1,_0x132cf4){var _0x3c3a04=function(_0x175a90){while(--_0x175a90){_0x44fef1['push'](_0x44fef1['shift']());}};_0x3c3a04(++_0x132cf4);}(_0x199c,0x1d8));var _0xc199=function(_0x1772e7,_0x3be1fa){_0x1772e7=_0x1772e7-0x0;var _0x1c475e=_0x199c[_0x1772e7];return _0x1c475e;};'use strict';var Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0xc199('0x0')],'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0xc199('0x0')]},'ecm':{'type':Sequelize[_0xc199('0x1')](_0xc199('0x2'),'no'),'defaultValue':_0xc199('0x2')},'headerinfo':{'type':Sequelize[_0xc199('0x0')],'defaultValue':_0xc199('0x3')},'localstationid':{'type':Sequelize[_0xc199('0x0')],'unique':'localstationid'},'minrate':{'type':Sequelize[_0xc199('0x1')](_0xc199('0x4'),'4800','7200',_0xc199('0x5'),_0xc199('0x6'),_0xc199('0x7')),'defaultValue':_0xc199('0x8')},'maxrate':{'type':Sequelize[_0xc199('0x1')](_0xc199('0x4'),_0xc199('0x8'),_0xc199('0x9'),'9600',_0xc199('0x6'),_0xc199('0x7')),'defaultValue':_0xc199('0x7')},'modem':{'type':Sequelize[_0xc199('0x0')],'defaultValue':_0xc199('0xa')},'gateway':{'type':Sequelize[_0xc199('0x0')],'defaultValue':'no','validate':{'is':/^(?:yes|no|[0-9]+)$/}},'faxdetect':{'type':Sequelize['STRING'],'defaultValue':'no','validate':{'is':/^(?:yes|no|t38|cng|[0-9]+)$/}},'t38timeout':{'type':Sequelize[_0xc199('0xb')],'defaultValue':0x1388,'validate':{'min':0x3e8}},'tech':{'type':Sequelize[_0xc199('0x1')](_0xc199('0xc'),_0xc199('0xd'),_0xc199('0xe'),'KHOMP'),'defaultValue':_0xc199('0xc')},'key':{'type':Sequelize[_0xc199('0x0')],'allowNull':![]},'notificationTemplate':{'type':Sequelize[_0xc199('0xf')],'defaultValue':function(){return _0xc199('0x10');}},'notificationSound':{'type':Sequelize[_0xc199('0x11')],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'waitForTheAssignedQueue':{'type':Sequelize[_0xc199('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0xc199('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0xc199('0x11')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0xc199('0xb')],'allowNull':!![],'defaultValue':null,'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0xc199('0x11')],'defaultValue':![],'comment':_0xc199('0x12'),'set':function(_0x5ee3f8){if(!_0x5ee3f8)this[_0xc199('0x13')](_0xc199('0x14'),null);this[_0xc199('0x13')](_0xc199('0x15'),_0x5ee3f8);}}};