50915d1f70edc2e5655cf7d70f5959ac56b140b0
[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 _0x74fb=['bluebird','request-promise','path','../../config/environment','./dashboardItem.attributes','exports','define','DashboardItem','dashboard_items','lodash','util','moment'];(function(_0x2a8907,_0x5df696){var _0x435f90=function(_0xe2c907){while(--_0xe2c907){_0x2a8907['push'](_0x2a8907['shift']());}};_0x435f90(++_0x5df696);}(_0x74fb,0x111));var _0xb74f=function(_0x4c2b87,_0x39770e){_0x4c2b87=_0x4c2b87-0x0;var _0x45ed5f=_0x74fb[_0x4c2b87];return _0x45ed5f;};'use strict';var _=require(_0xb74f('0x0'));var util=require(_0xb74f('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xb74f('0x2'));var BPromise=require(_0xb74f('0x3'));var rp=require(_0xb74f('0x4'));var fs=require('fs');var path=require(_0xb74f('0x5'));var rimraf=require('rimraf');var config=require(_0xb74f('0x6'));var attributes=require(_0xb74f('0x7'));module[_0xb74f('0x8')]=function(_0x366055,_0x1639bf){return _0x366055[_0xb74f('0x9')](_0xb74f('0xa'),attributes,{'tableName':_0xb74f('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};