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