Built motion from commit 936e8062.|2.5.33
[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 _0xd820=['api','moment','path','rimraf','../../config/environment','define','Dashboard','lodash','util'];(function(_0x457bc9,_0x1cf9cf){var _0x54d85c=function(_0x514b11){while(--_0x514b11){_0x457bc9['push'](_0x457bc9['shift']());}};_0x54d85c(++_0x1cf9cf);}(_0xd820,0x16f));var _0x0d82=function(_0x3ed90b,_0x520399){_0x3ed90b=_0x3ed90b-0x0;var _0x2f1aa1=_0xd820[_0x3ed90b];return _0x2f1aa1;};'use strict';var _=require(_0x0d82('0x0'));var util=require(_0x0d82('0x1'));var logger=require('../../config/logger')(_0x0d82('0x2'));var moment=require(_0x0d82('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x0d82('0x4'));var rimraf=require(_0x0d82('0x5'));var config=require(_0x0d82('0x6'));var attributes=require('./dashboard.attributes');module['exports']=function(_0x429e30,_0x1074d1){return _0x429e30[_0x0d82('0x7')](_0x0d82('0x8'),attributes,{'tableName':'dashboards','paranoid':![],'indexes':[],'timestamps':!![]});};