40ef47e3d0b6f7d5a9de67ebe6d8f77f1c10002b
[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 _0xaed8=['moment','bluebird','request-promise','path','rimraf','exports','Integration','util','../../config/logger','api'];(function(_0x13b870,_0x58d7e7){var _0x512e01=function(_0x1c3003){while(--_0x1c3003){_0x13b870['push'](_0x13b870['shift']());}};_0x512e01(++_0x58d7e7);}(_0xaed8,0x10b));var _0x8aed=function(_0x102ff9,_0x907658){_0x102ff9=_0x102ff9-0x0;var _0x24fa97=_0xaed8[_0x102ff9];return _0x24fa97;};'use strict';var _=require('lodash');var util=require(_0x8aed('0x0'));var logger=require(_0x8aed('0x1'))(_0x8aed('0x2'));var moment=require(_0x8aed('0x3'));var BPromise=require(_0x8aed('0x4'));var rp=require(_0x8aed('0x5'));var fs=require('fs');var path=require(_0x8aed('0x6'));var rimraf=require(_0x8aed('0x7'));var config=require('../../config/environment');var attributes=require('./integration.attributes');module[_0x8aed('0x8')]=function(_0x547bce,_0x5d24b5){return _0x547bce['define'](_0x8aed('0x9'),attributes,{'tableName':'integrations','paranoid':![],'indexes':[],'timestamps':!![]});};