Built motion from commit 19a84241.|2.5.34
[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 _0x0f82=['./intSugarcrmAccount.attributes','../../components/integrations/configuration','exports','SugarcrmAccount','int_sugarcrm_accounts','util','api','moment','bluebird','path','rimraf','../../config/environment'];(function(_0x5bbf6a,_0x29460a){var _0x5d051a=function(_0x2c76a7){while(--_0x2c76a7){_0x5bbf6a['push'](_0x5bbf6a['shift']());}};_0x5d051a(++_0x29460a);}(_0x0f82,0x155));var _0x20f8=function(_0x335271,_0x5025f2){_0x335271=_0x335271-0x0;var _0xa9fff8=_0x0f82[_0x335271];return _0xa9fff8;};'use strict';var _=require('lodash');var util=require(_0x20f8('0x0'));var logger=require('../../config/logger')(_0x20f8('0x1'));var moment=require(_0x20f8('0x2'));var BPromise=require(_0x20f8('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x20f8('0x4'));var rimraf=require(_0x20f8('0x5'));var config=require(_0x20f8('0x6'));var attributes=require(_0x20f8('0x7'));var integrations=require(_0x20f8('0x8'));module[_0x20f8('0x9')]=function(_0x227084,_0x58c6e3){return _0x227084['define'](_0x20f8('0xa'),attributes,{'tableName':_0x20f8('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};