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 _0x2cb9=['util','exports','STRING','name','TEXT','isObjectLike','formData','stringify','isString','setDataValue','getDataValue','description','BOOLEAN','lodash'];(function(_0xf0ec6e,_0xa183d3){var _0x8bbc27=function(_0x39822b){while(--_0x39822b){_0xf0ec6e['push'](_0xf0ec6e['shift']());}};_0x8bbc27(++_0xa183d3);}(_0x2cb9,0x99));var _0x92cb=function(_0x309719,_0xab8feb){_0x309719=_0x309719-0x0;var _0x1cbf70=_0x2cb9[_0x309719];return _0x1cbf70;};'use strict';var Sequelize=require('sequelize');var _=require(_0x92cb('0x0'));var util=require(_0x92cb('0x1'));module[_0x92cb('0x2')]={'name':{'type':Sequelize[_0x92cb('0x3')],'unique':_0x92cb('0x4')},'description':{'type':Sequelize[_0x92cb('0x3')]},'formData':{'type':Sequelize[_0x92cb('0x5')]('long'),'set':function(_0x9ea82e){if(_[_0x92cb('0x6')](_0x9ea82e)){this['setDataValue'](_0x92cb('0x7'),JSON[_0x92cb('0x8')](_0x9ea82e));}else if(_[_0x92cb('0x9')](_0x9ea82e)){this[_0x92cb('0xa')]('formData',_0x9ea82e);}else{this[_0x92cb('0xa')](_0x92cb('0x7'),util['format']('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0x92cb('0xb')]('name')||'',this[_0x92cb('0xb')](_0x92cb('0xc'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x92cb('0xd')],'defaultValue':![]}};