Built motion from commit f7863d46.|2.5.41
[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 _0x52ea=['path','rimraf','./integration.attributes','exports','Integration','lodash','util','../../config/logger','api','moment'];(function(_0x5864ef,_0x496812){var _0x21c244=function(_0x433f8a){while(--_0x433f8a){_0x5864ef['push'](_0x5864ef['shift']());}};_0x21c244(++_0x496812);}(_0x52ea,0x9b));var _0xa52e=function(_0x3485f8,_0x1b66cf){_0x3485f8=_0x3485f8-0x0;var _0x1fbba7=_0x52ea[_0x3485f8];return _0x1fbba7;};'use strict';var _=require(_0xa52e('0x0'));var util=require(_0xa52e('0x1'));var logger=require(_0xa52e('0x2'))(_0xa52e('0x3'));var moment=require(_0xa52e('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xa52e('0x5'));var rimraf=require(_0xa52e('0x6'));var config=require('../../config/environment');var attributes=require(_0xa52e('0x7'));module[_0xa52e('0x8')]=function(_0x34811e,_0x367501){return _0x34811e['define'](_0xa52e('0x9'),attributes,{'tableName':'integrations','paranoid':![],'indexes':[],'timestamps':!![]});};