Built motion from commit (unavailable).|2.5.11
[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 _0xd586=['api','moment','bluebird','./dashboardItem.attributes','exports','define','DashboardItem','util','../../config/logger'];(function(_0x112d1e,_0x293934){var _0x510779=function(_0x2299e2){while(--_0x2299e2){_0x112d1e['push'](_0x112d1e['shift']());}};_0x510779(++_0x293934);}(_0xd586,0x11e));var _0x6d58=function(_0x2e8afc,_0x9a1941){_0x2e8afc=_0x2e8afc-0x0;var _0x2a5fc0=_0xd586[_0x2e8afc];return _0x2a5fc0;};'use strict';var _=require('lodash');var util=require(_0x6d58('0x0'));var logger=require(_0x6d58('0x1'))(_0x6d58('0x2'));var moment=require(_0x6d58('0x3'));var BPromise=require(_0x6d58('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x6d58('0x5'));module[_0x6d58('0x6')]=function(_0x5a99dd,_0x1680f7){return _0x5a99dd[_0x6d58('0x7')](_0x6d58('0x8'),attributes,{'tableName':'dashboard_items','paranoid':![],'indexes':[],'timestamps':!![]});};