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