061358a352a0535b5a72a3c93a2f6109f08328c6
[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 _0xd6ed=['./intSugarcrmAccount.attributes','../../components/integrations/configuration','exports','define','SugarcrmAccount','int_sugarcrm_accounts','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x56482c,_0x16118d){var _0x5aae7a=function(_0x52512f){while(--_0x52512f){_0x56482c['push'](_0x56482c['shift']());}};_0x5aae7a(++_0x16118d);}(_0xd6ed,0x1aa));var _0xdd6e=function(_0x2cb474,_0x1d3290){_0x2cb474=_0x2cb474-0x0;var _0x42b8d5=_0xd6ed[_0x2cb474];return _0x42b8d5;};'use strict';var _=require('lodash');var util=require(_0xdd6e('0x0'));var logger=require(_0xdd6e('0x1'))(_0xdd6e('0x2'));var moment=require(_0xdd6e('0x3'));var BPromise=require(_0xdd6e('0x4'));var rp=require(_0xdd6e('0x5'));var fs=require('fs');var path=require(_0xdd6e('0x6'));var rimraf=require(_0xdd6e('0x7'));var config=require(_0xdd6e('0x8'));var attributes=require(_0xdd6e('0x9'));var integrations=require(_0xdd6e('0xa'));module[_0xdd6e('0xb')]=function(_0x5599bd,_0x4b77c8){return _0x5599bd[_0xdd6e('0xc')](_0xdd6e('0xd'),attributes,{'tableName':_0xdd6e('0xe'),'paranoid':![],'indexes':[],'timestamps':!![]});};