Built motion from commit 9d0783e6.|2.6.13
[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 _0x3669=['request-promise','path','rimraf','./dashboard.attributes','exports','define','lodash','util'];(function(_0x1524f7,_0x274e8c){var _0x1b045a=function(_0x47f096){while(--_0x47f096){_0x1524f7['push'](_0x1524f7['shift']());}};_0x1b045a(++_0x274e8c);}(_0x3669,0x166));var _0x9366=function(_0x5b315a,_0x5cd905){_0x5b315a=_0x5b315a-0x0;var _0x45300e=_0x3669[_0x5b315a];return _0x45300e;};'use strict';var _=require(_0x9366('0x0'));var util=require(_0x9366('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x9366('0x2'));var fs=require('fs');var path=require(_0x9366('0x3'));var rimraf=require(_0x9366('0x4'));var config=require('../../config/environment');var attributes=require(_0x9366('0x5'));module[_0x9366('0x6')]=function(_0x4abc52,_0x1acb9d){return _0x4abc52[_0x9366('0x7')]('Dashboard',attributes,{'tableName':'dashboards','paranoid':![],'indexes':[],'timestamps':!![]});};