ad11ab8b01350762c8835b373d75ca76f6c6feb3
[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 _0x6b63=['moment','bluebird','path','rimraf','../../config/environment','./dashboard.attributes','exports','Dashboard','lodash'];(function(_0x3df1e9,_0x3cd30e){var _0xd6b371=function(_0x4b5457){while(--_0x4b5457){_0x3df1e9['push'](_0x3df1e9['shift']());}};_0xd6b371(++_0x3cd30e);}(_0x6b63,0x7d));var _0x36b6=function(_0x279cbb,_0x558d39){_0x279cbb=_0x279cbb-0x0;var _0x4b468a=_0x6b63[_0x279cbb];return _0x4b468a;};'use strict';var _=require(_0x36b6('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0x36b6('0x1'));var BPromise=require(_0x36b6('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x36b6('0x3'));var rimraf=require(_0x36b6('0x4'));var config=require(_0x36b6('0x5'));var attributes=require(_0x36b6('0x6'));module[_0x36b6('0x7')]=function(_0x2a1282,_0x5996b0){return _0x2a1282['define'](_0x36b6('0x8'),attributes,{'tableName':'dashboards','paranoid':![],'indexes':[],'timestamps':!![]});};