00e012402e357bda304f2b9fb57da0153d16426a
[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 _0xac9b=['Dashboard','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./dashboard.attributes'];(function(_0x5ee51d,_0x3f2afc){var _0x488207=function(_0x182249){while(--_0x182249){_0x5ee51d['push'](_0x5ee51d['shift']());}};_0x488207(++_0x3f2afc);}(_0xac9b,0x8d));var _0xbac9=function(_0x597484,_0x199340){_0x597484=_0x597484-0x0;var _0x218e64=_0xac9b[_0x597484];return _0x218e64;};'use strict';var _=require('lodash');var util=require(_0xbac9('0x0'));var logger=require(_0xbac9('0x1'))(_0xbac9('0x2'));var moment=require(_0xbac9('0x3'));var BPromise=require(_0xbac9('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xbac9('0x5'));var rimraf=require(_0xbac9('0x6'));var config=require(_0xbac9('0x7'));var attributes=require(_0xbac9('0x8'));module['exports']=function(_0x1df247,_0x4629eb){return _0x1df247['define'](_0xbac9('0x9'),attributes,{'tableName':'dashboards','paranoid':![],'indexes':[],'timestamps':!![]});};