Built motion from commit 43538d75.|2.5.35
[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 _0xc58a=['../../components/integrations/configuration','exports','define','VtigerAccount','int_vtiger_accounts','util','api','moment','bluebird','request-promise','path','../../config/environment'];(function(_0x227348,_0x130ab0){var _0x37d9f6=function(_0x4c8cfb){while(--_0x4c8cfb){_0x227348['push'](_0x227348['shift']());}};_0x37d9f6(++_0x130ab0);}(_0xc58a,0x125));var _0xac58=function(_0x4c445a,_0x4ee80f){_0x4c445a=_0x4c445a-0x0;var _0x2f611c=_0xc58a[_0x4c445a];return _0x2f611c;};'use strict';var _=require('lodash');var util=require(_0xac58('0x0'));var logger=require('../../config/logger')(_0xac58('0x1'));var moment=require(_0xac58('0x2'));var BPromise=require(_0xac58('0x3'));var rp=require(_0xac58('0x4'));var fs=require('fs');var path=require(_0xac58('0x5'));var rimraf=require('rimraf');var config=require(_0xac58('0x6'));var attributes=require('./intVtigerAccount.attributes');var integrations=require(_0xac58('0x7'));module[_0xac58('0x8')]=function(_0x500312,_0x1ff7bc){return _0x500312[_0xac58('0x9')](_0xac58('0xa'),attributes,{'tableName':_0xac58('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};