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 _0x7dd0=['STRING','TEXT','long','isObjectLike','setDataValue','formData','stringify','isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','name','getDataValue','description','BOOLEAN','sequelize','util'];(function(_0x4b369d,_0x265eb8){var _0x571a98=function(_0x56341a){while(--_0x56341a){_0x4b369d['push'](_0x4b369d['shift']());}};_0x571a98(++_0x265eb8);}(_0x7dd0,0x15e));var _0x07dd=function(_0x3c95dd,_0x1ea377){_0x3c95dd=_0x3c95dd-0x0;var _0x29b69b=_0x7dd0[_0x3c95dd];return _0x29b69b;};'use strict';var Sequelize=require(_0x07dd('0x0'));var _=require('lodash');var util=require(_0x07dd('0x1'));module['exports']={'name':{'type':Sequelize['STRING'],'unique':'name'},'description':{'type':Sequelize[_0x07dd('0x2')]},'formData':{'type':Sequelize[_0x07dd('0x3')](_0x07dd('0x4')),'set':function(_0x55e3c6){if(_[_0x07dd('0x5')](_0x55e3c6)){this[_0x07dd('0x6')](_0x07dd('0x7'),JSON[_0x07dd('0x8')](_0x55e3c6));}else if(_[_0x07dd('0x9')](_0x55e3c6)){this[_0x07dd('0x6')]('formData',_0x55e3c6);}else{this[_0x07dd('0x6')](_0x07dd('0x7'),util[_0x07dd('0xa')](_0x07dd('0xb'),this['getDataValue'](_0x07dd('0xc'))||'',this[_0x07dd('0xd')](_0x07dd('0xe'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x07dd('0xf')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};