Built motion from commit (unavailable).|2.5.29
[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 _0xa049=['stringify','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','description','BOOLEAN','sequelize','lodash','util','exports','STRING','isObjectLike','setDataValue','formData'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0xa049,0x157));var _0x9a04=function(_0x24e364,_0x22c22c){_0x24e364=_0x24e364-0x0;var _0x3921b0=_0xa049[_0x24e364];return _0x3921b0;};'use strict';var Sequelize=require(_0x9a04('0x0'));var _=require(_0x9a04('0x1'));var util=require(_0x9a04('0x2'));module[_0x9a04('0x3')]={'name':{'type':Sequelize['STRING'],'unique':'name'},'description':{'type':Sequelize[_0x9a04('0x4')]},'formData':{'type':Sequelize['TEXT']('long'),'set':function(_0x4c6e6){if(_[_0x9a04('0x5')](_0x4c6e6)){this[_0x9a04('0x6')](_0x9a04('0x7'),JSON[_0x9a04('0x8')](_0x4c6e6));}else if(_['isString'](_0x4c6e6)){this[_0x9a04('0x6')](_0x9a04('0x7'),_0x4c6e6);}else{this['setDataValue']('formData',util[_0x9a04('0x9')](_0x9a04('0xa'),this['getDataValue']('name')||'',this['getDataValue'](_0x9a04('0xb'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x9a04('0xc')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x9a04('0xc')],'defaultValue':![]}};