3cb3b8eadd4c37e8057e5462fb092f950c66f913
[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 _0x0d7e=['path','rimraf','../../config/environment','./intFreshsalesAccount.attributes','../../components/integrations/configuration','exports','define','int_freshsales_accounts','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x2e77f4,_0x42aa0a){var _0x51fb86=function(_0x41723d){while(--_0x41723d){_0x2e77f4['push'](_0x2e77f4['shift']());}};_0x51fb86(++_0x42aa0a);}(_0x0d7e,0x167));var _0xe0d7=function(_0xeb6282,_0x421075){_0xeb6282=_0xeb6282-0x0;var _0x2a39ec=_0x0d7e[_0xeb6282];return _0x2a39ec;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xe0d7('0x0'))(_0xe0d7('0x1'));var moment=require(_0xe0d7('0x2'));var BPromise=require(_0xe0d7('0x3'));var rp=require(_0xe0d7('0x4'));var fs=require('fs');var path=require(_0xe0d7('0x5'));var rimraf=require(_0xe0d7('0x6'));var config=require(_0xe0d7('0x7'));var attributes=require(_0xe0d7('0x8'));var integrations=require(_0xe0d7('0x9'));module[_0xe0d7('0xa')]=function(_0x2297e8,_0x32d3c7){return _0x2297e8[_0xe0d7('0xb')]('FreshsalesAccount',attributes,{'tableName':_0xe0d7('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};