Built motion from commit e02f907f.|2.6.14
[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 _0x9f4b=['api','moment','bluebird','path','rimraf','../../config/environment','./dashboardItem.attributes','define','DashboardItem','dashboard_items','../../config/logger'];(function(_0x40d8d7,_0x30dd5e){var _0x3454cc=function(_0x512c1b){while(--_0x512c1b){_0x40d8d7['push'](_0x40d8d7['shift']());}};_0x3454cc(++_0x30dd5e);}(_0x9f4b,0xfc));var _0xb9f4=function(_0x1e6a0d,_0x1aed9d){_0x1e6a0d=_0x1e6a0d-0x0;var _0x1d5b99=_0x9f4b[_0x1e6a0d];return _0x1d5b99;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xb9f4('0x0'))(_0xb9f4('0x1'));var moment=require(_0xb9f4('0x2'));var BPromise=require(_0xb9f4('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xb9f4('0x4'));var rimraf=require(_0xb9f4('0x5'));var config=require(_0xb9f4('0x6'));var attributes=require(_0xb9f4('0x7'));module['exports']=function(_0x4ea31c,_0x1a74e5){return _0x4ea31c[_0xb9f4('0x8')](_0xb9f4('0x9'),attributes,{'tableName':_0xb9f4('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};