f3c725d480349e23f33cdcd5d365ee0529c0c611
[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 _0xb659=['util','../../config/logger','bluebird','request-promise','path','rimraf','./dashboard.attributes','exports','Dashboard','dashboards','lodash'];(function(_0x346d45,_0x6db175){var _0x548330=function(_0x41e453){while(--_0x41e453){_0x346d45['push'](_0x346d45['shift']());}};_0x548330(++_0x6db175);}(_0xb659,0x15f));var _0x9b65=function(_0x397396,_0x4f2b10){_0x397396=_0x397396-0x0;var _0x3c1c53=_0xb659[_0x397396];return _0x3c1c53;};'use strict';var _=require(_0x9b65('0x0'));var util=require(_0x9b65('0x1'));var logger=require(_0x9b65('0x2'))('api');var moment=require('moment');var BPromise=require(_0x9b65('0x3'));var rp=require(_0x9b65('0x4'));var fs=require('fs');var path=require(_0x9b65('0x5'));var rimraf=require(_0x9b65('0x6'));var config=require('../../config/environment');var attributes=require(_0x9b65('0x7'));module[_0x9b65('0x8')]=function(_0x11e37d,_0xff3f20){return _0x11e37d['define'](_0x9b65('0x9'),attributes,{'tableName':_0x9b65('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};