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 _0x00af=['setDataValue','formData','stringify','isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','BOOLEAN','sequelize','util','STRING','name','long','isObjectLike'];(function(_0x2f38ba,_0x22b8a7){var _0x58e237=function(_0x2f71b4){while(--_0x2f71b4){_0x2f38ba['push'](_0x2f38ba['shift']());}};_0x58e237(++_0x22b8a7);}(_0x00af,0x9f));var _0xf00a=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0x00af[_0x2dafbe];return _0x58a45a;};'use strict';var Sequelize=require(_0xf00a('0x0'));var _=require('lodash');var util=require(_0xf00a('0x1'));module['exports']={'name':{'type':Sequelize[_0xf00a('0x2')],'unique':_0xf00a('0x3')},'description':{'type':Sequelize[_0xf00a('0x2')]},'formData':{'type':Sequelize['TEXT'](_0xf00a('0x4')),'set':function(_0x5aa26d){if(_[_0xf00a('0x5')](_0x5aa26d)){this[_0xf00a('0x6')](_0xf00a('0x7'),JSON[_0xf00a('0x8')](_0x5aa26d));}else if(_[_0xf00a('0x9')](_0x5aa26d)){this[_0xf00a('0x6')](_0xf00a('0x7'),_0x5aa26d);}else{this['setDataValue'](_0xf00a('0x7'),util[_0xf00a('0xa')](_0xf00a('0xb'),this['getDataValue'](_0xf00a('0x3'))||'',this[_0xf00a('0xc')](_0xf00a('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xf00a('0xe')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xf00a('0xe')],'defaultValue':![]}};