e8b9ef3c160f37bcf1516931737aaa42b0d56510
[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 _0x12f7=['define','Dashboard','dashboards','lodash','util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports'];(function(_0x151edd,_0x5b2228){var _0x233982=function(_0x65f359){while(--_0x65f359){_0x151edd['push'](_0x151edd['shift']());}};_0x233982(++_0x5b2228);}(_0x12f7,0x155));var _0x712f=function(_0x6462df,_0x405eb2){_0x6462df=_0x6462df-0x0;var _0x2a8315=_0x12f7[_0x6462df];return _0x2a8315;};'use strict';var _=require(_0x712f('0x0'));var util=require(_0x712f('0x1'));var logger=require('../../config/logger')(_0x712f('0x2'));var moment=require(_0x712f('0x3'));var BPromise=require(_0x712f('0x4'));var rp=require(_0x712f('0x5'));var fs=require('fs');var path=require(_0x712f('0x6'));var rimraf=require(_0x712f('0x7'));var config=require(_0x712f('0x8'));var attributes=require('./dashboard.attributes');module[_0x712f('0x9')]=function(_0x3402c3,_0x27942a){return _0x3402c3[_0x712f('0xa')](_0x712f('0xb'),attributes,{'tableName':_0x712f('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};