Built motion from commit 994c64e1.|2.6.1
[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 _0x697e=['request-promise','path','rimraf','../../config/environment','./dashboard.attributes','exports','define','Dashboard','dashboards','lodash','api','bluebird'];(function(_0x2d85ff,_0x265d3f){var _0x1ffd33=function(_0x48f574){while(--_0x48f574){_0x2d85ff['push'](_0x2d85ff['shift']());}};_0x1ffd33(++_0x265d3f);}(_0x697e,0x111));var _0xe697=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x697e[_0x20a584];return _0x4b41a8;};'use strict';var _=require(_0xe697('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xe697('0x1'));var moment=require('moment');var BPromise=require(_0xe697('0x2'));var rp=require(_0xe697('0x3'));var fs=require('fs');var path=require(_0xe697('0x4'));var rimraf=require(_0xe697('0x5'));var config=require(_0xe697('0x6'));var attributes=require(_0xe697('0x7'));module[_0xe697('0x8')]=function(_0x4e9f21,_0xaa3803){return _0x4e9f21[_0xe697('0x9')](_0xe697('0xa'),attributes,{'tableName':_0xe697('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};