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 _0x5594=['sequelize','lodash','util','STRING','name','isObjectLike','formData','stringify','isString','setDataValue','getDataValue','description','BOOLEAN'];(function(_0x1ade1d,_0xcb165e){var _0x1d3314=function(_0x550fcf){while(--_0x550fcf){_0x1ade1d['push'](_0x1ade1d['shift']());}};_0x1d3314(++_0xcb165e);}(_0x5594,0x15f));var _0x4559=function(_0x2e4114,_0x120d2a){_0x2e4114=_0x2e4114-0x0;var _0x4b0304=_0x5594[_0x2e4114];return _0x4b0304;};'use strict';var Sequelize=require(_0x4559('0x0'));var _=require(_0x4559('0x1'));var util=require(_0x4559('0x2'));module['exports']={'name':{'type':Sequelize[_0x4559('0x3')],'unique':_0x4559('0x4')},'description':{'type':Sequelize[_0x4559('0x3')]},'formData':{'type':Sequelize['TEXT']('long'),'set':function(_0x5e0e4e){if(_[_0x4559('0x5')](_0x5e0e4e)){this['setDataValue'](_0x4559('0x6'),JSON[_0x4559('0x7')](_0x5e0e4e));}else if(_[_0x4559('0x8')](_0x5e0e4e)){this[_0x4559('0x9')](_0x4559('0x6'),_0x5e0e4e);}else{this[_0x4559('0x9')](_0x4559('0x6'),util['format']('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0x4559('0xa')](_0x4559('0x4'))||'',this['getDataValue'](_0x4559('0xb'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x4559('0xc')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x4559('0xc')],'defaultValue':![]}};