01d8d84e2804a6d693c6df8c0a2990aa21c4faf8
[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 _0x86dd=['bluebird','request-promise','path','rimraf','./integration.attributes','exports','define','util','../../config/logger','api'];(function(_0x10dbf6,_0x3ff964){var _0x452147=function(_0x7476e0){while(--_0x7476e0){_0x10dbf6['push'](_0x10dbf6['shift']());}};_0x452147(++_0x3ff964);}(_0x86dd,0x11f));var _0xd86d=function(_0x32acb4,_0x164242){_0x32acb4=_0x32acb4-0x0;var _0x54531b=_0x86dd[_0x32acb4];return _0x54531b;};'use strict';var _=require('lodash');var util=require(_0xd86d('0x0'));var logger=require(_0xd86d('0x1'))(_0xd86d('0x2'));var moment=require('moment');var BPromise=require(_0xd86d('0x3'));var rp=require(_0xd86d('0x4'));var fs=require('fs');var path=require(_0xd86d('0x5'));var rimraf=require(_0xd86d('0x6'));var config=require('../../config/environment');var attributes=require(_0xd86d('0x7'));module[_0xd86d('0x8')]=function(_0x1774f6,_0x3168da){return _0x1774f6[_0xd86d('0x9')]('Integration',attributes,{'tableName':'integrations','paranoid':![],'indexes':[],'timestamps':!![]});};