34cec4ba3aa22002490732e60d76044e38768e15
[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 _0x135d=['../../config/environment','./dashboard.attributes','exports','Dashboard','dashboards','lodash','util','../../config/logger','api','moment','path','rimraf'];(function(_0x1fcc86,_0x348fe2){var _0x4dcb90=function(_0x174717){while(--_0x174717){_0x1fcc86['push'](_0x1fcc86['shift']());}};_0x4dcb90(++_0x348fe2);}(_0x135d,0x19d));var _0xd135=function(_0x180a87,_0x2ca130){_0x180a87=_0x180a87-0x0;var _0x2d3104=_0x135d[_0x180a87];return _0x2d3104;};'use strict';var _=require(_0xd135('0x0'));var util=require(_0xd135('0x1'));var logger=require(_0xd135('0x2'))(_0xd135('0x3'));var moment=require(_0xd135('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xd135('0x5'));var rimraf=require(_0xd135('0x6'));var config=require(_0xd135('0x7'));var attributes=require(_0xd135('0x8'));module[_0xd135('0x9')]=function(_0x4e614f,_0x2327d1){return _0x4e614f['define'](_0xd135('0xa'),attributes,{'tableName':_0xd135('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};