17ec8816c9c50a39088520b9177e58ac6f754899
[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 _0xbd74=['util','exports','STRING','formData','stringify','isString','setDataValue','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','name','description','BOOLEAN','sequelize','lodash'];(function(_0x30e3d6,_0x2bf00f){var _0xe35a6f=function(_0x503cc4){while(--_0x503cc4){_0x30e3d6['push'](_0x30e3d6['shift']());}};_0xe35a6f(++_0x2bf00f);}(_0xbd74,0x116));var _0x4bd7=function(_0xd8141,_0x6ef70c){_0xd8141=_0xd8141-0x0;var _0x339e06=_0xbd74[_0xd8141];return _0x339e06;};'use strict';var Sequelize=require(_0x4bd7('0x0'));var _=require(_0x4bd7('0x1'));var util=require(_0x4bd7('0x2'));module[_0x4bd7('0x3')]={'name':{'type':Sequelize[_0x4bd7('0x4')],'unique':'name'},'description':{'type':Sequelize[_0x4bd7('0x4')]},'formData':{'type':Sequelize['TEXT']('long'),'set':function(_0x5bc988){if(_['isObjectLike'](_0x5bc988)){this['setDataValue'](_0x4bd7('0x5'),JSON[_0x4bd7('0x6')](_0x5bc988));}else if(_[_0x4bd7('0x7')](_0x5bc988)){this[_0x4bd7('0x8')]('formData',_0x5bc988);}else{this[_0x4bd7('0x8')]('formData',util['format'](_0x4bd7('0x9'),this[_0x4bd7('0xa')](_0x4bd7('0xb'))||'',this[_0x4bd7('0xa')](_0x4bd7('0xc'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x4bd7('0xd')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};