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 _0xf2e7=['STRING','name','TEXT','long','setDataValue','formData','stringify','isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','BOOLEAN','sequelize','util'];(function(_0x55c518,_0x9bed09){var _0x290607=function(_0x4508b5){while(--_0x4508b5){_0x55c518['push'](_0x55c518['shift']());}};_0x290607(++_0x9bed09);}(_0xf2e7,0x193));var _0x7f2e=function(_0x3c2fdf,_0x20e8ca){_0x3c2fdf=_0x3c2fdf-0x0;var _0x5da2a4=_0xf2e7[_0x3c2fdf];return _0x5da2a4;};'use strict';var Sequelize=require(_0x7f2e('0x0'));var _=require('lodash');var util=require(_0x7f2e('0x1'));module['exports']={'name':{'type':Sequelize[_0x7f2e('0x2')],'unique':_0x7f2e('0x3')},'description':{'type':Sequelize[_0x7f2e('0x2')]},'formData':{'type':Sequelize[_0x7f2e('0x4')](_0x7f2e('0x5')),'set':function(_0x2ea9e2){if(_['isObjectLike'](_0x2ea9e2)){this[_0x7f2e('0x6')](_0x7f2e('0x7'),JSON[_0x7f2e('0x8')](_0x2ea9e2));}else if(_[_0x7f2e('0x9')](_0x2ea9e2)){this[_0x7f2e('0x6')](_0x7f2e('0x7'),_0x2ea9e2);}else{this[_0x7f2e('0x6')](_0x7f2e('0x7'),util[_0x7f2e('0xa')](_0x7f2e('0xb'),this[_0x7f2e('0xc')](_0x7f2e('0x3'))||'',this[_0x7f2e('0xc')](_0x7f2e('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x7f2e('0xe')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x7f2e('0xe')],'defaultValue':![]}};