Built motion from commit d1eab355.|2.6.28
[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 _0x4b26=['moment','bluebird','path','rimraf','../../config/environment','./dashboardItem.attributes','exports','define','DashboardItem','dashboard_items','lodash','util','api'];(function(_0x242c8a,_0x26912b){var _0x335bed=function(_0x5dac02){while(--_0x5dac02){_0x242c8a['push'](_0x242c8a['shift']());}};_0x335bed(++_0x26912b);}(_0x4b26,0xa6));var _0x64b2=function(_0x395a60,_0x3e645b){_0x395a60=_0x395a60-0x0;var _0x2a8305=_0x4b26[_0x395a60];return _0x2a8305;};'use strict';var _=require(_0x64b2('0x0'));var util=require(_0x64b2('0x1'));var logger=require('../../config/logger')(_0x64b2('0x2'));var moment=require(_0x64b2('0x3'));var BPromise=require(_0x64b2('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x64b2('0x5'));var rimraf=require(_0x64b2('0x6'));var config=require(_0x64b2('0x7'));var attributes=require(_0x64b2('0x8'));module[_0x64b2('0x9')]=function(_0x2583bb,_0x43182e){return _0x2583bb[_0x64b2('0xa')](_0x64b2('0xb'),attributes,{'tableName':_0x64b2('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};