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 _0xee9c=['stringify','isString','formData','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','BOOLEAN','lodash','util','name','TEXT','isObjectLike','setDataValue'];(function(_0x2d8a6b,_0x1331f0){var _0x299f0a=function(_0x5cf9fb){while(--_0x5cf9fb){_0x2d8a6b['push'](_0x2d8a6b['shift']());}};_0x299f0a(++_0x1331f0);}(_0xee9c,0x1c8));var _0xcee9=function(_0x1694f5,_0x49b7c3){_0x1694f5=_0x1694f5-0x0;var _0x5b4321=_0xee9c[_0x1694f5];return _0x5b4321;};'use strict';var Sequelize=require('sequelize');var _=require(_0xcee9('0x0'));var util=require(_0xcee9('0x1'));module['exports']={'name':{'type':Sequelize['STRING'],'unique':_0xcee9('0x2')},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0xcee9('0x3')]('long'),'set':function(_0x21708c){if(_[_0xcee9('0x4')](_0x21708c)){this[_0xcee9('0x5')]('formData',JSON[_0xcee9('0x6')](_0x21708c));}else if(_[_0xcee9('0x7')](_0x21708c)){this['setDataValue'](_0xcee9('0x8'),_0x21708c);}else{this[_0xcee9('0x5')](_0xcee9('0x8'),util[_0xcee9('0x9')](_0xcee9('0xa'),this['getDataValue'](_0xcee9('0x2'))||'',this[_0xcee9('0xb')](_0xcee9('0xc'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xcee9('0xd')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xcee9('0xd')],'defaultValue':![]}};