92391ceca38672e7d8e1f24a7d0d846124b2e9ce
[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 _0x0c10=['{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','BOOLEAN','sequelize','lodash','util','STRING','name','TEXT','long','setDataValue','formData','isString','format'];(function(_0x258c0d,_0x1eebe1){var _0x3f5b95=function(_0x2093af){while(--_0x2093af){_0x258c0d['push'](_0x258c0d['shift']());}};_0x3f5b95(++_0x1eebe1);}(_0x0c10,0x112));var _0x00c1=function(_0x481f0b,_0x2539d0){_0x481f0b=_0x481f0b-0x0;var _0x3d9ba0=_0x0c10[_0x481f0b];return _0x3d9ba0;};'use strict';var Sequelize=require(_0x00c1('0x0'));var _=require(_0x00c1('0x1'));var util=require(_0x00c1('0x2'));module['exports']={'name':{'type':Sequelize[_0x00c1('0x3')],'unique':_0x00c1('0x4')},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0x00c1('0x5')](_0x00c1('0x6')),'set':function(_0x49bd41){if(_['isObjectLike'](_0x49bd41)){this[_0x00c1('0x7')](_0x00c1('0x8'),JSON['stringify'](_0x49bd41));}else if(_[_0x00c1('0x9')](_0x49bd41)){this[_0x00c1('0x7')]('formData',_0x49bd41);}else{this[_0x00c1('0x7')](_0x00c1('0x8'),util[_0x00c1('0xa')](_0x00c1('0xb'),this[_0x00c1('0xc')](_0x00c1('0x4'))||'',this[_0x00c1('0xc')](_0x00c1('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x00c1('0xe')],'defaultValue':!![]}};