Built motion from commit c116dc8b.|2.6.30
[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 _0x42d7=['define','Dashboard','dashboards','lodash','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment'];(function(_0x354d71,_0x227b4b){var _0x523078=function(_0xed576a){while(--_0xed576a){_0x354d71['push'](_0x354d71['shift']());}};_0x523078(++_0x227b4b);}(_0x42d7,0xa8));var _0x742d=function(_0x2a2166,_0x3a077f){_0x2a2166=_0x2a2166-0x0;var _0x3bcf50=_0x42d7[_0x2a2166];return _0x3bcf50;};'use strict';var _=require(_0x742d('0x0'));var util=require('util');var logger=require(_0x742d('0x1'))(_0x742d('0x2'));var moment=require(_0x742d('0x3'));var BPromise=require(_0x742d('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x742d('0x5'));var rimraf=require(_0x742d('0x6'));var config=require(_0x742d('0x7'));var attributes=require('./dashboard.attributes');module['exports']=function(_0x8e680,_0x472a4b){return _0x8e680[_0x742d('0x8')](_0x742d('0x9'),attributes,{'tableName':_0x742d('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};