7f28b10baac53f37146a70c640d4c58abf75b2cc
[motion2.git] / server / api / memberReport / memberReport.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 _0x73c1=['request-promise','path','rimraf','./memberReport.attributes','exports','MemberReport','report_member','membername_interface','membername','interface','util','api','moment','bluebird'];(function(_0x5b2731,_0x289f80){var _0x36e36f=function(_0x2a3881){while(--_0x2a3881){_0x5b2731['push'](_0x5b2731['shift']());}};_0x36e36f(++_0x289f80);}(_0x73c1,0x106));var _0x173c=function(_0x4b11bc,_0xae3495){_0x4b11bc=_0x4b11bc-0x0;var _0x40a0c6=_0x73c1[_0x4b11bc];return _0x40a0c6;};'use strict';var _=require('lodash');var util=require(_0x173c('0x0'));var logger=require('../../config/logger')(_0x173c('0x1'));var moment=require(_0x173c('0x2'));var BPromise=require(_0x173c('0x3'));var rp=require(_0x173c('0x4'));var fs=require('fs');var path=require(_0x173c('0x5'));var rimraf=require(_0x173c('0x6'));var config=require('../../config/environment');var attributes=require(_0x173c('0x7'));module[_0x173c('0x8')]=function(_0x1b96b5,_0xa54726){return _0x1b96b5['define'](_0x173c('0x9'),attributes,{'tableName':_0x173c('0xa'),'paranoid':![],'indexes':[{'name':_0x173c('0xb'),'fields':[_0x173c('0xc'),_0x173c('0xd')]}],'timestamps':!![]});};