Built motion from commit 19a84241.|2.5.34
[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 _0x7a43=['../../config/environment','./dashboardItem.attributes','exports','define','DashboardItem','dashboard_items','util','../../config/logger','api','moment','bluebird','request-promise','rimraf'];(function(_0x383158,_0x415e43){var _0x507985=function(_0x1e498e){while(--_0x1e498e){_0x383158['push'](_0x383158['shift']());}};_0x507985(++_0x415e43);}(_0x7a43,0x13e));var _0x37a4=function(_0x3ff0ab,_0x3406ff){_0x3ff0ab=_0x3ff0ab-0x0;var _0x22159c=_0x7a43[_0x3ff0ab];return _0x22159c;};'use strict';var _=require('lodash');var util=require(_0x37a4('0x0'));var logger=require(_0x37a4('0x1'))(_0x37a4('0x2'));var moment=require(_0x37a4('0x3'));var BPromise=require(_0x37a4('0x4'));var rp=require(_0x37a4('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x37a4('0x6'));var config=require(_0x37a4('0x7'));var attributes=require(_0x37a4('0x8'));module[_0x37a4('0x9')]=function(_0x268bbf,_0x10dc66){return _0x268bbf[_0x37a4('0xa')](_0x37a4('0xb'),attributes,{'tableName':_0x37a4('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};