2fa07a852bbbc2045367a2eb39b7ba008eb8c545
[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 _0xd1f3=['Integration','lodash','util','api','path','rimraf','../../config/environment','exports'];(function(_0x4ecb37,_0x4f0eab){var _0x578849=function(_0x379eb7){while(--_0x379eb7){_0x4ecb37['push'](_0x4ecb37['shift']());}};_0x578849(++_0x4f0eab);}(_0xd1f3,0x161));var _0x3d1f=function(_0x3e87db,_0x245674){_0x3e87db=_0x3e87db-0x0;var _0x3dde79=_0xd1f3[_0x3e87db];return _0x3dde79;};'use strict';var _=require(_0x3d1f('0x0'));var util=require(_0x3d1f('0x1'));var logger=require('../../config/logger')(_0x3d1f('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x3d1f('0x3'));var rimraf=require(_0x3d1f('0x4'));var config=require(_0x3d1f('0x5'));var attributes=require('./integration.attributes');module[_0x3d1f('0x6')]=function(_0x326810,_0x4d3ec4){return _0x326810['define'](_0x3d1f('0x7'),attributes,{'tableName':'integrations','paranoid':![],'indexes':[],'timestamps':!![]});};