6704be71395cf04a8bc25807e1796d5f1e0d31c7
[motion2.git] / server / api / intFreshsalesAccount / intFreshsalesAccount.model.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xa840=['../../config/environment','exports','define','FreshsalesAccount','int_freshsales_accounts','util','bluebird','path','rimraf'];(function(_0x39df63,_0x1cc129){var _0x1d83f6=function(_0x36e023){while(--_0x36e023){_0x39df63['push'](_0x39df63['shift']());}};_0x1d83f6(++_0x1cc129);}(_0xa840,0x17f));var _0x0a84=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xa840[_0x3dd15e];return _0x231fd0;};'use strict';var _=require('lodash');var util=require(_0x0a84('0x0'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x0a84('0x1'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0a84('0x2'));var rimraf=require(_0x0a84('0x3'));var config=require(_0x0a84('0x4'));var attributes=require('./intFreshsalesAccount.attributes');var integrations=require('../../components/integrations/configuration');module[_0x0a84('0x5')]=function(_0x2b386b,_0x1eb43a){return _0x2b386b[_0x0a84('0x6')](_0x0a84('0x7'),attributes,{'tableName':_0x0a84('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};