Built motion from commit 9e1399f3.|2.5.37
[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 _0xdcd0=['lodash','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','VtigerField','idField','FieldId'];(function(_0x4477f6,_0x786920){var _0x2de580=function(_0x4f95b1){while(--_0x4f95b1){_0x4477f6['push'](_0x4477f6['shift']());}};_0x2de580(++_0x786920);}(_0xdcd0,0x1b2));var _0x0dcd=function(_0x3a3b31,_0x5853a6){_0x3a3b31=_0x3a3b31-0x0;var _0xdf6e2e=_0xdcd0[_0x3a3b31];return _0xdf6e2e;};'use strict';var _=require(_0x0dcd('0x0'));var util=require('util');var logger=require(_0x0dcd('0x1'))(_0x0dcd('0x2'));var moment=require(_0x0dcd('0x3'));var BPromise=require(_0x0dcd('0x4'));var rp=require(_0x0dcd('0x5'));var fs=require('fs');var path=require(_0x0dcd('0x6'));var rimraf=require(_0x0dcd('0x7'));var config=require(_0x0dcd('0x8'));var attributes=require('./intVtigerField.attributes');module[_0x0dcd('0x9')]=function(_0x52f86e,_0x17e6cc){return _0x52f86e[_0x0dcd('0xa')](_0x0dcd('0xb'),attributes,{'tableName':'int_vtiger_fields','paranoid':![],'indexes':[{'name':'vtiger_unique_index','fields':[_0x0dcd('0xc'),_0x0dcd('0xd')],'unique':!![]}],'timestamps':!![]});};