7cd59a53e6dd7fd2685802aa39d4116c77802f22
[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 _0xd7ed=['path','rimraf','../../config/environment','./dashboardItem.attributes','exports','DashboardItem','dashboard_items','lodash','util','api','bluebird'];(function(_0x4b73a2,_0x40b5fe){var _0x383c66=function(_0x3917ae){while(--_0x3917ae){_0x4b73a2['push'](_0x4b73a2['shift']());}};_0x383c66(++_0x40b5fe);}(_0xd7ed,0xa1));var _0xdd7e=function(_0x56ba92,_0xb3c986){_0x56ba92=_0x56ba92-0x0;var _0x8fe94d=_0xd7ed[_0x56ba92];return _0x8fe94d;};'use strict';var _=require(_0xdd7e('0x0'));var util=require(_0xdd7e('0x1'));var logger=require('../../config/logger')(_0xdd7e('0x2'));var moment=require('moment');var BPromise=require(_0xdd7e('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xdd7e('0x4'));var rimraf=require(_0xdd7e('0x5'));var config=require(_0xdd7e('0x6'));var attributes=require(_0xdd7e('0x7'));module[_0xdd7e('0x8')]=function(_0x1670e9,_0x58f5fc){return _0x1670e9['define'](_0xdd7e('0x9'),attributes,{'tableName':_0xdd7e('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};