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 _0xd89c=['BOOLEAN','sequelize','lodash','util','exports','STRING','name','TEXT','long','isObjectLike','setDataValue','stringify','isString','formData','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','description'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xd89c,0xbc));var _0xcd89=function(_0x4243a3,_0x447337){_0x4243a3=_0x4243a3-0x0;var _0x1b2a33=_0xd89c[_0x4243a3];return _0x1b2a33;};'use strict';var Sequelize=require(_0xcd89('0x0'));var _=require(_0xcd89('0x1'));var util=require(_0xcd89('0x2'));module[_0xcd89('0x3')]={'name':{'type':Sequelize[_0xcd89('0x4')],'unique':_0xcd89('0x5')},'description':{'type':Sequelize[_0xcd89('0x4')]},'formData':{'type':Sequelize[_0xcd89('0x6')](_0xcd89('0x7')),'set':function(_0x4ac1c1){if(_[_0xcd89('0x8')](_0x4ac1c1)){this[_0xcd89('0x9')]('formData',JSON[_0xcd89('0xa')](_0x4ac1c1));}else if(_[_0xcd89('0xb')](_0x4ac1c1)){this['setDataValue'](_0xcd89('0xc'),_0x4ac1c1);}else{this['setDataValue'](_0xcd89('0xc'),util[_0xcd89('0xd')](_0xcd89('0xe'),this['getDataValue'](_0xcd89('0x5'))||'',this['getDataValue'](_0xcd89('0xf'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xcd89('0x10')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xcd89('0x10')],'defaultValue':![]}};