f38e4a5fd650ea4e9e8f39fa46353c38ca48191a
[motion2.git] / server / api / intSugarcrmAccount / intSugarcrmAccount.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 _0x6eb9=['define','SugarcrmAccount','int_sugarcrm_accounts','lodash','util','api','moment','request-promise','path','rimraf','../../config/environment','./intSugarcrmAccount.attributes','../../components/integrations/configuration','exports'];(function(_0x3cdf6a,_0x18e467){var _0x3b3337=function(_0xa838c9){while(--_0xa838c9){_0x3cdf6a['push'](_0x3cdf6a['shift']());}};_0x3b3337(++_0x18e467);}(_0x6eb9,0x1ed));var _0x96eb=function(_0x1f45e5,_0x568b84){_0x1f45e5=_0x1f45e5-0x0;var _0xcb83ff=_0x6eb9[_0x1f45e5];return _0xcb83ff;};'use strict';var _=require(_0x96eb('0x0'));var util=require(_0x96eb('0x1'));var logger=require('../../config/logger')(_0x96eb('0x2'));var moment=require(_0x96eb('0x3'));var BPromise=require('bluebird');var rp=require(_0x96eb('0x4'));var fs=require('fs');var path=require(_0x96eb('0x5'));var rimraf=require(_0x96eb('0x6'));var config=require(_0x96eb('0x7'));var attributes=require(_0x96eb('0x8'));var integrations=require(_0x96eb('0x9'));module[_0x96eb('0xa')]=function(_0x32842d,_0x1321c4){return _0x32842d[_0x96eb('0xb')](_0x96eb('0xc'),attributes,{'tableName':_0x96eb('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};