f273f31481d4941bedc64ba7187645797d758d82
[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 _0xf9c9=['define','SugarcrmAccount','int_sugarcrm_accounts','lodash','util','../../config/logger','api','request-promise','rimraf','../../config/environment','./intSugarcrmAccount.attributes','exports'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xf9c9,0x1b3));var _0x9f9c=function(_0x295317,_0x46aebf){_0x295317=_0x295317-0x0;var _0x458246=_0xf9c9[_0x295317];return _0x458246;};'use strict';var _=require(_0x9f9c('0x0'));var util=require(_0x9f9c('0x1'));var logger=require(_0x9f9c('0x2'))(_0x9f9c('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x9f9c('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x9f9c('0x5'));var config=require(_0x9f9c('0x6'));var attributes=require(_0x9f9c('0x7'));var integrations=require('../../components/integrations/configuration');module[_0x9f9c('0x8')]=function(_0x3847f4,_0x364575){return _0x3847f4[_0x9f9c('0x9')](_0x9f9c('0xa'),attributes,{'tableName':_0x9f9c('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};