1efef4975b15387fc54aee50a10ebe193af8fa83
[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 _0xe681=['lodash','util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','Integration','integrations'];(function(_0x4d5ed0,_0x16b0be){var _0x2cace=function(_0xd29c8d){while(--_0xd29c8d){_0x4d5ed0['push'](_0x4d5ed0['shift']());}};_0x2cace(++_0x16b0be);}(_0xe681,0xa8));var _0x1e68=function(_0x39eddf,_0x3f0162){_0x39eddf=_0x39eddf-0x0;var _0x331f85=_0xe681[_0x39eddf];return _0x331f85;};'use strict';var _=require(_0x1e68('0x0'));var util=require(_0x1e68('0x1'));var logger=require('../../config/logger')(_0x1e68('0x2'));var moment=require(_0x1e68('0x3'));var BPromise=require(_0x1e68('0x4'));var rp=require(_0x1e68('0x5'));var fs=require('fs');var path=require(_0x1e68('0x6'));var rimraf=require(_0x1e68('0x7'));var config=require(_0x1e68('0x8'));var attributes=require('./integration.attributes');module[_0x1e68('0x9')]=function(_0x407882,_0x408da7){return _0x407882['define'](_0x1e68('0xa'),attributes,{'tableName':_0x1e68('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};