f5b69820e88970dd1fad0ae815b9fb30b78f66cb
[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 _0x0e8b=['exports','define','Integration','integrations','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./integration.attributes'];(function(_0x19e76a,_0x193c8e){var _0x4a2052=function(_0x2bb097){while(--_0x2bb097){_0x19e76a['push'](_0x19e76a['shift']());}};_0x4a2052(++_0x193c8e);}(_0x0e8b,0x1f2));var _0xb0e8=function(_0x48fb9a,_0x317e13){_0x48fb9a=_0x48fb9a-0x0;var _0x2111c6=_0x0e8b[_0x48fb9a];return _0x2111c6;};'use strict';var _=require('lodash');var util=require(_0xb0e8('0x0'));var logger=require(_0xb0e8('0x1'))(_0xb0e8('0x2'));var moment=require('moment');var BPromise=require(_0xb0e8('0x3'));var rp=require(_0xb0e8('0x4'));var fs=require('fs');var path=require(_0xb0e8('0x5'));var rimraf=require(_0xb0e8('0x6'));var config=require(_0xb0e8('0x7'));var attributes=require(_0xb0e8('0x8'));module[_0xb0e8('0x9')]=function(_0x4bea2d,_0x504aa4){return _0x4bea2d[_0xb0e8('0xa')](_0xb0e8('0xb'),attributes,{'tableName':_0xb0e8('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};