abfadb2cfb692731732396ba5a4068916b2132f7
[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 _0xe1b7=['util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','exports','define','integrations'];(function(_0x42bb7b,_0x136321){var _0x54566a=function(_0x320023){while(--_0x320023){_0x42bb7b['push'](_0x42bb7b['shift']());}};_0x54566a(++_0x136321);}(_0xe1b7,0x1e4));var _0x7e1b=function(_0x461f4c,_0x4c293d){_0x461f4c=_0x461f4c-0x0;var _0x299260=_0xe1b7[_0x461f4c];return _0x299260;};'use strict';var _=require('lodash');var util=require(_0x7e1b('0x0'));var logger=require(_0x7e1b('0x1'))(_0x7e1b('0x2'));var moment=require(_0x7e1b('0x3'));var BPromise=require(_0x7e1b('0x4'));var rp=require(_0x7e1b('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x7e1b('0x6'));var config=require(_0x7e1b('0x7'));var attributes=require('./integration.attributes');module[_0x7e1b('0x8')]=function(_0x898a59,_0x44c261){return _0x898a59[_0x7e1b('0x9')]('Integration',attributes,{'tableName':_0x7e1b('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};