37fc2b5ff974cdc58b4261810c5ed6bfe078c9b4
[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 _0x45a0=['BOOLEAN','INTEGER','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','setDataValue','mandatoryDispositionPauseId','sequelize','exports','STRING','xCALLY\x20Motion\x20Fax','4800','7200','9600','12000','14400','ENUM','v17,v27,v29','SIP','IAX','KHOMP','TEXT','Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}'];(function(_0x48db8c,_0x4a1555){var _0x232929=function(_0x29e11c){while(--_0x29e11c){_0x48db8c['push'](_0x48db8c['shift']());}};_0x232929(++_0x4a1555);}(_0x45a0,0x1e8));var _0x045a=function(_0xe02e2d,_0x301fb2){_0xe02e2d=_0xe02e2d-0x0;var _0x14f0ee=_0x45a0[_0xe02e2d];return _0x14f0ee;};'use strict';var Sequelize=require(_0x045a('0x0'));module[_0x045a('0x1')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x045a('0x2')]},'ecm':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'yes'},'headerinfo':{'type':Sequelize[_0x045a('0x2')],'defaultValue':_0x045a('0x3')},'localstationid':{'type':Sequelize[_0x045a('0x2')],'unique':'localstationid'},'minrate':{'type':Sequelize['ENUM']('2400',_0x045a('0x4'),_0x045a('0x5'),_0x045a('0x6'),_0x045a('0x7'),_0x045a('0x8')),'defaultValue':_0x045a('0x4')},'maxrate':{'type':Sequelize[_0x045a('0x9')]('2400',_0x045a('0x4'),_0x045a('0x5'),_0x045a('0x6'),_0x045a('0x7'),_0x045a('0x8')),'defaultValue':_0x045a('0x8')},'modem':{'type':Sequelize[_0x045a('0x2')],'defaultValue':_0x045a('0xa')},'gateway':{'type':Sequelize[_0x045a('0x2')],'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['INTEGER'],'defaultValue':0x1388,'validate':{'min':0x3e8}},'tech':{'type':Sequelize[_0x045a('0x9')](_0x045a('0xb'),_0x045a('0xc'),'DADHI',_0x045a('0xd')),'defaultValue':_0x045a('0xb')},'key':{'type':Sequelize['STRING'],'allowNull':![]},'notificationTemplate':{'type':Sequelize[_0x045a('0xe')],'defaultValue':function(){return _0x045a('0xf');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x045a('0x10')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x045a('0x10')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x045a('0x11')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x045a('0x11')],'allowNull':!![],'defaultValue':null,'comment':_0x045a('0x12')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x68771a){if(!_0x68771a)this[_0x045a('0x13')](_0x045a('0x14'),null);this[_0x045a('0x13')]('mandatoryDisposition',_0x68771a);}}};