52de851ab8c9a6eef7e12cdb0d8fe16567e8f4e5
[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 _0x792d=['path','../../config/environment','exports','Dashboard','dashboards','util','../../config/logger','api','moment','bluebird'];(function(_0x3c2c7e,_0x22ffbb){var _0x465e04=function(_0x4742c1){while(--_0x4742c1){_0x3c2c7e['push'](_0x3c2c7e['shift']());}};_0x465e04(++_0x22ffbb);}(_0x792d,0x13b));var _0xd792=function(_0x471e80,_0x5b96f4){_0x471e80=_0x471e80-0x0;var _0x4fca23=_0x792d[_0x471e80];return _0x4fca23;};'use strict';var _=require('lodash');var util=require(_0xd792('0x0'));var logger=require(_0xd792('0x1'))(_0xd792('0x2'));var moment=require(_0xd792('0x3'));var BPromise=require(_0xd792('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xd792('0x5'));var rimraf=require('rimraf');var config=require(_0xd792('0x6'));var attributes=require('./dashboard.attributes');module[_0xd792('0x7')]=function(_0x2a3a83,_0x52a508){return _0x2a3a83['define'](_0xd792('0x8'),attributes,{'tableName':_0xd792('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};