Built motion from commit (unavailable).|2.4.9
[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 _0xbadc=['path','rimraf','../../config/environment','./dashboardItem.attributes','exports','define','DashboardItem','dashboard_items','util','../../config/logger','request-promise'];(function(_0x388c3e,_0x3cc690){var _0x551759=function(_0x28ca95){while(--_0x28ca95){_0x388c3e['push'](_0x388c3e['shift']());}};_0x551759(++_0x3cc690);}(_0xbadc,0xad));var _0xcbad=function(_0x4a7145,_0x14c18b){_0x4a7145=_0x4a7145-0x0;var _0x9e46d5=_0xbadc[_0x4a7145];return _0x9e46d5;};'use strict';var _=require('lodash');var util=require(_0xcbad('0x0'));var logger=require(_0xcbad('0x1'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xcbad('0x2'));var fs=require('fs');var path=require(_0xcbad('0x3'));var rimraf=require(_0xcbad('0x4'));var config=require(_0xcbad('0x5'));var attributes=require(_0xcbad('0x6'));module[_0xcbad('0x7')]=function(_0x591b69,_0x35a6bd){return _0x591b69[_0xcbad('0x8')](_0xcbad('0x9'),attributes,{'tableName':_0xcbad('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};