Built motion from commit b0a9a629.|2.6.33
[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 _0xa2e6=['path','rimraf','./integration.attributes','exports','define','Integration','integrations','lodash','util','../../config/logger','api','bluebird','request-promise'];(function(_0x3b5bd4,_0x2d60de){var _0xec75c4=function(_0x52f7d7){while(--_0x52f7d7){_0x3b5bd4['push'](_0x3b5bd4['shift']());}};_0xec75c4(++_0x2d60de);}(_0xa2e6,0x1e8));var _0x6a2e=function(_0x1156ae,_0x26f344){_0x1156ae=_0x1156ae-0x0;var _0x3fb7bc=_0xa2e6[_0x1156ae];return _0x3fb7bc;};'use strict';var _=require(_0x6a2e('0x0'));var util=require(_0x6a2e('0x1'));var logger=require(_0x6a2e('0x2'))(_0x6a2e('0x3'));var moment=require('moment');var BPromise=require(_0x6a2e('0x4'));var rp=require(_0x6a2e('0x5'));var fs=require('fs');var path=require(_0x6a2e('0x6'));var rimraf=require(_0x6a2e('0x7'));var config=require('../../config/environment');var attributes=require(_0x6a2e('0x8'));module[_0x6a2e('0x9')]=function(_0x1710bc,_0x3a023e){return _0x1710bc[_0x6a2e('0xa')](_0x6a2e('0xb'),attributes,{'tableName':_0x6a2e('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};