Built motion from commit (unavailable).|2.4.3
[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 _0x931b=['BOOLEAN','sequelize','lodash','util','exports','STRING','TEXT','long','isObjectLike','formData','stringify','isString','setDataValue','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','description'];(function(_0x5c0dcb,_0x16cd83){var _0x183a0e=function(_0xfb292d){while(--_0xfb292d){_0x5c0dcb['push'](_0x5c0dcb['shift']());}};_0x183a0e(++_0x16cd83);}(_0x931b,0x10f));var _0xb931=function(_0x409fff,_0x1ef03b){_0x409fff=_0x409fff-0x0;var _0x1d7055=_0x931b[_0x409fff];return _0x1d7055;};'use strict';var Sequelize=require(_0xb931('0x0'));var _=require(_0xb931('0x1'));var util=require(_0xb931('0x2'));module[_0xb931('0x3')]={'name':{'type':Sequelize[_0xb931('0x4')],'unique':'name'},'description':{'type':Sequelize[_0xb931('0x4')]},'formData':{'type':Sequelize[_0xb931('0x5')](_0xb931('0x6')),'set':function(_0x2c28a2){if(_[_0xb931('0x7')](_0x2c28a2)){this['setDataValue'](_0xb931('0x8'),JSON[_0xb931('0x9')](_0x2c28a2));}else if(_[_0xb931('0xa')](_0x2c28a2)){this[_0xb931('0xb')]('formData',_0x2c28a2);}else{this['setDataValue'](_0xb931('0x8'),util['format'](_0xb931('0xc'),this['getDataValue']('name')||'',this['getDataValue'](_0xb931('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xb931('0xe')],'defaultValue':!![]}};