af3b62e1e31efc299d4c6b8394dae340329cccec
[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 _0x2da6=['int_freshsales_accounts','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','./intFreshsalesAccount.attributes','../../components/integrations/configuration','exports','define','FreshsalesAccount'];(function(_0x1a08e2,_0x3f1a81){var _0x3e83b0=function(_0x29e48a){while(--_0x29e48a){_0x1a08e2['push'](_0x1a08e2['shift']());}};_0x3e83b0(++_0x3f1a81);}(_0x2da6,0x1dd));var _0x62da=function(_0x41a73f,_0x19fcb6){_0x41a73f=_0x41a73f-0x0;var _0x24594f=_0x2da6[_0x41a73f];return _0x24594f;};'use strict';var _=require(_0x62da('0x0'));var util=require(_0x62da('0x1'));var logger=require(_0x62da('0x2'))(_0x62da('0x3'));var moment=require(_0x62da('0x4'));var BPromise=require(_0x62da('0x5'));var rp=require(_0x62da('0x6'));var fs=require('fs');var path=require(_0x62da('0x7'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x62da('0x8'));var integrations=require(_0x62da('0x9'));module[_0x62da('0xa')]=function(_0x30437f,_0x100e73){return _0x30437f[_0x62da('0xb')](_0x62da('0xc'),attributes,{'tableName':_0x62da('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};