10d5e2c7bee4d439e6d220f390efbdf3f0ac4304
[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 _0x0e6c=['Dashboard','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define'];(function(_0x403c20,_0x4a7b99){var _0x2b271a=function(_0x106ecb){while(--_0x106ecb){_0x403c20['push'](_0x403c20['shift']());}};_0x2b271a(++_0x4a7b99);}(_0x0e6c,0x64));var _0xc0e6=function(_0x722ce5,_0x127550){_0x722ce5=_0x722ce5-0x0;var _0x2338cd=_0x0e6c[_0x722ce5];return _0x2338cd;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xc0e6('0x0'))(_0xc0e6('0x1'));var moment=require(_0xc0e6('0x2'));var BPromise=require(_0xc0e6('0x3'));var rp=require(_0xc0e6('0x4'));var fs=require('fs');var path=require(_0xc0e6('0x5'));var rimraf=require(_0xc0e6('0x6'));var config=require(_0xc0e6('0x7'));var attributes=require('./dashboard.attributes');module[_0xc0e6('0x8')]=function(_0x5e7759,_0x3f8f68){return _0x5e7759[_0xc0e6('0x9')](_0xc0e6('0xa'),attributes,{'tableName':'dashboards','paranoid':![],'indexes':[],'timestamps':!![]});};