Built motion from commit dc14b02d.|2.6.27
[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 _0xab51=['stringify','isString','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','BOOLEAN','sequelize','util','STRING','name','TEXT','long','isObjectLike','setDataValue','formData'];(function(_0x3a738a,_0x15280a){var _0x4fd6af=function(_0xaa1df5){while(--_0xaa1df5){_0x3a738a['push'](_0x3a738a['shift']());}};_0x4fd6af(++_0x15280a);}(_0xab51,0xd7));var _0x1ab5=function(_0x32d3fb,_0x22f578){_0x32d3fb=_0x32d3fb-0x0;var _0x56c809=_0xab51[_0x32d3fb];return _0x56c809;};'use strict';var Sequelize=require(_0x1ab5('0x0'));var _=require('lodash');var util=require(_0x1ab5('0x1'));module['exports']={'name':{'type':Sequelize[_0x1ab5('0x2')],'unique':_0x1ab5('0x3')},'description':{'type':Sequelize[_0x1ab5('0x2')]},'formData':{'type':Sequelize[_0x1ab5('0x4')](_0x1ab5('0x5')),'set':function(_0x5f5aa2){if(_[_0x1ab5('0x6')](_0x5f5aa2)){this[_0x1ab5('0x7')](_0x1ab5('0x8'),JSON[_0x1ab5('0x9')](_0x5f5aa2));}else if(_[_0x1ab5('0xa')](_0x5f5aa2)){this['setDataValue'](_0x1ab5('0x8'),_0x5f5aa2);}else{this[_0x1ab5('0x7')](_0x1ab5('0x8'),util['format'](_0x1ab5('0xb'),this[_0x1ab5('0xc')](_0x1ab5('0x3'))||'',this[_0x1ab5('0xc')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x1ab5('0xd')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x1ab5('0xd')],'defaultValue':![]}};