Built motion from commit c116dc8b.|2.6.30
[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 _0x541f=['moment','request-promise','rimraf','../../config/environment','exports','define','DashboardItem','dashboard_items','util','api'];(function(_0x7c36e,_0x591f61){var _0x31546f=function(_0x464afc){while(--_0x464afc){_0x7c36e['push'](_0x7c36e['shift']());}};_0x31546f(++_0x591f61);}(_0x541f,0x1f2));var _0xf541=function(_0x133277,_0xb1d6b2){_0x133277=_0x133277-0x0;var _0x5b4a22=_0x541f[_0x133277];return _0x5b4a22;};'use strict';var _=require('lodash');var util=require(_0xf541('0x0'));var logger=require('../../config/logger')(_0xf541('0x1'));var moment=require(_0xf541('0x2'));var BPromise=require('bluebird');var rp=require(_0xf541('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xf541('0x4'));var config=require(_0xf541('0x5'));var attributes=require('./dashboardItem.attributes');module[_0xf541('0x6')]=function(_0x1e9379,_0x1b75d7){return _0x1e9379[_0xf541('0x7')](_0xf541('0x8'),attributes,{'tableName':_0xf541('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};