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 _0xeaa7=['long','isObjectLike','setDataValue','formData','isString','format','getDataValue','name','description','sequelize','lodash','util','STRING','TEXT'];(function(_0x2e7c4a,_0xbd1a95){var _0x1894e9=function(_0x100263){while(--_0x100263){_0x2e7c4a['push'](_0x2e7c4a['shift']());}};_0x1894e9(++_0xbd1a95);}(_0xeaa7,0x13d));var _0x7eaa=function(_0x11a55c,_0x4eced9){_0x11a55c=_0x11a55c-0x0;var _0x26c390=_0xeaa7[_0x11a55c];return _0x26c390;};'use strict';var Sequelize=require(_0x7eaa('0x0'));var _=require(_0x7eaa('0x1'));var util=require(_0x7eaa('0x2'));module['exports']={'name':{'type':Sequelize[_0x7eaa('0x3')],'unique':'name'},'description':{'type':Sequelize[_0x7eaa('0x3')]},'formData':{'type':Sequelize[_0x7eaa('0x4')](_0x7eaa('0x5')),'set':function(_0x50447d){if(_[_0x7eaa('0x6')](_0x50447d)){this[_0x7eaa('0x7')](_0x7eaa('0x8'),JSON['stringify'](_0x50447d));}else if(_[_0x7eaa('0x9')](_0x50447d)){this[_0x7eaa('0x7')](_0x7eaa('0x8'),_0x50447d);}else{this[_0x7eaa('0x7')](_0x7eaa('0x8'),util[_0x7eaa('0xa')]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0x7eaa('0xb')](_0x7eaa('0xc'))||'',this[_0x7eaa('0xb')](_0x7eaa('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};