53f2688b2aab39b558a029e02bdd752934d73d80
[motion2.git] / server / api / integrationReport / integrationReport.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 _0x66b8=['path','rimraf','exports','define','report_integration','lodash','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x589aee,_0x140a03){var _0x2f5ed4=function(_0x3d224f){while(--_0x3d224f){_0x589aee['push'](_0x589aee['shift']());}};_0x2f5ed4(++_0x140a03);}(_0x66b8,0x1b2));var _0x866b=function(_0x178e48,_0x3c9509){_0x178e48=_0x178e48-0x0;var _0x440d7e=_0x66b8[_0x178e48];return _0x440d7e;};'use strict';var _=require(_0x866b('0x0'));var util=require('util');var logger=require(_0x866b('0x1'))(_0x866b('0x2'));var moment=require(_0x866b('0x3'));var BPromise=require(_0x866b('0x4'));var rp=require(_0x866b('0x5'));var fs=require('fs');var path=require(_0x866b('0x6'));var rimraf=require(_0x866b('0x7'));var config=require('../../config/environment');var attributes=require('./integrationReport.attributes');module[_0x866b('0x8')]=function(_0xedfa05,_0x4d86bb){return _0xedfa05[_0x866b('0x9')]('IntegrationReport',attributes,{'tableName':_0x866b('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};