8fb194dcaa5ca0d755bdf066eb0cb43da1e05bb9
[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 _0x8342=['path','rimraf','../../config/environment','exports','Dashboard','../../config/logger','api'];(function(_0x35a592,_0x9c8aa3){var _0x426039=function(_0x18a61d){while(--_0x18a61d){_0x35a592['push'](_0x35a592['shift']());}};_0x426039(++_0x9c8aa3);}(_0x8342,0x1da));var _0x2834=function(_0x134448,_0x591d7b){_0x134448=_0x134448-0x0;var _0x2d52a1=_0x8342[_0x134448];return _0x2d52a1;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x2834('0x0'))(_0x2834('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x2834('0x2'));var rimraf=require(_0x2834('0x3'));var config=require(_0x2834('0x4'));var attributes=require('./dashboard.attributes');module[_0x2834('0x5')]=function(_0x8df483,_0x3ca27d){return _0x8df483['define'](_0x2834('0x6'),attributes,{'tableName':'dashboards','paranoid':![],'indexes':[],'timestamps':!![]});};