Built motion from commit (unavailable).|2.5.14
[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 _0xd3cd=['moment','request-promise','path','rimraf','../../config/environment','./dashboard.attributes','exports','define','Dashboard','dashboards'];(function(_0x121fcc,_0x4366b1){var _0x32f7ea=function(_0x23e658){while(--_0x23e658){_0x121fcc['push'](_0x121fcc['shift']());}};_0x32f7ea(++_0x4366b1);}(_0xd3cd,0x8c));var _0xdd3c=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0xd3cd[_0x122ef9];return _0x42fba0;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0xdd3c('0x0'));var BPromise=require('bluebird');var rp=require(_0xdd3c('0x1'));var fs=require('fs');var path=require(_0xdd3c('0x2'));var rimraf=require(_0xdd3c('0x3'));var config=require(_0xdd3c('0x4'));var attributes=require(_0xdd3c('0x5'));module[_0xdd3c('0x6')]=function(_0x2de8b1,_0x28f697){return _0x2de8b1[_0xdd3c('0x7')](_0xdd3c('0x8'),attributes,{'tableName':_0xdd3c('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};