0bcfc19df312ebfac2f67a1a7884c9393a16062e
[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 _0x90db=['lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','./dashboard.attributes','exports','define','Dashboard'];(function(_0x20500e,_0x5f0a59){var _0x314597=function(_0x2af2f8){while(--_0x2af2f8){_0x20500e['push'](_0x20500e['shift']());}};_0x314597(++_0x5f0a59);}(_0x90db,0x179));var _0xb90d=function(_0x55abd9,_0x1148af){_0x55abd9=_0x55abd9-0x0;var _0x3e5669=_0x90db[_0x55abd9];return _0x3e5669;};'use strict';var _=require(_0xb90d('0x0'));var util=require(_0xb90d('0x1'));var logger=require(_0xb90d('0x2'))(_0xb90d('0x3'));var moment=require(_0xb90d('0x4'));var BPromise=require(_0xb90d('0x5'));var rp=require(_0xb90d('0x6'));var fs=require('fs');var path=require(_0xb90d('0x7'));var rimraf=require(_0xb90d('0x8'));var config=require('../../config/environment');var attributes=require(_0xb90d('0x9'));module[_0xb90d('0xa')]=function(_0x25d832,_0x439531){return _0x25d832[_0xb90d('0xb')](_0xb90d('0xc'),attributes,{'tableName':'dashboards','paranoid':![],'indexes':[],'timestamps':!![]});};