51afb643dfa462cdf3634e48373d99ebbca66ec9
[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 _0xfa24=['../../config/environment','./dashboard.attributes','exports','dashboards','../../config/logger','api','moment','request-promise','path','rimraf'];(function(_0x3ad996,_0x2699a3){var _0x162c78=function(_0x16d18e){while(--_0x16d18e){_0x3ad996['push'](_0x3ad996['shift']());}};_0x162c78(++_0x2699a3);}(_0xfa24,0x130));var _0x4fa2=function(_0x12b8ec,_0x1655be){_0x12b8ec=_0x12b8ec-0x0;var _0x21af77=_0xfa24[_0x12b8ec];return _0x21af77;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x4fa2('0x0'))(_0x4fa2('0x1'));var moment=require(_0x4fa2('0x2'));var BPromise=require('bluebird');var rp=require(_0x4fa2('0x3'));var fs=require('fs');var path=require(_0x4fa2('0x4'));var rimraf=require(_0x4fa2('0x5'));var config=require(_0x4fa2('0x6'));var attributes=require(_0x4fa2('0x7'));module[_0x4fa2('0x8')]=function(_0x418ce3,_0x14144b){return _0x418ce3['define']('Dashboard',attributes,{'tableName':_0x4fa2('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};