bd04b43a2458cdafb26a1e08f156031b0d017647
[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 _0xfce8=['STRING','TEXT','long','isObjectLike','formData','stringify','setDataValue','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','name','description','BOOLEAN','sequelize','exports'];(function(_0x243b2f,_0x30aa15){var _0xcb3c2d=function(_0x213bb2){while(--_0x213bb2){_0x243b2f['push'](_0x243b2f['shift']());}};_0xcb3c2d(++_0x30aa15);}(_0xfce8,0x67));var _0x8fce=function(_0x3272f6,_0x449bee){_0x3272f6=_0x3272f6-0x0;var _0x3fe947=_0xfce8[_0x3272f6];return _0x3fe947;};'use strict';var Sequelize=require(_0x8fce('0x0'));var _=require('lodash');var util=require('util');module[_0x8fce('0x1')]={'name':{'type':Sequelize[_0x8fce('0x2')],'unique':'name'},'description':{'type':Sequelize[_0x8fce('0x2')]},'formData':{'type':Sequelize[_0x8fce('0x3')](_0x8fce('0x4')),'set':function(_0x2e6305){if(_[_0x8fce('0x5')](_0x2e6305)){this['setDataValue'](_0x8fce('0x6'),JSON[_0x8fce('0x7')](_0x2e6305));}else if(_['isString'](_0x2e6305)){this[_0x8fce('0x8')](_0x8fce('0x6'),_0x2e6305);}else{this[_0x8fce('0x8')]('formData',util[_0x8fce('0x9')](_0x8fce('0xa'),this[_0x8fce('0xb')](_0x8fce('0xc'))||'',this[_0x8fce('0xb')](_0x8fce('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x8fce('0xe')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};