Built motion from commit (unavailable).|2.5.18
[motion2.git] / server / api / openchannelAccount / openchannelAccount.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 _0x4a24=['BOOLEAN','INTEGER','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','mandatoryDispositionPauseId','setDataValue','randomstring','exports','STRING','name','generate','Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}'];(function(_0x5198c6,_0x591660){var _0xc13840=function(_0x13a600){while(--_0x13a600){_0x5198c6['push'](_0x5198c6['shift']());}};_0xc13840(++_0x591660);}(_0x4a24,0xe1));var _0x44a2=function(_0x946518,_0x22816f){_0x946518=_0x946518-0x0;var _0x909b69=_0x4a24[_0x946518];return _0x909b69;};'use strict';var Sequelize=require('sequelize');var rs=require(_0x44a2('0x0'));module[_0x44a2('0x1')]={'name':{'type':Sequelize[_0x44a2('0x2')],'unique':_0x44a2('0x3'),'allowNull':![]},'description':{'type':Sequelize[_0x44a2('0x2')]},'token':{'type':Sequelize['STRING'],'defaultValue':function(){return rs[_0x44a2('0x4')]();}},'replyUri':{'type':Sequelize[_0x44a2('0x2')],'validate':{'isUrl':!![]}},'key':{'type':Sequelize['STRING'],'allowNull':![]},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){return _0x44a2('0x5');}},'notificationSound':{'type':Sequelize[_0x44a2('0x6')],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x44a2('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'mapKey':{'type':Sequelize[_0x44a2('0x2')]},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x44a2('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x44a2('0x6')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x44a2('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x44a2('0x7')],'allowNull':!![],'defaultValue':null,'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x44a2('0x8'),'set':function(_0x623be0){if(!_0x623be0)this['setDataValue'](_0x44a2('0x9'),null);this[_0x44a2('0xa')]('mandatoryDisposition',_0x623be0);}}};