Built motion from commit 753c950e.|2.5.42
[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 _0x2180=['4800','v17,v27,v29','DADHI','KHOMP','SIP','TEXT','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','mandatoryDispositionPauseId','mandatoryDisposition','exports','STRING','ENUM','yes','xCALLY\x20Motion\x20Fax','7200','9600','12000','14400'];(function(_0x501510,_0x61caa9){var _0x1e6ee5=function(_0x32845b){while(--_0x32845b){_0x501510['push'](_0x501510['shift']());}};_0x1e6ee5(++_0x61caa9);}(_0x2180,0x10b));var _0x0218=function(_0x31295c,_0x2f2b82){_0x31295c=_0x31295c-0x0;var _0x2c150e=_0x2180[_0x31295c];return _0x2c150e;};'use strict';var Sequelize=require('sequelize');module[_0x0218('0x0')]={'name':{'type':Sequelize[_0x0218('0x1')],'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x0218('0x1')]},'ecm':{'type':Sequelize[_0x0218('0x2')](_0x0218('0x3'),'no'),'defaultValue':_0x0218('0x3')},'headerinfo':{'type':Sequelize[_0x0218('0x1')],'defaultValue':_0x0218('0x4')},'localstationid':{'type':Sequelize[_0x0218('0x1')],'unique':'localstationid'},'minrate':{'type':Sequelize[_0x0218('0x2')]('2400','4800',_0x0218('0x5'),_0x0218('0x6'),_0x0218('0x7'),_0x0218('0x8')),'defaultValue':_0x0218('0x9')},'maxrate':{'type':Sequelize[_0x0218('0x2')]('2400',_0x0218('0x9'),_0x0218('0x5'),_0x0218('0x6'),'12000',_0x0218('0x8')),'defaultValue':_0x0218('0x8')},'modem':{'type':Sequelize[_0x0218('0x1')],'defaultValue':_0x0218('0xa')},'gateway':{'type':Sequelize['STRING'],'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['ENUM']('SIP','IAX',_0x0218('0xb'),_0x0218('0xc')),'defaultValue':_0x0218('0xd')},'key':{'type':Sequelize[_0x0218('0x1')],'allowNull':![]},'notificationTemplate':{'type':Sequelize[_0x0218('0xe')],'defaultValue':function(){return _0x0218('0xf');}},'notificationSound':{'type':Sequelize[_0x0218('0x10')],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x0218('0x11')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x0218('0x10')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x0218('0x11')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x0218('0x10')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x0218('0x11')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x0218('0x11')],'allowNull':!![],'defaultValue':null,'comment':_0x0218('0x12')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x0218('0x13'),'set':function(_0x2e6a1a){if(!_0x2e6a1a)this[_0x0218('0x14')](_0x0218('0x15'),null);this['setDataValue'](_0x0218('0x16'),_0x2e6a1a);}}};