db206006043b964f28168813dbe1af2c08a0da93
[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 _0x5268=['{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','name','description','BOOLEAN','sequelize','lodash','util','exports','STRING','TEXT','isObjectLike','formData','isString','setDataValue','format'];(function(_0x1090f8,_0xd83a11){var _0x180524=function(_0x109ab8){while(--_0x109ab8){_0x1090f8['push'](_0x1090f8['shift']());}};_0x180524(++_0xd83a11);}(_0x5268,0x145));var _0x8526=function(_0x202353,_0x2efaa9){_0x202353=_0x202353-0x0;var _0x4571a1=_0x5268[_0x202353];return _0x4571a1;};'use strict';var Sequelize=require(_0x8526('0x0'));var _=require(_0x8526('0x1'));var util=require(_0x8526('0x2'));module[_0x8526('0x3')]={'name':{'type':Sequelize[_0x8526('0x4')],'unique':'name'},'description':{'type':Sequelize[_0x8526('0x4')]},'formData':{'type':Sequelize[_0x8526('0x5')]('long'),'set':function(_0x5cf598){if(_[_0x8526('0x6')](_0x5cf598)){this['setDataValue'](_0x8526('0x7'),JSON['stringify'](_0x5cf598));}else if(_[_0x8526('0x8')](_0x5cf598)){this[_0x8526('0x9')](_0x8526('0x7'),_0x5cf598);}else{this[_0x8526('0x9')]('formData',util[_0x8526('0xa')](_0x8526('0xb'),this[_0x8526('0xc')](_0x8526('0xd'))||'',this[_0x8526('0xc')](_0x8526('0xe'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x8526('0xf')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x8526('0xf')],'defaultValue':![]}};