Built motion from commit 5b761a7b.|2.5.36
[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 _0xf31f=['api','moment','bluebird','path','rimraf','../../config/environment','exports','define','FreshsalesConfiguration','int_freshsales_configurations','util','../../config/logger'];(function(_0x43c211,_0x86ae16){var _0x5f3e83=function(_0x4d112f){while(--_0x4d112f){_0x43c211['push'](_0x43c211['shift']());}};_0x5f3e83(++_0x86ae16);}(_0xf31f,0x17e));var _0xff31=function(_0x193b91,_0x38e88d){_0x193b91=_0x193b91-0x0;var _0x559b18=_0xf31f[_0x193b91];return _0x559b18;};'use strict';var _=require('lodash');var util=require(_0xff31('0x0'));var logger=require(_0xff31('0x1'))(_0xff31('0x2'));var moment=require(_0xff31('0x3'));var BPromise=require(_0xff31('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xff31('0x5'));var rimraf=require(_0xff31('0x6'));var config=require(_0xff31('0x7'));var attributes=require('./intFreshsalesConfiguration.attributes');module[_0xff31('0x8')]=function(_0x554d8b,_0x1b1ffd){return _0x554d8b[_0xff31('0x9')](_0xff31('0xa'),attributes,{'tableName':_0xff31('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};