Built motion from commit 775e2a94.|2.6.3
[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 _0xf364=['../../config/logger','api','moment','path','rimraf','../../config/environment','exports','define','DashboardItem','dashboard_items','lodash'];(function(_0x4613c1,_0x1dff1f){var _0x2602d1=function(_0x588c28){while(--_0x588c28){_0x4613c1['push'](_0x4613c1['shift']());}};_0x2602d1(++_0x1dff1f);}(_0xf364,0x78));var _0x4f36=function(_0x30ae5e,_0x391fc4){_0x30ae5e=_0x30ae5e-0x0;var _0x1f2e93=_0xf364[_0x30ae5e];return _0x1f2e93;};'use strict';var _=require(_0x4f36('0x0'));var util=require('util');var logger=require(_0x4f36('0x1'))(_0x4f36('0x2'));var moment=require(_0x4f36('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x4f36('0x4'));var rimraf=require(_0x4f36('0x5'));var config=require(_0x4f36('0x6'));var attributes=require('./dashboardItem.attributes');module[_0x4f36('0x7')]=function(_0x1de3ca,_0x38700d){return _0x1de3ca[_0x4f36('0x8')](_0x4f36('0x9'),attributes,{'tableName':_0x4f36('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};