e09d5732f49a4c8f11accd4e1c9c565e75264efa
[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 _0xdf0d=['rimraf','exports','define','Integration','lodash','util','../../config/logger','api','bluebird','request-promise','path'];(function(_0x485b5a,_0x2b289b){var _0xd2b34d=function(_0x34dcbd){while(--_0x34dcbd){_0x485b5a['push'](_0x485b5a['shift']());}};_0xd2b34d(++_0x2b289b);}(_0xdf0d,0x17a));var _0xddf0=function(_0x471b98,_0x7028dc){_0x471b98=_0x471b98-0x0;var _0x529f89=_0xdf0d[_0x471b98];return _0x529f89;};'use strict';var _=require(_0xddf0('0x0'));var util=require(_0xddf0('0x1'));var logger=require(_0xddf0('0x2'))(_0xddf0('0x3'));var moment=require('moment');var BPromise=require(_0xddf0('0x4'));var rp=require(_0xddf0('0x5'));var fs=require('fs');var path=require(_0xddf0('0x6'));var rimraf=require(_0xddf0('0x7'));var config=require('../../config/environment');var attributes=require('./integration.attributes');module[_0xddf0('0x8')]=function(_0x215c75,_0x19c148){return _0x215c75[_0xddf0('0x9')](_0xddf0('0xa'),attributes,{'tableName':'integrations','paranoid':![],'indexes':[],'timestamps':!![]});};