9a448c65742a67e7dbfce28410a82cefdf6a3db2
[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 _0xe1ee=['define','dashboards','lodash','util','api','moment','request-promise','rimraf','exports'];(function(_0x1a5c2a,_0x905452){var _0x4ccaca=function(_0x18fd9d){while(--_0x18fd9d){_0x1a5c2a['push'](_0x1a5c2a['shift']());}};_0x4ccaca(++_0x905452);}(_0xe1ee,0x158));var _0xee1e=function(_0x25bf94,_0x420e7e){_0x25bf94=_0x25bf94-0x0;var _0x24065b=_0xe1ee[_0x25bf94];return _0x24065b;};'use strict';var _=require(_0xee1e('0x0'));var util=require(_0xee1e('0x1'));var logger=require('../../config/logger')(_0xee1e('0x2'));var moment=require(_0xee1e('0x3'));var BPromise=require('bluebird');var rp=require(_0xee1e('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xee1e('0x5'));var config=require('../../config/environment');var attributes=require('./dashboard.attributes');module[_0xee1e('0x6')]=function(_0x8995fe,_0x1f676f){return _0x8995fe[_0xee1e('0x7')]('Dashboard',attributes,{'tableName':_0xee1e('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};