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 _0xb790=['../../config/environment','exports','define','FreshsalesConfiguration','int_freshsales_configurations','util','bluebird','rimraf'];(function(_0x4da23b,_0xed7ef2){var _0x135796=function(_0x49c5b2){while(--_0x49c5b2){_0x4da23b['push'](_0x4da23b['shift']());}};_0x135796(++_0xed7ef2);}(_0xb790,0xe5));var _0x0b79=function(_0x29db71,_0x306de1){_0x29db71=_0x29db71-0x0;var _0x2c8a07=_0xb790[_0x29db71];return _0x2c8a07;};'use strict';var _=require('lodash');var util=require(_0x0b79('0x0'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x0b79('0x1'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x0b79('0x2'));var config=require(_0x0b79('0x3'));var attributes=require('./intFreshsalesConfiguration.attributes');module[_0x0b79('0x4')]=function(_0x1b1f97,_0x169608){return _0x1b1f97[_0x0b79('0x5')](_0x0b79('0x6'),attributes,{'tableName':_0x0b79('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};