Built motion from commit efa66e19.|2.6.22
[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 _0xba2f=['util','moment','../../config/environment','exports','define','Integration','integrations','lodash'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xba2f,0xef));var _0xfba2=function(_0x529239,_0x20d56c){_0x529239=_0x529239-0x0;var _0xadd0c8=_0xba2f[_0x529239];return _0xadd0c8;};'use strict';var _=require(_0xfba2('0x0'));var util=require(_0xfba2('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xfba2('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xfba2('0x3'));var attributes=require('./integration.attributes');module[_0xfba2('0x4')]=function(_0xecb7e2,_0x4ffd98){return _0xecb7e2[_0xfba2('0x5')](_0xfba2('0x6'),attributes,{'tableName':_0xfba2('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};