bc6acf5742400a4cf8fb42d916dd20797ee15f5b
[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 _0xa3f8=['bluebird','request-promise','rimraf','../../config/environment','./intSugarcrmAccount.attributes','../../components/integrations/configuration','exports','define','SugarcrmAccount','int_sugarcrm_accounts','lodash','util','api','moment'];(function(_0x2f4c1c,_0x5a3dd4){var _0x25e0f2=function(_0x46ea31){while(--_0x46ea31){_0x2f4c1c['push'](_0x2f4c1c['shift']());}};_0x25e0f2(++_0x5a3dd4);}(_0xa3f8,0x1f4));var _0x8a3f=function(_0x12a2a6,_0x374ff1){_0x12a2a6=_0x12a2a6-0x0;var _0x1754ae=_0xa3f8[_0x12a2a6];return _0x1754ae;};'use strict';var _=require(_0x8a3f('0x0'));var util=require(_0x8a3f('0x1'));var logger=require('../../config/logger')(_0x8a3f('0x2'));var moment=require(_0x8a3f('0x3'));var BPromise=require(_0x8a3f('0x4'));var rp=require(_0x8a3f('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x8a3f('0x6'));var config=require(_0x8a3f('0x7'));var attributes=require(_0x8a3f('0x8'));var integrations=require(_0x8a3f('0x9'));module[_0x8a3f('0xa')]=function(_0x15978a,_0x3fbb65){return _0x15978a[_0x8a3f('0xb')](_0x8a3f('0xc'),attributes,{'tableName':_0x8a3f('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};