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 _0x79b7=['define','FreshdeskAccount','int_freshdesk_accounts','lodash','moment','path','../../components/integrations/configuration'];(function(_0x233f6c,_0x4ad06a){var _0x1b4adf=function(_0x6248aa){while(--_0x6248aa){_0x233f6c['push'](_0x233f6c['shift']());}};_0x1b4adf(++_0x4ad06a);}(_0x79b7,0x73));var _0x779b=function(_0x250178,_0x23457c){_0x250178=_0x250178-0x0;var _0x561ea8=_0x79b7[_0x250178];return _0x561ea8;};'use strict';var _=require(_0x779b('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0x779b('0x1'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x779b('0x2'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./intFreshdeskAccount.attributes');var integrations=require(_0x779b('0x3'));module['exports']=function(_0x574e96,_0x5cbaad){return _0x574e96[_0x779b('0x4')](_0x779b('0x5'),attributes,{'tableName':_0x779b('0x6'),'paranoid':![],'indexes':[],'timestamps':!![]});};