d87e254245bfbd940fd06d0405a9da6141c344a7
[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 _0x4c1c=['lodash','util','api','moment','bluebird','path','rimraf','../../config/environment','exports','define','Integration','integrations'];(function(_0x3f118f,_0x44db4b){var _0x4ca584=function(_0x370dbd){while(--_0x370dbd){_0x3f118f['push'](_0x3f118f['shift']());}};_0x4ca584(++_0x44db4b);}(_0x4c1c,0x1a4));var _0xc4c1=function(_0x17dbdd,_0x8a27d5){_0x17dbdd=_0x17dbdd-0x0;var _0x15ed0c=_0x4c1c[_0x17dbdd];return _0x15ed0c;};'use strict';var _=require(_0xc4c1('0x0'));var util=require(_0xc4c1('0x1'));var logger=require('../../config/logger')(_0xc4c1('0x2'));var moment=require(_0xc4c1('0x3'));var BPromise=require(_0xc4c1('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xc4c1('0x5'));var rimraf=require(_0xc4c1('0x6'));var config=require(_0xc4c1('0x7'));var attributes=require('./integration.attributes');module[_0xc4c1('0x8')]=function(_0x12597a,_0x4ba2e3){return _0x12597a[_0xc4c1('0x9')](_0xc4c1('0xa'),attributes,{'tableName':_0xc4c1('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};