920b1dfdc088ce9e79f75ff3fff58a50ff42d312
[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 _0xa545=['moment','request-promise','rimraf','exports','define','dashboards','lodash','../../config/logger','api'];(function(_0x4baae2,_0x487ab6){var _0x1a2285=function(_0x1cea47){while(--_0x1cea47){_0x4baae2['push'](_0x4baae2['shift']());}};_0x1a2285(++_0x487ab6);}(_0xa545,0xe7));var _0x5a54=function(_0x1c36b3,_0x26d4cd){_0x1c36b3=_0x1c36b3-0x0;var _0x329667=_0xa545[_0x1c36b3];return _0x329667;};'use strict';var _=require(_0x5a54('0x0'));var util=require('util');var logger=require(_0x5a54('0x1'))(_0x5a54('0x2'));var moment=require(_0x5a54('0x3'));var BPromise=require('bluebird');var rp=require(_0x5a54('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x5a54('0x5'));var config=require('../../config/environment');var attributes=require('./dashboard.attributes');module[_0x5a54('0x6')]=function(_0x23ee9f,_0x6af00b){return _0x23ee9f[_0x5a54('0x7')]('Dashboard',attributes,{'tableName':_0x5a54('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};