Built motion from commit (unavailable).|2.5.30
[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 _0xc94f=['IAX','DADHI','KHOMP','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','localstationid','4800','9600','12000','14400','2400','7200','v17,v27,v29','INTEGER'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xc94f,0xf0));var _0xfc94=function(_0x43b068,_0x400bbe){_0x43b068=_0x43b068-0x0;var _0x269c2b=_0xc94f[_0x43b068];return _0x269c2b;};'use strict';var Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0xfc94('0x0')],'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize['STRING']},'ecm':{'type':Sequelize[_0xfc94('0x1')](_0xfc94('0x2'),'no'),'defaultValue':_0xfc94('0x2')},'headerinfo':{'type':Sequelize[_0xfc94('0x0')],'defaultValue':_0xfc94('0x3')},'localstationid':{'type':Sequelize[_0xfc94('0x0')],'unique':_0xfc94('0x4')},'minrate':{'type':Sequelize[_0xfc94('0x1')]('2400',_0xfc94('0x5'),'7200',_0xfc94('0x6'),_0xfc94('0x7'),_0xfc94('0x8')),'defaultValue':_0xfc94('0x5')},'maxrate':{'type':Sequelize[_0xfc94('0x1')](_0xfc94('0x9'),_0xfc94('0x5'),_0xfc94('0xa'),_0xfc94('0x6'),'12000',_0xfc94('0x8')),'defaultValue':_0xfc94('0x8')},'modem':{'type':Sequelize[_0xfc94('0x0')],'defaultValue':_0xfc94('0xb')},'gateway':{'type':Sequelize['STRING'],'defaultValue':'no','validate':{'is':/^(?:yes|no|[0-9]+)$/}},'faxdetect':{'type':Sequelize[_0xfc94('0x0')],'defaultValue':'no','validate':{'is':/^(?:yes|no|t38|cng|[0-9]+)$/}},'t38timeout':{'type':Sequelize[_0xfc94('0xc')],'defaultValue':0x1388,'validate':{'min':0x3e8}},'tech':{'type':Sequelize[_0xfc94('0x1')]('SIP',_0xfc94('0xd'),_0xfc94('0xe'),_0xfc94('0xf')),'defaultValue':'SIP'},'key':{'type':Sequelize[_0xfc94('0x0')],'allowNull':![]},'notificationTemplate':{'type':Sequelize[_0xfc94('0x10')],'defaultValue':function(){return _0xfc94('0x11');}},'notificationSound':{'type':Sequelize[_0xfc94('0x12')],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0xfc94('0xc')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0xfc94('0x12')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0xfc94('0xc')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0xfc94('0x12')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0xfc94('0xc')],'allowNull':!![],'defaultValue':null,'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0xfc94('0x13'),'set':function(_0x2bade6){if(!_0x2bade6)this[_0xfc94('0x14')](_0xfc94('0x15'),null);this[_0xfc94('0x14')](_0xfc94('0x16'),_0x2bade6);}}};