97758e626ea78e707c28bae038397e3ab223786a
[motion2.git] / server / api / intVtigerAccount / intVtigerAccount.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 _0x76f0=['../../config/environment','exports','define','VtigerAccount','int_vtiger_accounts','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf'];(function(_0x1d9f2e,_0x4d6ba8){var _0x235cce=function(_0x330c1a){while(--_0x330c1a){_0x1d9f2e['push'](_0x1d9f2e['shift']());}};_0x235cce(++_0x4d6ba8);}(_0x76f0,0x1bf));var _0x076f=function(_0x19950b,_0x53d0d7){_0x19950b=_0x19950b-0x0;var _0x3c6b41=_0x76f0[_0x19950b];return _0x3c6b41;};'use strict';var _=require(_0x076f('0x0'));var util=require(_0x076f('0x1'));var logger=require(_0x076f('0x2'))(_0x076f('0x3'));var moment=require(_0x076f('0x4'));var BPromise=require(_0x076f('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x076f('0x6'));var rimraf=require(_0x076f('0x7'));var config=require(_0x076f('0x8'));var attributes=require('./intVtigerAccount.attributes');var integrations=require('../../components/integrations/configuration');module[_0x076f('0x9')]=function(_0x8241a5,_0xb43404){return _0x8241a5[_0x076f('0xa')](_0x076f('0xb'),attributes,{'tableName':_0x076f('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};