0fe1a9502338f518f72e8a123996266c3978c4e7
[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 _0xae59=['bluebird','path','../../config/environment','./intFreshsalesAccount.attributes','../../components/integrations/configuration','exports','define','FreshsalesAccount','int_freshsales_accounts','lodash','../../config/logger','api'];(function(_0x4294e6,_0x55231b){var _0x1f6cbb=function(_0x50bb94){while(--_0x50bb94){_0x4294e6['push'](_0x4294e6['shift']());}};_0x1f6cbb(++_0x55231b);}(_0xae59,0x8d));var _0x9ae5=function(_0x5d7367,_0x195416){_0x5d7367=_0x5d7367-0x0;var _0x2e3c63=_0xae59[_0x5d7367];return _0x2e3c63;};'use strict';var _=require(_0x9ae5('0x0'));var util=require('util');var logger=require(_0x9ae5('0x1'))(_0x9ae5('0x2'));var moment=require('moment');var BPromise=require(_0x9ae5('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x9ae5('0x4'));var rimraf=require('rimraf');var config=require(_0x9ae5('0x5'));var attributes=require(_0x9ae5('0x6'));var integrations=require(_0x9ae5('0x7'));module[_0x9ae5('0x8')]=function(_0x441397,_0x36b694){return _0x441397[_0x9ae5('0x9')](_0x9ae5('0xa'),attributes,{'tableName':_0x9ae5('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};