3822f97e8d459d302c2bda6b5c0f574239b0c5f9
[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 _0xe4e1=['../../config/logger','api','bluebird','request-promise','path','rimraf','exports','define','DashboardItem','dashboard_items','lodash','util'];(function(_0xa96a06,_0x2b1996){var _0x53c3b1=function(_0x33e253){while(--_0x33e253){_0xa96a06['push'](_0xa96a06['shift']());}};_0x53c3b1(++_0x2b1996);}(_0xe4e1,0xe2));var _0x1e4e=function(_0x13be43,_0x1261e8){_0x13be43=_0x13be43-0x0;var _0x2b5d2f=_0xe4e1[_0x13be43];return _0x2b5d2f;};'use strict';var _=require(_0x1e4e('0x0'));var util=require(_0x1e4e('0x1'));var logger=require(_0x1e4e('0x2'))(_0x1e4e('0x3'));var moment=require('moment');var BPromise=require(_0x1e4e('0x4'));var rp=require(_0x1e4e('0x5'));var fs=require('fs');var path=require(_0x1e4e('0x6'));var rimraf=require(_0x1e4e('0x7'));var config=require('../../config/environment');var attributes=require('./dashboardItem.attributes');module[_0x1e4e('0x8')]=function(_0x239140,_0x15f650){return _0x239140[_0x1e4e('0x9')](_0x1e4e('0xa'),attributes,{'tableName':_0x1e4e('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};