Built motion from commit ffdca78c.|2.6.24
[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 _0xb849=['integrations','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./integration.attributes','exports','define','Integration'];(function(_0x5e5c0e,_0x1aea2b){var _0x140f9f=function(_0x3ce04f){while(--_0x3ce04f){_0x5e5c0e['push'](_0x5e5c0e['shift']());}};_0x140f9f(++_0x1aea2b);}(_0xb849,0x9b));var _0x9b84=function(_0x3d10ce,_0x360516){_0x3d10ce=_0x3d10ce-0x0;var _0x5eb3a9=_0xb849[_0x3d10ce];return _0x5eb3a9;};'use strict';var _=require(_0x9b84('0x0'));var util=require(_0x9b84('0x1'));var logger=require(_0x9b84('0x2'))(_0x9b84('0x3'));var moment=require(_0x9b84('0x4'));var BPromise=require(_0x9b84('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x9b84('0x6'));var rimraf=require(_0x9b84('0x7'));var config=require(_0x9b84('0x8'));var attributes=require(_0x9b84('0x9'));module[_0x9b84('0xa')]=function(_0x2a92f4,_0x1112ca){return _0x2a92f4[_0x9b84('0xb')](_0x9b84('0xc'),attributes,{'tableName':_0x9b84('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};