Built motion from commit da617fac.|2.6.6
[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 _0xef60=['long','isObjectLike','setDataValue','formData','stringify','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','name','description','BOOLEAN','sequelize','lodash','util','STRING'];(function(_0x4b9a8d,_0x2e2c16){var _0x35f6dc=function(_0xf06588){while(--_0xf06588){_0x4b9a8d['push'](_0x4b9a8d['shift']());}};_0x35f6dc(++_0x2e2c16);}(_0xef60,0xfb));var _0x0ef6=function(_0x38682a,_0xb4df5b){_0x38682a=_0x38682a-0x0;var _0x2be5ba=_0xef60[_0x38682a];return _0x2be5ba;};'use strict';var Sequelize=require(_0x0ef6('0x0'));var _=require(_0x0ef6('0x1'));var util=require(_0x0ef6('0x2'));module['exports']={'name':{'type':Sequelize[_0x0ef6('0x3')],'unique':'name'},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize['TEXT'](_0x0ef6('0x4')),'set':function(_0x4a5713){if(_[_0x0ef6('0x5')](_0x4a5713)){this[_0x0ef6('0x6')](_0x0ef6('0x7'),JSON[_0x0ef6('0x8')](_0x4a5713));}else if(_['isString'](_0x4a5713)){this[_0x0ef6('0x6')](_0x0ef6('0x7'),_0x4a5713);}else{this['setDataValue'](_0x0ef6('0x7'),util[_0x0ef6('0x9')](_0x0ef6('0xa'),this[_0x0ef6('0xb')](_0x0ef6('0xc'))||'',this[_0x0ef6('0xb')](_0x0ef6('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x0ef6('0xe')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x0ef6('0xe')],'defaultValue':![]}};