0f1ce8f8aca7ee9ed532b075d60e05c86edd5b5c
[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 _0x2472=['lodash','../../config/logger','api','bluebird','rimraf','../../config/environment','./dashboard.attributes','exports','define','Dashboard'];(function(_0x3cd677,_0x5d9083){var _0x3d6ae4=function(_0x3027e3){while(--_0x3027e3){_0x3cd677['push'](_0x3cd677['shift']());}};_0x3d6ae4(++_0x5d9083);}(_0x2472,0x15e));var _0x2247=function(_0x777268,_0x51ab17){_0x777268=_0x777268-0x0;var _0x23d256=_0x2472[_0x777268];return _0x23d256;};'use strict';var _=require(_0x2247('0x0'));var util=require('util');var logger=require(_0x2247('0x1'))(_0x2247('0x2'));var moment=require('moment');var BPromise=require(_0x2247('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x2247('0x4'));var config=require(_0x2247('0x5'));var attributes=require(_0x2247('0x6'));module[_0x2247('0x7')]=function(_0x4b1818,_0x762548){return _0x4b1818[_0x2247('0x8')](_0x2247('0x9'),attributes,{'tableName':'dashboards','paranoid':![],'indexes':[],'timestamps':!![]});};