5d4d00fcc3bbdeb953f26be2fabd97ef6020bd5e
[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 _0x2356=['Dashboard','dashboards','lodash','util','../../config/logger','api','request-promise','path','../../config/environment','./dashboard.attributes'];(function(_0x162311,_0x3df6a8){var _0x10fe57=function(_0x12e9e2){while(--_0x12e9e2){_0x162311['push'](_0x162311['shift']());}};_0x10fe57(++_0x3df6a8);}(_0x2356,0x142));var _0x6235=function(_0xea5e84,_0x41aef7){_0xea5e84=_0xea5e84-0x0;var _0x3d4e54=_0x2356[_0xea5e84];return _0x3d4e54;};'use strict';var _=require(_0x6235('0x0'));var util=require(_0x6235('0x1'));var logger=require(_0x6235('0x2'))(_0x6235('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x6235('0x4'));var fs=require('fs');var path=require(_0x6235('0x5'));var rimraf=require('rimraf');var config=require(_0x6235('0x6'));var attributes=require(_0x6235('0x7'));module['exports']=function(_0x1f0ed2,_0x3bdf63){return _0x1f0ed2['define'](_0x6235('0x8'),attributes,{'tableName':_0x6235('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};