c2d96ddce27bd8a5e860ffa7be534bef0ea2aea6
[motion2.git] / server / api / dashboard / dashboard.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 _0x75c2=['Dashboard','dashboards','lodash','util','api','moment','bluebird','path','rimraf','../../config/environment','./dashboard.attributes','exports','define'];(function(_0x592d48,_0x23f1ba){var _0x5d789e=function(_0x156900){while(--_0x156900){_0x592d48['push'](_0x592d48['shift']());}};_0x5d789e(++_0x23f1ba);}(_0x75c2,0x1f0));var _0x275c=function(_0x231c71,_0x317418){_0x231c71=_0x231c71-0x0;var _0xd1d313=_0x75c2[_0x231c71];return _0xd1d313;};'use strict';var _=require(_0x275c('0x0'));var util=require(_0x275c('0x1'));var logger=require('../../config/logger')(_0x275c('0x2'));var moment=require(_0x275c('0x3'));var BPromise=require(_0x275c('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x275c('0x5'));var rimraf=require(_0x275c('0x6'));var config=require(_0x275c('0x7'));var attributes=require(_0x275c('0x8'));module[_0x275c('0x9')]=function(_0x1559ee,_0x4ed3e6){return _0x1559ee[_0x275c('0xa')](_0x275c('0xb'),attributes,{'tableName':_0x275c('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};