608755e636bd3846684184bd4445e5ea0a118f48
[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 _0xc547=['rimraf','../../config/environment','./intFreshsalesConfiguration.attributes','exports','FreshsalesConfiguration','int_freshsales_configurations','util','api','bluebird'];(function(_0x11005e,_0x20c3d2){var _0x29338f=function(_0x3384e9){while(--_0x3384e9){_0x11005e['push'](_0x11005e['shift']());}};_0x29338f(++_0x20c3d2);}(_0xc547,0x153));var _0x7c54=function(_0x36b866,_0x411910){_0x36b866=_0x36b866-0x0;var _0x571852=_0xc547[_0x36b866];return _0x571852;};'use strict';var _=require('lodash');var util=require(_0x7c54('0x0'));var logger=require('../../config/logger')(_0x7c54('0x1'));var moment=require('moment');var BPromise=require(_0x7c54('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x7c54('0x3'));var config=require(_0x7c54('0x4'));var attributes=require(_0x7c54('0x5'));module[_0x7c54('0x6')]=function(_0x3581bb,_0x59c727){return _0x3581bb['define'](_0x7c54('0x7'),attributes,{'tableName':_0x7c54('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};