1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x3a71=['description','BOOLEAN','sequelize','util','exports','STRING','name','TEXT','long','stringify','isString','setDataValue','formData','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}'];(function(_0x35007a,_0x58a0d4){var _0x574f68=function(_0xd1c129){while(--_0xd1c129){_0x35007a['push'](_0x35007a['shift']());}};_0x574f68(++_0x58a0d4);}(_0x3a71,0xf0));var _0x13a7=function(_0x2d1370,_0x1af0f0){_0x2d1370=_0x2d1370-0x0;var _0x2c32cb=_0x3a71[_0x2d1370];return _0x2c32cb;};'use strict';var Sequelize=require(_0x13a7('0x0'));var _=require('lodash');var util=require(_0x13a7('0x1'));module[_0x13a7('0x2')]={'name':{'type':Sequelize[_0x13a7('0x3')],'unique':_0x13a7('0x4')},'description':{'type':Sequelize[_0x13a7('0x3')]},'formData':{'type':Sequelize[_0x13a7('0x5')](_0x13a7('0x6')),'set':function(_0x4fcde7){if(_['isObjectLike'](_0x4fcde7)){this['setDataValue']('formData',JSON[_0x13a7('0x7')](_0x4fcde7));}else if(_[_0x13a7('0x8')](_0x4fcde7)){this[_0x13a7('0x9')](_0x13a7('0xa'),_0x4fcde7);}else{this[_0x13a7('0x9')](_0x13a7('0xa'),util['format'](_0x13a7('0xb'),this['getDataValue']('name')||'',this['getDataValue'](_0x13a7('0xc'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x13a7('0xd')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};