4f15e5cced5d17328e7ec890a4f01a9a3fd763cb
[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 _0xacfc=['exports','STRING','name','TEXT','long','isObjectLike','isString','setDataValue','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','BOOLEAN','sequelize','lodash','util'];(function(_0x4506b9,_0x48eef9){var _0x57e59a=function(_0x5d0bb9){while(--_0x5d0bb9){_0x4506b9['push'](_0x4506b9['shift']());}};_0x57e59a(++_0x48eef9);}(_0xacfc,0xb1));var _0xcacf=function(_0x31b22a,_0x2fcc78){_0x31b22a=_0x31b22a-0x0;var _0x546f3c=_0xacfc[_0x31b22a];return _0x546f3c;};'use strict';var Sequelize=require(_0xcacf('0x0'));var _=require(_0xcacf('0x1'));var util=require(_0xcacf('0x2'));module[_0xcacf('0x3')]={'name':{'type':Sequelize[_0xcacf('0x4')],'unique':_0xcacf('0x5')},'description':{'type':Sequelize[_0xcacf('0x4')]},'formData':{'type':Sequelize[_0xcacf('0x6')](_0xcacf('0x7')),'set':function(_0x3d7363){if(_[_0xcacf('0x8')](_0x3d7363)){this['setDataValue']('formData',JSON['stringify'](_0x3d7363));}else if(_[_0xcacf('0x9')](_0x3d7363)){this[_0xcacf('0xa')]('formData',_0x3d7363);}else{this['setDataValue']('formData',util[_0xcacf('0xb')](_0xcacf('0xc'),this[_0xcacf('0xd')](_0xcacf('0x5'))||'',this['getDataValue']('description')||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xcacf('0xe')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xcacf('0xe')],'defaultValue':![]}};