Built motion from commit ddca4d0d.|2.5.47
[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 _0xe4f6=['path','rimraf','./integration.attributes','exports','define','integrations','lodash','api','moment','request-promise'];(function(_0x48d174,_0x35b36c){var _0x1a7cb4=function(_0x250d1e){while(--_0x250d1e){_0x48d174['push'](_0x48d174['shift']());}};_0x1a7cb4(++_0x35b36c);}(_0xe4f6,0x92));var _0x6e4f=function(_0x50936a,_0x10eaf8){_0x50936a=_0x50936a-0x0;var _0x16c0d2=_0xe4f6[_0x50936a];return _0x16c0d2;};'use strict';var _=require(_0x6e4f('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x6e4f('0x1'));var moment=require(_0x6e4f('0x2'));var BPromise=require('bluebird');var rp=require(_0x6e4f('0x3'));var fs=require('fs');var path=require(_0x6e4f('0x4'));var rimraf=require(_0x6e4f('0x5'));var config=require('../../config/environment');var attributes=require(_0x6e4f('0x6'));module[_0x6e4f('0x7')]=function(_0x30e6fe,_0x3751eb){return _0x30e6fe[_0x6e4f('0x8')]('Integration',attributes,{'tableName':_0x6e4f('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};