af35504a6374f4a3cd76917f617b2ffee2a9b98b
[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 _0x406e=['exports','DashboardItem','dashboard_items','lodash','../../config/logger','moment','bluebird','path','../../config/environment','./dashboardItem.attributes'];(function(_0x5a1a51,_0x144c79){var _0x47edd7=function(_0x2259bb){while(--_0x2259bb){_0x5a1a51['push'](_0x5a1a51['shift']());}};_0x47edd7(++_0x144c79);}(_0x406e,0x16b));var _0xe406=function(_0x3c0a24,_0x306f4b){_0x3c0a24=_0x3c0a24-0x0;var _0x30e766=_0x406e[_0x3c0a24];return _0x30e766;};'use strict';var _=require(_0xe406('0x0'));var util=require('util');var logger=require(_0xe406('0x1'))('api');var moment=require(_0xe406('0x2'));var BPromise=require(_0xe406('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xe406('0x4'));var rimraf=require('rimraf');var config=require(_0xe406('0x5'));var attributes=require(_0xe406('0x6'));module[_0xe406('0x7')]=function(_0x186459,_0x47daf3){return _0x186459['define'](_0xe406('0x8'),attributes,{'tableName':_0xe406('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};