c8b47f6f6fef897cd22e619a47e373bf602c6227
[motion2.git] / server / api / dashboardItem / dashboardItem.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 _0x0c94=['path','../../config/environment','exports','define','dashboard_items','lodash','util','moment','bluebird'];(function(_0x2715cf,_0x517bb2){var _0x1bdcb8=function(_0x5dec7b){while(--_0x5dec7b){_0x2715cf['push'](_0x2715cf['shift']());}};_0x1bdcb8(++_0x517bb2);}(_0x0c94,0x71));var _0x40c9=function(_0x1da527,_0x2dc953){_0x1da527=_0x1da527-0x0;var _0x40fc7c=_0x0c94[_0x1da527];return _0x40fc7c;};'use strict';var _=require(_0x40c9('0x0'));var util=require(_0x40c9('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x40c9('0x2'));var BPromise=require(_0x40c9('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x40c9('0x4'));var rimraf=require('rimraf');var config=require(_0x40c9('0x5'));var attributes=require('./dashboardItem.attributes');module[_0x40c9('0x6')]=function(_0x52d1b8,_0x10fcab){return _0x52d1b8[_0x40c9('0x7')]('DashboardItem',attributes,{'tableName':_0x40c9('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};