7cc18b77a3e17b406efa1c19bb19039ffdb3ac39
[motion2.git] / server / api / integration / integration.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 _0xfda5=['../../config/logger','moment','bluebird','request-promise','path','rimraf','./integration.attributes','exports','define','Integration','integrations','util'];(function(_0x5b494c,_0x182312){var _0x5d8bac=function(_0x36899d){while(--_0x36899d){_0x5b494c['push'](_0x5b494c['shift']());}};_0x5d8bac(++_0x182312);}(_0xfda5,0x12b));var _0x5fda=function(_0x2b522f,_0x4e4e8e){_0x2b522f=_0x2b522f-0x0;var _0x277bb6=_0xfda5[_0x2b522f];return _0x277bb6;};'use strict';var _=require('lodash');var util=require(_0x5fda('0x0'));var logger=require(_0x5fda('0x1'))('api');var moment=require(_0x5fda('0x2'));var BPromise=require(_0x5fda('0x3'));var rp=require(_0x5fda('0x4'));var fs=require('fs');var path=require(_0x5fda('0x5'));var rimraf=require(_0x5fda('0x6'));var config=require('../../config/environment');var attributes=require(_0x5fda('0x7'));module[_0x5fda('0x8')]=function(_0x1d6570,_0x460231){return _0x1d6570[_0x5fda('0x9')](_0x5fda('0xa'),attributes,{'tableName':_0x5fda('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};