Built motion from commit da617fac.|2.6.6
[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 _0x0fe8=['dashboards','lodash','util','../../config/logger','bluebird','request-promise','path','exports'];(function(_0x490be3,_0xf0fca3){var _0x3f5140=function(_0x15fa80){while(--_0x15fa80){_0x490be3['push'](_0x490be3['shift']());}};_0x3f5140(++_0xf0fca3);}(_0x0fe8,0x89));var _0x80fe=function(_0x84e373,_0x5473c7){_0x84e373=_0x84e373-0x0;var _0x4fdc83=_0x0fe8[_0x84e373];return _0x4fdc83;};'use strict';var _=require(_0x80fe('0x0'));var util=require(_0x80fe('0x1'));var logger=require(_0x80fe('0x2'))('api');var moment=require('moment');var BPromise=require(_0x80fe('0x3'));var rp=require(_0x80fe('0x4'));var fs=require('fs');var path=require(_0x80fe('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./dashboard.attributes');module[_0x80fe('0x6')]=function(_0x57833b,_0x18de86){return _0x57833b['define']('Dashboard',attributes,{'tableName':_0x80fe('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};