94513c2e437ce209bc30d0563c9b13ef82893df0
[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 _0x400c=['moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','DashboardItem','lodash','util','api'];(function(_0x1203f,_0x554bbc){var _0x365f0a=function(_0x3531d0){while(--_0x3531d0){_0x1203f['push'](_0x1203f['shift']());}};_0x365f0a(++_0x554bbc);}(_0x400c,0x81));var _0xc400=function(_0x173441,_0x26b0d9){_0x173441=_0x173441-0x0;var _0x2423a8=_0x400c[_0x173441];return _0x2423a8;};'use strict';var _=require(_0xc400('0x0'));var util=require(_0xc400('0x1'));var logger=require('../../config/logger')(_0xc400('0x2'));var moment=require(_0xc400('0x3'));var BPromise=require(_0xc400('0x4'));var rp=require(_0xc400('0x5'));var fs=require('fs');var path=require(_0xc400('0x6'));var rimraf=require(_0xc400('0x7'));var config=require(_0xc400('0x8'));var attributes=require('./dashboardItem.attributes');module[_0xc400('0x9')]=function(_0x21ec9c,_0x10f746){return _0x21ec9c['define'](_0xc400('0xa'),attributes,{'tableName':'dashboard_items','paranoid':![],'indexes':[],'timestamps':!![]});};