6022664035b63704c3b37735d471714f5e0ecbcc
[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 _0x3b09=['Integration','lodash','util','../../config/logger','api','moment','../../config/environment','./integration.attributes','exports','define'];(function(_0x1f8184,_0x59e343){var _0x3e19d8=function(_0x1a2a68){while(--_0x1a2a68){_0x1f8184['push'](_0x1f8184['shift']());}};_0x3e19d8(++_0x59e343);}(_0x3b09,0xb5));var _0x93b0=function(_0x319cd8,_0x1fc6e4){_0x319cd8=_0x319cd8-0x0;var _0x5b2306=_0x3b09[_0x319cd8];return _0x5b2306;};'use strict';var _=require(_0x93b0('0x0'));var util=require(_0x93b0('0x1'));var logger=require(_0x93b0('0x2'))(_0x93b0('0x3'));var moment=require(_0x93b0('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x93b0('0x5'));var attributes=require(_0x93b0('0x6'));module[_0x93b0('0x7')]=function(_0x4cf89f,_0x183eeb){return _0x4cf89f[_0x93b0('0x8')](_0x93b0('0x9'),attributes,{'tableName':'integrations','paranoid':![],'indexes':[],'timestamps':!![]});};