Built motion from commit e6806ed6.|2.6.0
[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 _0x9060=['Integration','util','../../config/logger','moment','request-promise','./integration.attributes','exports','define'];(function(_0x1df4cb,_0x399d8d){var _0x40b418=function(_0x13dc7b){while(--_0x13dc7b){_0x1df4cb['push'](_0x1df4cb['shift']());}};_0x40b418(++_0x399d8d);}(_0x9060,0x179));var _0x0906=function(_0x999b85,_0x1edc2b){_0x999b85=_0x999b85-0x0;var _0x1d7124=_0x9060[_0x999b85];return _0x1d7124;};'use strict';var _=require('lodash');var util=require(_0x0906('0x0'));var logger=require(_0x0906('0x1'))('api');var moment=require(_0x0906('0x2'));var BPromise=require('bluebird');var rp=require(_0x0906('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x0906('0x4'));module[_0x0906('0x5')]=function(_0x3b8b7f,_0x4aec16){return _0x3b8b7f[_0x0906('0x6')](_0x0906('0x7'),attributes,{'tableName':'integrations','paranoid':![],'indexes':[],'timestamps':!![]});};