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 _0x462f=['SugarcrmAccount','int_sugarcrm_accounts','lodash','util','api','request-promise','path','../../config/environment','exports','define'];(function(_0x46ed90,_0x421419){var _0x200883=function(_0x3efa88){while(--_0x3efa88){_0x46ed90['push'](_0x46ed90['shift']());}};_0x200883(++_0x421419);}(_0x462f,0x1ec));var _0xf462=function(_0x20c9b2,_0x55d7b1){_0x20c9b2=_0x20c9b2-0x0;var _0x2c6030=_0x462f[_0x20c9b2];return _0x2c6030;};'use strict';var _=require(_0xf462('0x0'));var util=require(_0xf462('0x1'));var logger=require('../../config/logger')(_0xf462('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xf462('0x3'));var fs=require('fs');var path=require(_0xf462('0x4'));var rimraf=require('rimraf');var config=require(_0xf462('0x5'));var attributes=require('./intSugarcrmAccount.attributes');var integrations=require('../../components/integrations/configuration');module[_0xf462('0x6')]=function(_0x500984,_0x9745b5){return _0x500984[_0xf462('0x7')](_0xf462('0x8'),attributes,{'tableName':_0xf462('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};