280c9a569754c9a286f43486c680347847e21660
[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 _0x6961=['path','rimraf','../../config/environment','./dashboard.attributes','Dashboard','lodash','util','../../config/logger','api','moment','request-promise'];(function(_0x40220a,_0x22feb1){var _0x3903cc=function(_0x33a296){while(--_0x33a296){_0x40220a['push'](_0x40220a['shift']());}};_0x3903cc(++_0x22feb1);}(_0x6961,0x1a7));var _0x1696=function(_0x302574,_0x5def0a){_0x302574=_0x302574-0x0;var _0x3934aa=_0x6961[_0x302574];return _0x3934aa;};'use strict';var _=require(_0x1696('0x0'));var util=require(_0x1696('0x1'));var logger=require(_0x1696('0x2'))(_0x1696('0x3'));var moment=require(_0x1696('0x4'));var BPromise=require('bluebird');var rp=require(_0x1696('0x5'));var fs=require('fs');var path=require(_0x1696('0x6'));var rimraf=require(_0x1696('0x7'));var config=require(_0x1696('0x8'));var attributes=require(_0x1696('0x9'));module['exports']=function(_0x489638,_0x25bab6){return _0x489638['define'](_0x1696('0xa'),attributes,{'tableName':'dashboards','paranoid':![],'indexes':[],'timestamps':!![]});};