1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x566e=['rimraf','../../config/environment','./intSugarcrmField.attributes','exports','define','SugarcrmField','sugarcrm_unique_index','util','moment','bluebird','path'];(function(_0x52af16,_0x59cb6f){var _0x7e642c=function(_0x2c0ccc){while(--_0x2c0ccc){_0x52af16['push'](_0x52af16['shift']());}};_0x7e642c(++_0x59cb6f);}(_0x566e,0xee));var _0xe566=function(_0x36ed3c,_0x44a00a){_0x36ed3c=_0x36ed3c-0x0;var _0x52a2e0=_0x566e[_0x36ed3c];return _0x52a2e0;};'use strict';var _=require('lodash');var util=require(_0xe566('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0xe566('0x1'));var BPromise=require(_0xe566('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xe566('0x3'));var rimraf=require(_0xe566('0x4'));var config=require(_0xe566('0x5'));var attributes=require(_0xe566('0x6'));module[_0xe566('0x7')]=function(_0x25d2d3,_0x4caa4b){return _0x25d2d3[_0xe566('0x8')](_0xe566('0x9'),attributes,{'tableName':'int_sugarcrm_fields','paranoid':![],'indexes':[{'name':_0xe566('0xa'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});};