Built motion from commit e1760111.|2.6.18
[motion2.git] / server / api / intVtigerField / intVtigerField.model.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 _0x1e1b=['rimraf','./intVtigerField.attributes','exports','int_vtiger_fields','vtiger_unique_index','FieldId','util','moment','bluebird','request-promise','path'];(function(_0x3d5769,_0x10d297){var _0x46e7c4=function(_0x512330){while(--_0x512330){_0x3d5769['push'](_0x3d5769['shift']());}};_0x46e7c4(++_0x10d297);}(_0x1e1b,0xd7));var _0xb1e1=function(_0x18a79d,_0x57bd2c){_0x18a79d=_0x18a79d-0x0;var _0x4f8848=_0x1e1b[_0x18a79d];return _0x4f8848;};'use strict';var _=require('lodash');var util=require(_0xb1e1('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0xb1e1('0x1'));var BPromise=require(_0xb1e1('0x2'));var rp=require(_0xb1e1('0x3'));var fs=require('fs');var path=require(_0xb1e1('0x4'));var rimraf=require(_0xb1e1('0x5'));var config=require('../../config/environment');var attributes=require(_0xb1e1('0x6'));module[_0xb1e1('0x7')]=function(_0x54dbf7,_0x23a8f1){return _0x54dbf7['define']('VtigerField',attributes,{'tableName':_0xb1e1('0x8'),'paranoid':![],'indexes':[{'name':_0xb1e1('0x9'),'fields':['idField',_0xb1e1('0xa')],'unique':!![]}],'timestamps':!![]});};