3a82811a2da0b3b31149252a6681577a9805bc71
[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 _0xd69c=['lodash','util','../../config/logger','api','moment','path','rimraf','./dashboardItem.attributes','exports','define','DashboardItem','dashboard_items'];(function(_0xba7e30,_0x26e5a8){var _0x5338ab=function(_0x44c5a6){while(--_0x44c5a6){_0xba7e30['push'](_0xba7e30['shift']());}};_0x5338ab(++_0x26e5a8);}(_0xd69c,0x15c));var _0xcd69=function(_0x57a551,_0x307ac5){_0x57a551=_0x57a551-0x0;var _0x4f2214=_0xd69c[_0x57a551];return _0x4f2214;};'use strict';var _=require(_0xcd69('0x0'));var util=require(_0xcd69('0x1'));var logger=require(_0xcd69('0x2'))(_0xcd69('0x3'));var moment=require(_0xcd69('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xcd69('0x5'));var rimraf=require(_0xcd69('0x6'));var config=require('../../config/environment');var attributes=require(_0xcd69('0x7'));module[_0xcd69('0x8')]=function(_0x48257f,_0x5d99a5){return _0x48257f[_0xcd69('0x9')](_0xcd69('0xa'),attributes,{'tableName':_0xcd69('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};