Built motion from commit 14588770.|2.5.38
[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 _0xafbd=['path','rimraf','./dashboard.attributes','Dashboard','lodash','../../config/logger','api','moment','bluebird'];(function(_0x4189e7,_0x30e706){var _0x3a8a4e=function(_0x485fe8){while(--_0x485fe8){_0x4189e7['push'](_0x4189e7['shift']());}};_0x3a8a4e(++_0x30e706);}(_0xafbd,0x1ab));var _0xdafb=function(_0x2272b5,_0x362458){_0x2272b5=_0x2272b5-0x0;var _0x110156=_0xafbd[_0x2272b5];return _0x110156;};'use strict';var _=require(_0xdafb('0x0'));var util=require('util');var logger=require(_0xdafb('0x1'))(_0xdafb('0x2'));var moment=require(_0xdafb('0x3'));var BPromise=require(_0xdafb('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xdafb('0x5'));var rimraf=require(_0xdafb('0x6'));var config=require('../../config/environment');var attributes=require(_0xdafb('0x7'));module['exports']=function(_0xf40655,_0x2b0b75){return _0xf40655['define'](_0xdafb('0x8'),attributes,{'tableName':'dashboards','paranoid':![],'indexes':[],'timestamps':!![]});};