Built motion from commit d13fb11b.|2.6.34
[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 _0x8b26=['util','../../config/logger','api','path','../../config/environment','exports','define','Dashboard','dashboards'];(function(_0x280399,_0x932f06){var _0x3e6a27=function(_0x2278f0){while(--_0x2278f0){_0x280399['push'](_0x280399['shift']());}};_0x3e6a27(++_0x932f06);}(_0x8b26,0x120));var _0x68b2=function(_0x55daf2,_0x1b48de){_0x55daf2=_0x55daf2-0x0;var _0x1c8500=_0x8b26[_0x55daf2];return _0x1c8500;};'use strict';var _=require('lodash');var util=require(_0x68b2('0x0'));var logger=require(_0x68b2('0x1'))(_0x68b2('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x68b2('0x3'));var rimraf=require('rimraf');var config=require(_0x68b2('0x4'));var attributes=require('./dashboard.attributes');module[_0x68b2('0x5')]=function(_0x52b7e1,_0x8e1d5c){return _0x52b7e1[_0x68b2('0x6')](_0x68b2('0x7'),attributes,{'tableName':_0x68b2('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};