d847dc3bb46ff2125687bd7be558e5348990a6d3
[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 _0x081e=['exports','define','DashboardItem','dashboard_items','lodash','../../config/logger','api','moment','request-promise','path','../../config/environment','./dashboardItem.attributes'];(function(_0x167d8f,_0x1ef533){var _0x1d0fd3=function(_0x4854ec){while(--_0x4854ec){_0x167d8f['push'](_0x167d8f['shift']());}};_0x1d0fd3(++_0x1ef533);}(_0x081e,0x160));var _0xe081=function(_0x35eb94,_0x2e78a8){_0x35eb94=_0x35eb94-0x0;var _0x593add=_0x081e[_0x35eb94];return _0x593add;};'use strict';var _=require(_0xe081('0x0'));var util=require('util');var logger=require(_0xe081('0x1'))(_0xe081('0x2'));var moment=require(_0xe081('0x3'));var BPromise=require('bluebird');var rp=require(_0xe081('0x4'));var fs=require('fs');var path=require(_0xe081('0x5'));var rimraf=require('rimraf');var config=require(_0xe081('0x6'));var attributes=require(_0xe081('0x7'));module[_0xe081('0x8')]=function(_0x345108,_0x3c446c){return _0x345108[_0xe081('0x9')](_0xe081('0xa'),attributes,{'tableName':_0xe081('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};