17410deb4628dfd8efdcf9c7f81e05cc98f7348d
[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 _0xe560=['lodash','util','../../config/logger','bluebird','request-promise','path','rimraf','../../config/environment','../../components/integrations/configuration','exports','SugarcrmAccount'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xe560,0x134));var _0x0e56=function(_0x2c835b,_0x3b2146){_0x2c835b=_0x2c835b-0x0;var _0x2f4775=_0xe560[_0x2c835b];return _0x2f4775;};'use strict';var _=require(_0x0e56('0x0'));var util=require(_0x0e56('0x1'));var logger=require(_0x0e56('0x2'))('api');var moment=require('moment');var BPromise=require(_0x0e56('0x3'));var rp=require(_0x0e56('0x4'));var fs=require('fs');var path=require(_0x0e56('0x5'));var rimraf=require(_0x0e56('0x6'));var config=require(_0x0e56('0x7'));var attributes=require('./intSugarcrmAccount.attributes');var integrations=require(_0x0e56('0x8'));module[_0x0e56('0x9')]=function(_0x2e7f9a,_0x16092b){return _0x2e7f9a['define'](_0x0e56('0xa'),attributes,{'tableName':'int_sugarcrm_accounts','paranoid':![],'indexes':[],'timestamps':!![]});};