Built motion from commit 10af8726.|2.6.34
[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 _0x20db=['long','isObjectLike','setDataValue','formData','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','name','description','BOOLEAN','sequelize','lodash','util','STRING'];(function(_0xcbc260,_0x53630d){var _0x48afbe=function(_0x13d060){while(--_0x13d060){_0xcbc260['push'](_0xcbc260['shift']());}};_0x48afbe(++_0x53630d);}(_0x20db,0xa4));var _0xb20d=function(_0x22c118,_0x3aae97){_0x22c118=_0x22c118-0x0;var _0x5e3267=_0x20db[_0x22c118];return _0x5e3267;};'use strict';var Sequelize=require(_0xb20d('0x0'));var _=require(_0xb20d('0x1'));var util=require(_0xb20d('0x2'));module['exports']={'name':{'type':Sequelize[_0xb20d('0x3')],'unique':'name'},'description':{'type':Sequelize[_0xb20d('0x3')]},'formData':{'type':Sequelize['TEXT'](_0xb20d('0x4')),'set':function(_0x4a4de2){if(_[_0xb20d('0x5')](_0x4a4de2)){this[_0xb20d('0x6')](_0xb20d('0x7'),JSON['stringify'](_0x4a4de2));}else if(_['isString'](_0x4a4de2)){this[_0xb20d('0x6')](_0xb20d('0x7'),_0x4a4de2);}else{this[_0xb20d('0x6')](_0xb20d('0x7'),util[_0xb20d('0x8')](_0xb20d('0x9'),this[_0xb20d('0xa')](_0xb20d('0xb'))||'',this[_0xb20d('0xa')](_0xb20d('0xc'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xb20d('0xd')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xb20d('0xd')],'defaultValue':![]}};