6c09e97f2b804068ffdcf97f6675dd21fa0eb637
[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 _0xac8e=['api','moment','bluebird','path','../../config/environment','exports','FreshsalesAccount','int_freshsales_accounts','lodash','util','../../config/logger'];(function(_0x5d3a6a,_0x11c93a){var _0x35980b=function(_0x554419){while(--_0x554419){_0x5d3a6a['push'](_0x5d3a6a['shift']());}};_0x35980b(++_0x11c93a);}(_0xac8e,0x19f));var _0xeac8=function(_0x104aea,_0x2a8556){_0x104aea=_0x104aea-0x0;var _0x52714c=_0xac8e[_0x104aea];return _0x52714c;};'use strict';var _=require(_0xeac8('0x0'));var util=require(_0xeac8('0x1'));var logger=require(_0xeac8('0x2'))(_0xeac8('0x3'));var moment=require(_0xeac8('0x4'));var BPromise=require(_0xeac8('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xeac8('0x6'));var rimraf=require('rimraf');var config=require(_0xeac8('0x7'));var attributes=require('./intFreshsalesAccount.attributes');var integrations=require('../../components/integrations/configuration');module[_0xeac8('0x8')]=function(_0x3120df,_0x840395){return _0x3120df['define'](_0xeac8('0x9'),attributes,{'tableName':_0xeac8('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};