b960080b231b497af881277026e020db3760c474
[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 _0x5baa=['./dashboard.attributes','exports','Dashboard','dashboards','util','api','moment','bluebird','path'];(function(_0x11ef8f,_0x145b8f){var _0x423826=function(_0x3e7898){while(--_0x3e7898){_0x11ef8f['push'](_0x11ef8f['shift']());}};_0x423826(++_0x145b8f);}(_0x5baa,0xca));var _0xa5ba=function(_0x5b7060,_0x348018){_0x5b7060=_0x5b7060-0x0;var _0x430190=_0x5baa[_0x5b7060];return _0x430190;};'use strict';var _=require('lodash');var util=require(_0xa5ba('0x0'));var logger=require('../../config/logger')(_0xa5ba('0x1'));var moment=require(_0xa5ba('0x2'));var BPromise=require(_0xa5ba('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xa5ba('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xa5ba('0x5'));module[_0xa5ba('0x6')]=function(_0x2e67a6,_0x2bfa37){return _0x2e67a6['define'](_0xa5ba('0x7'),attributes,{'tableName':_0xa5ba('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};