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 _0xcb0e=['moment','path','rimraf','../../config/environment','exports','define','SugarcrmField','idField','FieldId','lodash','util','../../config/logger'];(function(_0x53fc0a,_0x5e592a){var _0x4f51e1=function(_0x34ab16){while(--_0x34ab16){_0x53fc0a['push'](_0x53fc0a['shift']());}};_0x4f51e1(++_0x5e592a);}(_0xcb0e,0x159));var _0xecb0=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xcb0e[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0xecb0('0x0'));var util=require(_0xecb0('0x1'));var logger=require(_0xecb0('0x2'))('api');var moment=require(_0xecb0('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xecb0('0x4'));var rimraf=require(_0xecb0('0x5'));var config=require(_0xecb0('0x6'));var attributes=require('./intSugarcrmField.attributes');module[_0xecb0('0x7')]=function(_0xf098f7,_0x45b940){return _0xf098f7[_0xecb0('0x8')](_0xecb0('0x9'),attributes,{'tableName':'int_sugarcrm_fields','paranoid':![],'indexes':[{'name':'sugarcrm_unique_index','fields':[_0xecb0('0xa'),_0xecb0('0xb')],'unique':!![]}],'timestamps':!![]});};