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 _0x11b3=['exports','define','SugarcrmField','int_sugarcrm_fields','sugarcrm_unique_index','FieldId','lodash','util','api','request-promise','./intSugarcrmField.attributes'];(function(_0x4b4467,_0x44dade){var _0x29d364=function(_0x46704d){while(--_0x46704d){_0x4b4467['push'](_0x4b4467['shift']());}};_0x29d364(++_0x44dade);}(_0x11b3,0xa0));var _0x311b=function(_0x1999fe,_0xc888cf){_0x1999fe=_0x1999fe-0x0;var _0xabf9b3=_0x11b3[_0x1999fe];return _0xabf9b3;};'use strict';var _=require(_0x311b('0x0'));var util=require(_0x311b('0x1'));var logger=require('../../config/logger')(_0x311b('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x311b('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x311b('0x4'));module[_0x311b('0x5')]=function(_0x825db0,_0x4adda1){return _0x825db0[_0x311b('0x6')](_0x311b('0x7'),attributes,{'tableName':_0x311b('0x8'),'paranoid':![],'indexes':[{'name':_0x311b('0x9'),'fields':['idField',_0x311b('0xa')],'unique':!![]}],'timestamps':!![]});};