Built motion from commit 639a1a7f.|2.6.19
[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 _0xbf7e=['../../config/environment','./intVtigerField.attributes','exports','VtigerField','vtiger_unique_index','idField','FieldId','lodash','util','../../config/logger','api','bluebird','path','rimraf'];(function(_0xd98ca3,_0x38fbd9){var _0x35960d=function(_0x52e8ee){while(--_0x52e8ee){_0xd98ca3['push'](_0xd98ca3['shift']());}};_0x35960d(++_0x38fbd9);}(_0xbf7e,0xbd));var _0xebf7=function(_0x483bb5,_0x5b3540){_0x483bb5=_0x483bb5-0x0;var _0x533945=_0xbf7e[_0x483bb5];return _0x533945;};'use strict';var _=require(_0xebf7('0x0'));var util=require(_0xebf7('0x1'));var logger=require(_0xebf7('0x2'))(_0xebf7('0x3'));var moment=require('moment');var BPromise=require(_0xebf7('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xebf7('0x5'));var rimraf=require(_0xebf7('0x6'));var config=require(_0xebf7('0x7'));var attributes=require(_0xebf7('0x8'));module[_0xebf7('0x9')]=function(_0x9aeb22,_0xbcfa04){return _0x9aeb22['define'](_0xebf7('0xa'),attributes,{'tableName':'int_vtiger_fields','paranoid':![],'indexes':[{'name':_0xebf7('0xb'),'fields':[_0xebf7('0xc'),_0xebf7('0xd')],'unique':!![]}],'timestamps':!![]});};