1d1a2da8412bea4ad0331fccc49e2008a8fdabee
[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 _0x23b4=['exports','DashboardItem','dashboard_items','util','../../config/logger','bluebird','request-promise','path','rimraf','../../config/environment','./dashboardItem.attributes'];(function(_0x1facfa,_0x1acf7d){var _0x9ec701=function(_0x115e37){while(--_0x115e37){_0x1facfa['push'](_0x1facfa['shift']());}};_0x9ec701(++_0x1acf7d);}(_0x23b4,0x16e));var _0x423b=function(_0x2cf7dd,_0x26172a){_0x2cf7dd=_0x2cf7dd-0x0;var _0x20450a=_0x23b4[_0x2cf7dd];return _0x20450a;};'use strict';var _=require('lodash');var util=require(_0x423b('0x0'));var logger=require(_0x423b('0x1'))('api');var moment=require('moment');var BPromise=require(_0x423b('0x2'));var rp=require(_0x423b('0x3'));var fs=require('fs');var path=require(_0x423b('0x4'));var rimraf=require(_0x423b('0x5'));var config=require(_0x423b('0x6'));var attributes=require(_0x423b('0x7'));module[_0x423b('0x8')]=function(_0x496524,_0x179257){return _0x496524['define'](_0x423b('0x9'),attributes,{'tableName':_0x423b('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};