b4ae753b4999be6b842b805372aa437f5d7b07d9
[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 _0xf3b7=['request-promise','rimraf','../../config/environment','./intSugarcrmAccount.attributes','exports','define','SugarcrmAccount','int_sugarcrm_accounts','lodash','util','api','moment','bluebird'];(function(_0x4a41b3,_0x218e8e){var _0xa2acde=function(_0x5ec669){while(--_0x5ec669){_0x4a41b3['push'](_0x4a41b3['shift']());}};_0xa2acde(++_0x218e8e);}(_0xf3b7,0x119));var _0x7f3b=function(_0x28c672,_0x10ecdb){_0x28c672=_0x28c672-0x0;var _0xe2b59c=_0xf3b7[_0x28c672];return _0xe2b59c;};'use strict';var _=require(_0x7f3b('0x0'));var util=require(_0x7f3b('0x1'));var logger=require('../../config/logger')(_0x7f3b('0x2'));var moment=require(_0x7f3b('0x3'));var BPromise=require(_0x7f3b('0x4'));var rp=require(_0x7f3b('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x7f3b('0x6'));var config=require(_0x7f3b('0x7'));var attributes=require(_0x7f3b('0x8'));var integrations=require('../../components/integrations/configuration');module[_0x7f3b('0x9')]=function(_0x2f4fc5,_0x382627){return _0x2f4fc5[_0x7f3b('0xa')](_0x7f3b('0xb'),attributes,{'tableName':_0x7f3b('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};