3d3228bd815df73212dd729c9a40c72201d7c1ee
[motion2.git] / server / api / intFreshsalesConfiguration / intFreshsalesConfiguration.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 _0xebf0=['api','moment','bluebird','request-promise','exports','define','FreshsalesConfiguration','int_freshsales_configurations','util','../../config/logger'];(function(_0xdbf8f2,_0x409a32){var _0x4ed5d2=function(_0xe7819c){while(--_0xe7819c){_0xdbf8f2['push'](_0xdbf8f2['shift']());}};_0x4ed5d2(++_0x409a32);}(_0xebf0,0x166));var _0x0ebf=function(_0x132ba5,_0xa689f0){_0x132ba5=_0x132ba5-0x0;var _0x47298c=_0xebf0[_0x132ba5];return _0x47298c;};'use strict';var _=require('lodash');var util=require(_0x0ebf('0x0'));var logger=require(_0x0ebf('0x1'))(_0x0ebf('0x2'));var moment=require(_0x0ebf('0x3'));var BPromise=require(_0x0ebf('0x4'));var rp=require(_0x0ebf('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./intFreshsalesConfiguration.attributes');module[_0x0ebf('0x6')]=function(_0x31cc5a,_0x23b132){return _0x31cc5a[_0x0ebf('0x7')](_0x0ebf('0x8'),attributes,{'tableName':_0x0ebf('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};