Built motion from commit 0900f080.|2.5.45
[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 _0x3e3d=['exports','define','int_vtiger_fields','vtiger_unique_index','idField','FieldId','util','moment','bluebird','request-promise','path','./intVtigerField.attributes'];(function(_0x1c4756,_0xb50fa8){var _0x94138a=function(_0xa58e6f){while(--_0xa58e6f){_0x1c4756['push'](_0x1c4756['shift']());}};_0x94138a(++_0xb50fa8);}(_0x3e3d,0x132));var _0xd3e3=function(_0x3bf83f,_0x181cac){_0x3bf83f=_0x3bf83f-0x0;var _0x22c4a9=_0x3e3d[_0x3bf83f];return _0x22c4a9;};'use strict';var _=require('lodash');var util=require(_0xd3e3('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0xd3e3('0x1'));var BPromise=require(_0xd3e3('0x2'));var rp=require(_0xd3e3('0x3'));var fs=require('fs');var path=require(_0xd3e3('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xd3e3('0x5'));module[_0xd3e3('0x6')]=function(_0x582183,_0x17c3e6){return _0x582183[_0xd3e3('0x7')]('VtigerField',attributes,{'tableName':_0xd3e3('0x8'),'paranoid':![],'indexes':[{'name':_0xd3e3('0x9'),'fields':[_0xd3e3('0xa'),_0xd3e3('0xb')],'unique':!![]}],'timestamps':!![]});};