64d3f1f188e4f94c1f00a759db559ce688137f43
[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 _0x529f=['util','../../config/logger','moment','bluebird','request-promise','path','rimraf','./dashboardItem.attributes','exports','DashboardItem','dashboard_items','lodash'];(function(_0x3cb127,_0x581995){var _0xb2415d=function(_0x30c920){while(--_0x30c920){_0x3cb127['push'](_0x3cb127['shift']());}};_0xb2415d(++_0x581995);}(_0x529f,0x18b));var _0xf529=function(_0x49c470,_0x3172db){_0x49c470=_0x49c470-0x0;var _0x6d0c40=_0x529f[_0x49c470];return _0x6d0c40;};'use strict';var _=require(_0xf529('0x0'));var util=require(_0xf529('0x1'));var logger=require(_0xf529('0x2'))('api');var moment=require(_0xf529('0x3'));var BPromise=require(_0xf529('0x4'));var rp=require(_0xf529('0x5'));var fs=require('fs');var path=require(_0xf529('0x6'));var rimraf=require(_0xf529('0x7'));var config=require('../../config/environment');var attributes=require(_0xf529('0x8'));module[_0xf529('0x9')]=function(_0x304428,_0x3bd665){return _0x304428['define'](_0xf529('0xa'),attributes,{'tableName':_0xf529('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};