Built motion from commit (unavailable).|2.5.4
[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 _0xc70b=['setDataValue','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','name','getDataValue','description','BOOLEAN','sequelize','lodash','util','exports','STRING','isObjectLike','formData','stringify','isString'];(function(_0x24a2cc,_0x455e1f){var _0x1cf0ad=function(_0x3ad71b){while(--_0x3ad71b){_0x24a2cc['push'](_0x24a2cc['shift']());}};_0x1cf0ad(++_0x455e1f);}(_0xc70b,0x1c7));var _0xbc70=function(_0x566df3,_0x102704){_0x566df3=_0x566df3-0x0;var _0x2bb6b6=_0xc70b[_0x566df3];return _0x2bb6b6;};'use strict';var Sequelize=require(_0xbc70('0x0'));var _=require(_0xbc70('0x1'));var util=require(_0xbc70('0x2'));module[_0xbc70('0x3')]={'name':{'type':Sequelize[_0xbc70('0x4')],'unique':'name'},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize['TEXT']('long'),'set':function(_0x51f214){if(_[_0xbc70('0x5')](_0x51f214)){this['setDataValue'](_0xbc70('0x6'),JSON[_0xbc70('0x7')](_0x51f214));}else if(_[_0xbc70('0x8')](_0x51f214)){this[_0xbc70('0x9')](_0xbc70('0x6'),_0x51f214);}else{this[_0xbc70('0x9')](_0xbc70('0x6'),util[_0xbc70('0xa')](_0xbc70('0xb'),this['getDataValue'](_0xbc70('0xc'))||'',this[_0xbc70('0xd')](_0xbc70('0xe'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xbc70('0xf')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};