0df14569db9157b18a239e299fe150b47a49a78a
[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 _0x94fe=['request-promise','path','rimraf','../../config/environment','./dashboardItem.attributes','exports','DashboardItem','dashboard_items','lodash','util','../../config/logger','api','moment'];(function(_0x125be5,_0x373bf8){var _0x303eed=function(_0x25f6b3){while(--_0x25f6b3){_0x125be5['push'](_0x125be5['shift']());}};_0x303eed(++_0x373bf8);}(_0x94fe,0x167));var _0xe94f=function(_0x4cfd4c,_0x1dd3d2){_0x4cfd4c=_0x4cfd4c-0x0;var _0x3011f9=_0x94fe[_0x4cfd4c];return _0x3011f9;};'use strict';var _=require(_0xe94f('0x0'));var util=require(_0xe94f('0x1'));var logger=require(_0xe94f('0x2'))(_0xe94f('0x3'));var moment=require(_0xe94f('0x4'));var BPromise=require('bluebird');var rp=require(_0xe94f('0x5'));var fs=require('fs');var path=require(_0xe94f('0x6'));var rimraf=require(_0xe94f('0x7'));var config=require(_0xe94f('0x8'));var attributes=require(_0xe94f('0x9'));module[_0xe94f('0xa')]=function(_0x13ee9a,_0x14ea58){return _0x13ee9a['define'](_0xe94f('0xb'),attributes,{'tableName':_0xe94f('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};