cffefc5e820c50987aac24970d53c2635e05bbe4
[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 _0xbe45=['rimraf','./dashboardItem.attributes','exports','define','DashboardItem','dashboard_items','lodash','util','api','moment','bluebird','request-promise','path'];(function(_0x2262af,_0x5586df){var _0x224178=function(_0x589292){while(--_0x589292){_0x2262af['push'](_0x2262af['shift']());}};_0x224178(++_0x5586df);}(_0xbe45,0xf0));var _0x5be4=function(_0x3a2f4c,_0x14d781){_0x3a2f4c=_0x3a2f4c-0x0;var _0x2577c5=_0xbe45[_0x3a2f4c];return _0x2577c5;};'use strict';var _=require(_0x5be4('0x0'));var util=require(_0x5be4('0x1'));var logger=require('../../config/logger')(_0x5be4('0x2'));var moment=require(_0x5be4('0x3'));var BPromise=require(_0x5be4('0x4'));var rp=require(_0x5be4('0x5'));var fs=require('fs');var path=require(_0x5be4('0x6'));var rimraf=require(_0x5be4('0x7'));var config=require('../../config/environment');var attributes=require(_0x5be4('0x8'));module[_0x5be4('0x9')]=function(_0x2681c7,_0x2b3c60){return _0x2681c7[_0x5be4('0xa')](_0x5be4('0xb'),attributes,{'tableName':_0x5be4('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};