6ec94107bce01da2761ea58a9e7c3c1646521646
[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 _0x7d5f=['membername','interface','util','bluebird','request-promise','path','rimraf','../../config/environment','./memberReport.attributes','exports','define','MemberReport','report_member','membername_interface'];(function(_0x52bcbd,_0x8dcc55){var _0x2c4072=function(_0x2af410){while(--_0x2af410){_0x52bcbd['push'](_0x52bcbd['shift']());}};_0x2c4072(++_0x8dcc55);}(_0x7d5f,0x1d0));var _0xf7d5=function(_0x5fb2ce,_0x4ab9c3){_0x5fb2ce=_0x5fb2ce-0x0;var _0x459e4a=_0x7d5f[_0x5fb2ce];return _0x459e4a;};'use strict';var _=require('lodash');var util=require(_0xf7d5('0x0'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0xf7d5('0x1'));var rp=require(_0xf7d5('0x2'));var fs=require('fs');var path=require(_0xf7d5('0x3'));var rimraf=require(_0xf7d5('0x4'));var config=require(_0xf7d5('0x5'));var attributes=require(_0xf7d5('0x6'));module[_0xf7d5('0x7')]=function(_0x15483b,_0xcb5f42){return _0x15483b[_0xf7d5('0x8')](_0xf7d5('0x9'),attributes,{'tableName':_0xf7d5('0xa'),'paranoid':![],'indexes':[{'name':_0xf7d5('0xb'),'fields':[_0xf7d5('0xc'),_0xf7d5('0xd')]}],'timestamps':!![]});};