Built motion from commit a679711e.|2.6.15
[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 _0x862f=['request-promise','path','./dashboardItem.attributes','exports','DashboardItem','dashboard_items','util','../../config/logger','api','moment'];(function(_0x5967e4,_0x2939ca){var _0x48b31f=function(_0x25ab53){while(--_0x25ab53){_0x5967e4['push'](_0x5967e4['shift']());}};_0x48b31f(++_0x2939ca);}(_0x862f,0xba));var _0xf862=function(_0x2b1552,_0x17993f){_0x2b1552=_0x2b1552-0x0;var _0x4cd48e=_0x862f[_0x2b1552];return _0x4cd48e;};'use strict';var _=require('lodash');var util=require(_0xf862('0x0'));var logger=require(_0xf862('0x1'))(_0xf862('0x2'));var moment=require(_0xf862('0x3'));var BPromise=require('bluebird');var rp=require(_0xf862('0x4'));var fs=require('fs');var path=require(_0xf862('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xf862('0x6'));module[_0xf862('0x7')]=function(_0x6e84c9,_0x18e1f0){return _0x6e84c9['define'](_0xf862('0x8'),attributes,{'tableName':_0xf862('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};