Built motion from commit 85328c08.|2.5.50
[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 _0x4829=['dashboard_items','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','exports','define','DashboardItem'];(function(_0x40c4e0,_0x9fdbfa){var _0x588be5=function(_0x1c5758){while(--_0x1c5758){_0x40c4e0['push'](_0x40c4e0['shift']());}};_0x588be5(++_0x9fdbfa);}(_0x4829,0xcd));var _0x9482=function(_0x2aa0e7,_0x4e5145){_0x2aa0e7=_0x2aa0e7-0x0;var _0x1472c0=_0x4829[_0x2aa0e7];return _0x1472c0;};'use strict';var _=require('lodash');var util=require(_0x9482('0x0'));var logger=require(_0x9482('0x1'))(_0x9482('0x2'));var moment=require(_0x9482('0x3'));var BPromise=require(_0x9482('0x4'));var rp=require(_0x9482('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x9482('0x6'));var config=require(_0x9482('0x7'));var attributes=require('./dashboardItem.attributes');module[_0x9482('0x8')]=function(_0x5e734f,_0x244e22){return _0x5e734f[_0x9482('0x9')](_0x9482('0xa'),attributes,{'tableName':_0x9482('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};