Built motion from commit b0a9a629.|2.6.33
[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 _0x21e9=['api','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','VtigerField','vtiger_unique_index','idField','FieldId','lodash','util'];(function(_0x2f4e94,_0x4011ef){var _0x541c1e=function(_0x225349){while(--_0x225349){_0x2f4e94['push'](_0x2f4e94['shift']());}};_0x541c1e(++_0x4011ef);}(_0x21e9,0x157));var _0x921e=function(_0x2f5ac5,_0x1ee939){_0x2f5ac5=_0x2f5ac5-0x0;var _0x37c9a8=_0x21e9[_0x2f5ac5];return _0x37c9a8;};'use strict';var _=require(_0x921e('0x0'));var util=require(_0x921e('0x1'));var logger=require('../../config/logger')(_0x921e('0x2'));var moment=require(_0x921e('0x3'));var BPromise=require(_0x921e('0x4'));var rp=require(_0x921e('0x5'));var fs=require('fs');var path=require(_0x921e('0x6'));var rimraf=require(_0x921e('0x7'));var config=require(_0x921e('0x8'));var attributes=require('./intVtigerField.attributes');module[_0x921e('0x9')]=function(_0x426456,_0x272413){return _0x426456[_0x921e('0xa')](_0x921e('0xb'),attributes,{'tableName':'int_vtiger_fields','paranoid':![],'indexes':[{'name':_0x921e('0xc'),'fields':[_0x921e('0xd'),_0x921e('0xe')],'unique':!![]}],'timestamps':!![]});};