eaf9b421cf561b7c64ddf989fb559af6274b032a
[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 _0xfecc=['exports','SugarcrmAccount','int_sugarcrm_accounts','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','./intSugarcrmAccount.attributes','../../components/integrations/configuration'];(function(_0x533176,_0xc60118){var _0x22ec6d=function(_0x17441d){while(--_0x17441d){_0x533176['push'](_0x533176['shift']());}};_0x22ec6d(++_0xc60118);}(_0xfecc,0x107));var _0xcfec=function(_0x11742c,_0x421caa){_0x11742c=_0x11742c-0x0;var _0x1dc91b=_0xfecc[_0x11742c];return _0x1dc91b;};'use strict';var _=require(_0xcfec('0x0'));var util=require(_0xcfec('0x1'));var logger=require(_0xcfec('0x2'))(_0xcfec('0x3'));var moment=require(_0xcfec('0x4'));var BPromise=require(_0xcfec('0x5'));var rp=require(_0xcfec('0x6'));var fs=require('fs');var path=require(_0xcfec('0x7'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xcfec('0x8'));var integrations=require(_0xcfec('0x9'));module[_0xcfec('0xa')]=function(_0x2f84e9,_0x4c387e){return _0x2f84e9['define'](_0xcfec('0xb'),attributes,{'tableName':_0xcfec('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};