Built motion from commit c738b9ac.|2.6.25
[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 _0xd4be=['../../config/environment','define','Dashboard','dashboards','lodash','util','bluebird','request-promise','path','rimraf'];(function(_0x22e64e,_0x297f4e){var _0x2ca599=function(_0x3d0403){while(--_0x3d0403){_0x22e64e['push'](_0x22e64e['shift']());}};_0x2ca599(++_0x297f4e);}(_0xd4be,0x1c6));var _0xed4b=function(_0x55cf12,_0x112439){_0x55cf12=_0x55cf12-0x0;var _0x4aa53b=_0xd4be[_0x55cf12];return _0x4aa53b;};'use strict';var _=require(_0xed4b('0x0'));var util=require(_0xed4b('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0xed4b('0x2'));var rp=require(_0xed4b('0x3'));var fs=require('fs');var path=require(_0xed4b('0x4'));var rimraf=require(_0xed4b('0x5'));var config=require(_0xed4b('0x6'));var attributes=require('./dashboard.attributes');module['exports']=function(_0x473fb0,_0x7cda7f){return _0x473fb0[_0xed4b('0x7')](_0xed4b('0x8'),attributes,{'tableName':_0xed4b('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};