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 _0x40f6=['exports','STRING','name','TEXT','long','setDataValue','formData','stringify','isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','BOOLEAN','sequelize','lodash','util'];(function(_0x50007c,_0x1cbf11){var _0x5c1ec7=function(_0x52d038){while(--_0x52d038){_0x50007c['push'](_0x50007c['shift']());}};_0x5c1ec7(++_0x1cbf11);}(_0x40f6,0xfd));var _0x640f=function(_0x31e2e0,_0x3238b2){_0x31e2e0=_0x31e2e0-0x0;var _0x4addef=_0x40f6[_0x31e2e0];return _0x4addef;};'use strict';var Sequelize=require(_0x640f('0x0'));var _=require(_0x640f('0x1'));var util=require(_0x640f('0x2'));module[_0x640f('0x3')]={'name':{'type':Sequelize[_0x640f('0x4')],'unique':_0x640f('0x5')},'description':{'type':Sequelize[_0x640f('0x4')]},'formData':{'type':Sequelize[_0x640f('0x6')](_0x640f('0x7')),'set':function(_0x3a83c0){if(_['isObjectLike'](_0x3a83c0)){this[_0x640f('0x8')](_0x640f('0x9'),JSON[_0x640f('0xa')](_0x3a83c0));}else if(_[_0x640f('0xb')](_0x3a83c0)){this[_0x640f('0x8')]('formData',_0x3a83c0);}else{this['setDataValue'](_0x640f('0x9'),util[_0x640f('0xc')](_0x640f('0xd'),this['getDataValue']('name')||'',this[_0x640f('0xe')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x640f('0xf')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x640f('0xf')],'defaultValue':![]}};