Built motion from commit (unavailable).|2.5.4
[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 _0x48a4=['DashboardItem','dashboard_items','lodash','util','api','moment','path','rimraf','../../config/environment','exports','define'];(function(_0x9c058b,_0x55e984){var _0x45cd27=function(_0x1be340){while(--_0x1be340){_0x9c058b['push'](_0x9c058b['shift']());}};_0x45cd27(++_0x55e984);}(_0x48a4,0x157));var _0x448a=function(_0x30483f,_0x40b870){_0x30483f=_0x30483f-0x0;var _0x3849d2=_0x48a4[_0x30483f];return _0x3849d2;};'use strict';var _=require(_0x448a('0x0'));var util=require(_0x448a('0x1'));var logger=require('../../config/logger')(_0x448a('0x2'));var moment=require(_0x448a('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x448a('0x4'));var rimraf=require(_0x448a('0x5'));var config=require(_0x448a('0x6'));var attributes=require('./dashboardItem.attributes');module[_0x448a('0x7')]=function(_0x2b2bc7,_0x5cfa3){return _0x2b2bc7[_0x448a('0x8')](_0x448a('0x9'),attributes,{'tableName':_0x448a('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};