b88ec1e80bc12aa5fe692bc5bcb6bdc2a8bb3617
[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 _0xcfe9=['integrations','../../config/logger','moment','bluebird','rimraf','../../config/environment','./integration.attributes','exports','define','Integration'];(function(_0x5382fe,_0x9b02a){var _0x2c0146=function(_0x9c63f8){while(--_0x9c63f8){_0x5382fe['push'](_0x5382fe['shift']());}};_0x2c0146(++_0x9b02a);}(_0xcfe9,0x187));var _0x9cfe=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xcfe9[_0x3dd15e];return _0x231fd0;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x9cfe('0x0'))('api');var moment=require(_0x9cfe('0x1'));var BPromise=require(_0x9cfe('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x9cfe('0x3'));var config=require(_0x9cfe('0x4'));var attributes=require(_0x9cfe('0x5'));module[_0x9cfe('0x6')]=function(_0x2246ac,_0x28fd21){return _0x2246ac[_0x9cfe('0x7')](_0x9cfe('0x8'),attributes,{'tableName':_0x9cfe('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};