2d22f97dbd55f15f1bc11ead546e089995ea0177
[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 _0x6e82=['path','rimraf','../../config/environment','./dashboardItem.attributes','exports','define','DashboardItem','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x3c0ea7,_0x9485d3){var _0x52c6bb=function(_0x45b130){while(--_0x45b130){_0x3c0ea7['push'](_0x3c0ea7['shift']());}};_0x52c6bb(++_0x9485d3);}(_0x6e82,0x1a7));var _0x26e8=function(_0x2e1aa2,_0x72bfb2){_0x2e1aa2=_0x2e1aa2-0x0;var _0x13188a=_0x6e82[_0x2e1aa2];return _0x13188a;};'use strict';var _=require('lodash');var util=require(_0x26e8('0x0'));var logger=require(_0x26e8('0x1'))(_0x26e8('0x2'));var moment=require(_0x26e8('0x3'));var BPromise=require(_0x26e8('0x4'));var rp=require(_0x26e8('0x5'));var fs=require('fs');var path=require(_0x26e8('0x6'));var rimraf=require(_0x26e8('0x7'));var config=require(_0x26e8('0x8'));var attributes=require(_0x26e8('0x9'));module[_0x26e8('0xa')]=function(_0x56a7e3,_0x4c287a){return _0x56a7e3[_0x26e8('0xb')](_0x26e8('0xc'),attributes,{'tableName':'dashboard_items','paranoid':![],'indexes':[],'timestamps':!![]});};