Built motion from commit c738b9ac.|2.6.25
[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 _0xa5a2=['rimraf','../../config/environment','./intVtigerField.attributes','exports','define','VtigerField','vtiger_unique_index','FieldId','util','api','moment','bluebird','request-promise','path'];(function(_0x177d06,_0x16308d){var _0x4f7e1d=function(_0xa8419c){while(--_0xa8419c){_0x177d06['push'](_0x177d06['shift']());}};_0x4f7e1d(++_0x16308d);}(_0xa5a2,0x1c8));var _0x2a5a=function(_0x1696fa,_0x372adb){_0x1696fa=_0x1696fa-0x0;var _0x3fb662=_0xa5a2[_0x1696fa];return _0x3fb662;};'use strict';var _=require('lodash');var util=require(_0x2a5a('0x0'));var logger=require('../../config/logger')(_0x2a5a('0x1'));var moment=require(_0x2a5a('0x2'));var BPromise=require(_0x2a5a('0x3'));var rp=require(_0x2a5a('0x4'));var fs=require('fs');var path=require(_0x2a5a('0x5'));var rimraf=require(_0x2a5a('0x6'));var config=require(_0x2a5a('0x7'));var attributes=require(_0x2a5a('0x8'));module[_0x2a5a('0x9')]=function(_0x551c5d,_0x1583af){return _0x551c5d[_0x2a5a('0xa')](_0x2a5a('0xb'),attributes,{'tableName':'int_vtiger_fields','paranoid':![],'indexes':[{'name':_0x2a5a('0xc'),'fields':['idField',_0x2a5a('0xd')],'unique':!![]}],'timestamps':!![]});};