Built motion from commit 00bf23f6.|2.6.16
[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 _0x34ee=['exports','define','DashboardItem','dashboard_items','lodash','../../config/logger','moment','request-promise','rimraf','../../config/environment'];(function(_0x373279,_0x498af0){var _0x13e6a0=function(_0x25ae7d){while(--_0x25ae7d){_0x373279['push'](_0x373279['shift']());}};_0x13e6a0(++_0x498af0);}(_0x34ee,0x144));var _0xe34e=function(_0x1b9629,_0x5554b4){_0x1b9629=_0x1b9629-0x0;var _0x4ade3a=_0x34ee[_0x1b9629];return _0x4ade3a;};'use strict';var _=require(_0xe34e('0x0'));var util=require('util');var logger=require(_0xe34e('0x1'))('api');var moment=require(_0xe34e('0x2'));var BPromise=require('bluebird');var rp=require(_0xe34e('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xe34e('0x4'));var config=require(_0xe34e('0x5'));var attributes=require('./dashboardItem.attributes');module[_0xe34e('0x6')]=function(_0x14930d,_0x42aff0){return _0x14930d[_0xe34e('0x7')](_0xe34e('0x8'),attributes,{'tableName':_0xe34e('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};