Built motion from commit 25580385.|2.6.2
[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 _0xff1b=['bluebird','path','../../config/environment','exports','define','Dashboard','lodash','util','../../config/logger','api','moment'];(function(_0x2c6be8,_0x57f7b8){var _0x471592=function(_0x294fe8){while(--_0x294fe8){_0x2c6be8['push'](_0x2c6be8['shift']());}};_0x471592(++_0x57f7b8);}(_0xff1b,0x171));var _0xbff1=function(_0x3c9df8,_0x387a5d){_0x3c9df8=_0x3c9df8-0x0;var _0x3c8cd3=_0xff1b[_0x3c9df8];return _0x3c8cd3;};'use strict';var _=require(_0xbff1('0x0'));var util=require(_0xbff1('0x1'));var logger=require(_0xbff1('0x2'))(_0xbff1('0x3'));var moment=require(_0xbff1('0x4'));var BPromise=require(_0xbff1('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xbff1('0x6'));var rimraf=require('rimraf');var config=require(_0xbff1('0x7'));var attributes=require('./dashboard.attributes');module[_0xbff1('0x8')]=function(_0x5c7247,_0x579615){return _0x5c7247[_0xbff1('0x9')](_0xbff1('0xa'),attributes,{'tableName':'dashboards','paranoid':![],'indexes':[],'timestamps':!![]});};