396856a4fc455c99059570c81e415491a51d1ef7
[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 _0x0336=['BOOLEAN','sequelize','lodash','util','STRING','name','isString','setDataValue','formData','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description'];(function(_0x238671,_0x34aea0){var _0x474844=function(_0x26cab4){while(--_0x26cab4){_0x238671['push'](_0x238671['shift']());}};_0x474844(++_0x34aea0);}(_0x0336,0x1a1));var _0x6033=function(_0x31de58,_0x119652){_0x31de58=_0x31de58-0x0;var _0x2d5699=_0x0336[_0x31de58];return _0x2d5699;};'use strict';var Sequelize=require(_0x6033('0x0'));var _=require(_0x6033('0x1'));var util=require(_0x6033('0x2'));module['exports']={'name':{'type':Sequelize[_0x6033('0x3')],'unique':_0x6033('0x4')},'description':{'type':Sequelize[_0x6033('0x3')]},'formData':{'type':Sequelize['TEXT']('long'),'set':function(_0x55b8f2){if(_['isObjectLike'](_0x55b8f2)){this['setDataValue']('formData',JSON['stringify'](_0x55b8f2));}else if(_[_0x6033('0x5')](_0x55b8f2)){this[_0x6033('0x6')](_0x6033('0x7'),_0x55b8f2);}else{this[_0x6033('0x6')](_0x6033('0x7'),util[_0x6033('0x8')](_0x6033('0x9'),this[_0x6033('0xa')](_0x6033('0x4'))||'',this[_0x6033('0xa')](_0x6033('0xb'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x6033('0xc')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};