Built motion from commit 3d6333b4.|2.6.31
[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 _0xda5e=['TEXT','long','setDataValue','formData','stringify','isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','name','description','BOOLEAN','sequelize','lodash','util','exports','STRING'];(function(_0x1d2e5e,_0x145ae6){var _0x4a1d68=function(_0x3dd5b6){while(--_0x3dd5b6){_0x1d2e5e['push'](_0x1d2e5e['shift']());}};_0x4a1d68(++_0x145ae6);}(_0xda5e,0x11c));var _0xeda5=function(_0x49b93a,_0x1a23ba){_0x49b93a=_0x49b93a-0x0;var _0x28fd9f=_0xda5e[_0x49b93a];return _0x28fd9f;};'use strict';var Sequelize=require(_0xeda5('0x0'));var _=require(_0xeda5('0x1'));var util=require(_0xeda5('0x2'));module[_0xeda5('0x3')]={'name':{'type':Sequelize[_0xeda5('0x4')],'unique':'name'},'description':{'type':Sequelize[_0xeda5('0x4')]},'formData':{'type':Sequelize[_0xeda5('0x5')](_0xeda5('0x6')),'set':function(_0x524bd4){if(_['isObjectLike'](_0x524bd4)){this[_0xeda5('0x7')](_0xeda5('0x8'),JSON[_0xeda5('0x9')](_0x524bd4));}else if(_[_0xeda5('0xa')](_0x524bd4)){this['setDataValue'](_0xeda5('0x8'),_0x524bd4);}else{this['setDataValue'](_0xeda5('0x8'),util[_0xeda5('0xb')](_0xeda5('0xc'),this[_0xeda5('0xd')](_0xeda5('0xe'))||'',this[_0xeda5('0xd')](_0xeda5('0xf'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xeda5('0x10')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xeda5('0x10')],'defaultValue':![]}};