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 _0x930a=['description','BOOLEAN','sequelize','STRING','isObjectLike','formData','stringify','isString','setDataValue','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','name'];(function(_0x5ac905,_0x1fb98a){var _0x5d4fcc=function(_0x1b8b84){while(--_0x1b8b84){_0x5ac905['push'](_0x5ac905['shift']());}};_0x5d4fcc(++_0x1fb98a);}(_0x930a,0x1a2));var _0xa930=function(_0x11005e,_0x20c3d2){_0x11005e=_0x11005e-0x0;var _0x29338f=_0x930a[_0x11005e];return _0x29338f;};'use strict';var Sequelize=require(_0xa930('0x0'));var _=require('lodash');var util=require('util');module['exports']={'name':{'type':Sequelize[_0xa930('0x1')],'unique':'name'},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize['TEXT']('long'),'set':function(_0x25aa48){if(_[_0xa930('0x2')](_0x25aa48)){this['setDataValue'](_0xa930('0x3'),JSON[_0xa930('0x4')](_0x25aa48));}else if(_[_0xa930('0x5')](_0x25aa48)){this['setDataValue'](_0xa930('0x3'),_0x25aa48);}else{this[_0xa930('0x6')](_0xa930('0x3'),util[_0xa930('0x7')](_0xa930('0x8'),this[_0xa930('0x9')](_0xa930('0xa'))||'',this[_0xa930('0x9')](_0xa930('0xb'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xa930('0xc')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xa930('0xc')],'defaultValue':![]}};