121f71467babc43dc6f9f0f85772ab1d5f890bd1
[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 _0xb3ca=['request-promise','path','rimraf','../../config/environment','./dashboardItem.attributes','exports','define','DashboardItem','dashboard_items','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x449607,_0x287561){var _0x972d5=function(_0x222241){while(--_0x222241){_0x449607['push'](_0x449607['shift']());}};_0x972d5(++_0x287561);}(_0xb3ca,0x1e9));var _0xab3c=function(_0x5ece84,_0xc06c9f){_0x5ece84=_0x5ece84-0x0;var _0x2a12c4=_0xb3ca[_0x5ece84];return _0x2a12c4;};'use strict';var _=require(_0xab3c('0x0'));var util=require(_0xab3c('0x1'));var logger=require(_0xab3c('0x2'))(_0xab3c('0x3'));var moment=require(_0xab3c('0x4'));var BPromise=require(_0xab3c('0x5'));var rp=require(_0xab3c('0x6'));var fs=require('fs');var path=require(_0xab3c('0x7'));var rimraf=require(_0xab3c('0x8'));var config=require(_0xab3c('0x9'));var attributes=require(_0xab3c('0xa'));module[_0xab3c('0xb')]=function(_0x174c9b,_0x1e9f2c){return _0x174c9b[_0xab3c('0xc')](_0xab3c('0xd'),attributes,{'tableName':_0xab3c('0xe'),'paranoid':![],'indexes':[],'timestamps':!![]});};