Built motion from commit (unavailable).|2.5.21
[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 _0x4393=['name','description','BOOLEAN','sequelize','util','exports','STRING','TEXT','long','isObjectLike','setDataValue','stringify','isString','formData','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue'];(function(_0x591c97,_0x174dbe){var _0x51381d=function(_0x5148a7){while(--_0x5148a7){_0x591c97['push'](_0x591c97['shift']());}};_0x51381d(++_0x174dbe);}(_0x4393,0xe0));var _0x3439=function(_0x13e2c2,_0x36435c){_0x13e2c2=_0x13e2c2-0x0;var _0x520ee9=_0x4393[_0x13e2c2];return _0x520ee9;};'use strict';var Sequelize=require(_0x3439('0x0'));var _=require('lodash');var util=require(_0x3439('0x1'));module[_0x3439('0x2')]={'name':{'type':Sequelize['STRING'],'unique':'name'},'description':{'type':Sequelize[_0x3439('0x3')]},'formData':{'type':Sequelize[_0x3439('0x4')](_0x3439('0x5')),'set':function(_0x242139){if(_[_0x3439('0x6')](_0x242139)){this[_0x3439('0x7')]('formData',JSON[_0x3439('0x8')](_0x242139));}else if(_[_0x3439('0x9')](_0x242139)){this['setDataValue'](_0x3439('0xa'),_0x242139);}else{this[_0x3439('0x7')](_0x3439('0xa'),util[_0x3439('0xb')](_0x3439('0xc'),this[_0x3439('0xd')](_0x3439('0xe'))||'',this[_0x3439('0xd')](_0x3439('0xf'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x3439('0x10')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x3439('0x10')],'defaultValue':![]}};