5f04d66072851f0f48c39b7c08079c241cffff69
[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 _0xe3a4=['bluebird','request-promise','./intVtigerField.attributes','exports','define','VtigerField','int_vtiger_fields','vtiger_unique_index','FieldId','lodash','util','../../config/logger','moment'];(function(_0x565f83,_0xe65b97){var _0x368f77=function(_0x10609a){while(--_0x10609a){_0x565f83['push'](_0x565f83['shift']());}};_0x368f77(++_0xe65b97);}(_0xe3a4,0x18f));var _0x4e3a=function(_0x21a13a,_0x1aad6b){_0x21a13a=_0x21a13a-0x0;var _0x8c7c7c=_0xe3a4[_0x21a13a];return _0x8c7c7c;};'use strict';var _=require(_0x4e3a('0x0'));var util=require(_0x4e3a('0x1'));var logger=require(_0x4e3a('0x2'))('api');var moment=require(_0x4e3a('0x3'));var BPromise=require(_0x4e3a('0x4'));var rp=require(_0x4e3a('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x4e3a('0x6'));module[_0x4e3a('0x7')]=function(_0x365f71,_0x2281a7){return _0x365f71[_0x4e3a('0x8')](_0x4e3a('0x9'),attributes,{'tableName':_0x4e3a('0xa'),'paranoid':![],'indexes':[{'name':_0x4e3a('0xb'),'fields':['idField',_0x4e3a('0xc')],'unique':!![]}],'timestamps':!![]});};