4428fdd098c85aa9151fea01a07072576c4b1f0b
[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 _0x47f5=['define','dashboards','lodash','util','../../config/logger','moment','bluebird','path','rimraf','../../config/environment','./dashboard.attributes','exports'];(function(_0x3bff71,_0x2bf4b9){var _0x1e2a9f=function(_0x541b60){while(--_0x541b60){_0x3bff71['push'](_0x3bff71['shift']());}};_0x1e2a9f(++_0x2bf4b9);}(_0x47f5,0x1be));var _0x547f=function(_0x4b2251,_0x393f10){_0x4b2251=_0x4b2251-0x0;var _0x5d22fb=_0x47f5[_0x4b2251];return _0x5d22fb;};'use strict';var _=require(_0x547f('0x0'));var util=require(_0x547f('0x1'));var logger=require(_0x547f('0x2'))('api');var moment=require(_0x547f('0x3'));var BPromise=require(_0x547f('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x547f('0x5'));var rimraf=require(_0x547f('0x6'));var config=require(_0x547f('0x7'));var attributes=require(_0x547f('0x8'));module[_0x547f('0x9')]=function(_0x5d3b26,_0x50dc74){return _0x5d3b26[_0x547f('0xa')]('Dashboard',attributes,{'tableName':_0x547f('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};