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 _0x9bf4=['BOOLEAN','lodash','util','exports','STRING','TEXT','long','setDataValue','formData','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','name'];(function(_0x2e48a9,_0x2a0896){var _0x5eb0bc=function(_0x192646){while(--_0x192646){_0x2e48a9['push'](_0x2e48a9['shift']());}};_0x5eb0bc(++_0x2a0896);}(_0x9bf4,0x1a5));var _0x49bf=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x9bf4[_0x20a584];return _0x4b41a8;};'use strict';var Sequelize=require('sequelize');var _=require(_0x49bf('0x0'));var util=require(_0x49bf('0x1'));module[_0x49bf('0x2')]={'name':{'type':Sequelize[_0x49bf('0x3')],'unique':'name'},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0x49bf('0x4')](_0x49bf('0x5')),'set':function(_0x47f644){if(_['isObjectLike'](_0x47f644)){this[_0x49bf('0x6')](_0x49bf('0x7'),JSON['stringify'](_0x47f644));}else if(_['isString'](_0x47f644)){this[_0x49bf('0x6')]('formData',_0x47f644);}else{this[_0x49bf('0x6')](_0x49bf('0x7'),util['format'](_0x49bf('0x8'),this[_0x49bf('0x9')](_0x49bf('0xa'))||'',this['getDataValue']('description')||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x49bf('0xb')],'defaultValue':![]}};