fd4dbd01408dc945bcbc2f86a702f703a863bce1
[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 _0xe61b=['exports','define','Integration','integrations','lodash','util','../../config/logger','api','bluebird','rimraf','../../config/environment'];(function(_0x178bb6,_0x1fe40c){var _0x43961b=function(_0xb35f7f){while(--_0xb35f7f){_0x178bb6['push'](_0x178bb6['shift']());}};_0x43961b(++_0x1fe40c);}(_0xe61b,0x138));var _0xbe61=function(_0x337a10,_0x5191c7){_0x337a10=_0x337a10-0x0;var _0x575f98=_0xe61b[_0x337a10];return _0x575f98;};'use strict';var _=require(_0xbe61('0x0'));var util=require(_0xbe61('0x1'));var logger=require(_0xbe61('0x2'))(_0xbe61('0x3'));var moment=require('moment');var BPromise=require(_0xbe61('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xbe61('0x5'));var config=require(_0xbe61('0x6'));var attributes=require('./integration.attributes');module[_0xbe61('0x7')]=function(_0x49d9ea,_0x45fb65){return _0x49d9ea[_0xbe61('0x8')](_0xbe61('0x9'),attributes,{'tableName':_0xbe61('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};