27a7f6cc0006fadd4d19405d9c68ebaa5fe7f4f5
[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 _0xe558=['FreshsalesConfiguration','int_freshsales_configurations','util','api','moment','bluebird','request-promise','path','../../config/environment','./intFreshsalesConfiguration.attributes','exports','define'];(function(_0x382169,_0xfe2c6b){var _0x501ed2=function(_0x237e43){while(--_0x237e43){_0x382169['push'](_0x382169['shift']());}};_0x501ed2(++_0xfe2c6b);}(_0xe558,0xda));var _0x8e55=function(_0x2a9228,_0x174b26){_0x2a9228=_0x2a9228-0x0;var _0xc7acde=_0xe558[_0x2a9228];return _0xc7acde;};'use strict';var _=require('lodash');var util=require(_0x8e55('0x0'));var logger=require('../../config/logger')(_0x8e55('0x1'));var moment=require(_0x8e55('0x2'));var BPromise=require(_0x8e55('0x3'));var rp=require(_0x8e55('0x4'));var fs=require('fs');var path=require(_0x8e55('0x5'));var rimraf=require('rimraf');var config=require(_0x8e55('0x6'));var attributes=require(_0x8e55('0x7'));module[_0x8e55('0x8')]=function(_0x94f0b1,_0x43a3fb){return _0x94f0b1[_0x8e55('0x9')](_0x8e55('0xa'),attributes,{'tableName':_0x8e55('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};