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 _0x1b0e=['rimraf','../../config/environment','exports','FreshsalesField','int_freshsales_fields','idField','FieldId','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x3f9a64,_0x224930){var _0x353b88=function(_0x4fdb95){while(--_0x4fdb95){_0x3f9a64['push'](_0x3f9a64['shift']());}};_0x353b88(++_0x224930);}(_0x1b0e,0x132));var _0xe1b0=function(_0x551077,_0x3dd27d){_0x551077=_0x551077-0x0;var _0x2d24fa=_0x1b0e[_0x551077];return _0x2d24fa;};'use strict';var _=require(_0xe1b0('0x0'));var util=require(_0xe1b0('0x1'));var logger=require(_0xe1b0('0x2'))(_0xe1b0('0x3'));var moment=require(_0xe1b0('0x4'));var BPromise=require(_0xe1b0('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xe1b0('0x6'));var config=require(_0xe1b0('0x7'));var attributes=require('./intFreshsalesField.attributes');module[_0xe1b0('0x8')]=function(_0x2a049f,_0xfb57ae){return _0x2a049f['define'](_0xe1b0('0x9'),attributes,{'tableName':_0xe1b0('0xa'),'paranoid':![],'indexes':[{'name':'freshsales_unique_index','fields':[_0xe1b0('0xb'),_0xe1b0('0xc')],'unique':!![]}],'timestamps':!![]});};