8cf8c7f823b167c1e668223598308b85ec03cdd8
[motion2.git] / server / api / jscriptyProject / jscriptyProject.attributes.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x6c93=['stringify','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','name','description','BOOLEAN','util','exports','STRING','TEXT','long','isObjectLike','setDataValue','formData'];(function(_0xf926fe,_0x23f1c8){var _0x54730f=function(_0x343dbb){while(--_0x343dbb){_0xf926fe['push'](_0xf926fe['shift']());}};_0x54730f(++_0x23f1c8);}(_0x6c93,0x7f));var _0x36c9=function(_0x1c74d2,_0x5b1c47){_0x1c74d2=_0x1c74d2-0x0;var _0x1187b7=_0x6c93[_0x1c74d2];return _0x1187b7;};'use strict';var Sequelize=require('sequelize');var _=require('lodash');var util=require(_0x36c9('0x0'));module[_0x36c9('0x1')]={'name':{'type':Sequelize[_0x36c9('0x2')],'unique':'name'},'description':{'type':Sequelize[_0x36c9('0x2')]},'formData':{'type':Sequelize[_0x36c9('0x3')](_0x36c9('0x4')),'set':function(_0x8a15d3){if(_[_0x36c9('0x5')](_0x8a15d3)){this[_0x36c9('0x6')](_0x36c9('0x7'),JSON[_0x36c9('0x8')](_0x8a15d3));}else if(_['isString'](_0x8a15d3)){this[_0x36c9('0x6')](_0x36c9('0x7'),_0x8a15d3);}else{this[_0x36c9('0x6')](_0x36c9('0x7'),util[_0x36c9('0x9')](_0x36c9('0xa'),this[_0x36c9('0xb')](_0x36c9('0xc'))||'',this['getDataValue'](_0x36c9('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x36c9('0xe')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x36c9('0xe')],'defaultValue':![]}};