Built motion from commit e0fa946e.|2.6.5
[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 _0x0d8c=['description','BOOLEAN','sequelize','exports','STRING','TEXT','isObjectLike','setDataValue','formData','isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','name'];(function(_0x3f40ce,_0x346f4e){var _0x1f4266=function(_0x2ac122){while(--_0x2ac122){_0x3f40ce['push'](_0x3f40ce['shift']());}};_0x1f4266(++_0x346f4e);}(_0x0d8c,0x1b4));var _0xc0d8=function(_0x427dae,_0x2e7a91){_0x427dae=_0x427dae-0x0;var _0x35d836=_0x0d8c[_0x427dae];return _0x35d836;};'use strict';var Sequelize=require(_0xc0d8('0x0'));var _=require('lodash');var util=require('util');module[_0xc0d8('0x1')]={'name':{'type':Sequelize[_0xc0d8('0x2')],'unique':'name'},'description':{'type':Sequelize[_0xc0d8('0x2')]},'formData':{'type':Sequelize[_0xc0d8('0x3')]('long'),'set':function(_0x1026df){if(_[_0xc0d8('0x4')](_0x1026df)){this[_0xc0d8('0x5')](_0xc0d8('0x6'),JSON['stringify'](_0x1026df));}else if(_[_0xc0d8('0x7')](_0x1026df)){this[_0xc0d8('0x5')]('formData',_0x1026df);}else{this[_0xc0d8('0x5')](_0xc0d8('0x6'),util[_0xc0d8('0x8')](_0xc0d8('0x9'),this[_0xc0d8('0xa')](_0xc0d8('0xb'))||'',this[_0xc0d8('0xa')](_0xc0d8('0xc'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xc0d8('0xd')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xc0d8('0xd')],'defaultValue':![]}};