Built motion from commit 896e83a8.|2.6.30
[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 _0xeba0=['path','rimraf','../../config/environment','./dashboard.attributes','dashboards','lodash','util','moment','request-promise'];(function(_0x4ae625,_0xf396d0){var _0x31accf=function(_0x3ded6b){while(--_0x3ded6b){_0x4ae625['push'](_0x4ae625['shift']());}};_0x31accf(++_0xf396d0);}(_0xeba0,0x1e2));var _0x0eba=function(_0x3cc29f,_0x353898){_0x3cc29f=_0x3cc29f-0x0;var _0x5609de=_0xeba0[_0x3cc29f];return _0x5609de;};'use strict';var _=require(_0x0eba('0x0'));var util=require(_0x0eba('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x0eba('0x2'));var BPromise=require('bluebird');var rp=require(_0x0eba('0x3'));var fs=require('fs');var path=require(_0x0eba('0x4'));var rimraf=require(_0x0eba('0x5'));var config=require(_0x0eba('0x6'));var attributes=require(_0x0eba('0x7'));module['exports']=function(_0x414f33,_0x4e765b){return _0x414f33['define']('Dashboard',attributes,{'tableName':_0x0eba('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};