701947bffbe426e5a1b04dbd21c8cb18c503fb21
[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 _0x781a=['./memberReport.attributes','exports','define','MemberReport','report_member','membername_interface','membername','interface','util','moment','bluebird','../../config/environment'];(function(_0x256b72,_0x340985){var _0x2183e3=function(_0xf7fd37){while(--_0xf7fd37){_0x256b72['push'](_0x256b72['shift']());}};_0x2183e3(++_0x340985);}(_0x781a,0x1dc));var _0xa781=function(_0x29b8a8,_0x55587f){_0x29b8a8=_0x29b8a8-0x0;var _0x10b1df=_0x781a[_0x29b8a8];return _0x10b1df;};'use strict';var _=require('lodash');var util=require(_0xa781('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0xa781('0x1'));var BPromise=require(_0xa781('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xa781('0x3'));var attributes=require(_0xa781('0x4'));module[_0xa781('0x5')]=function(_0x297ba1,_0x480f3a){return _0x297ba1[_0xa781('0x6')](_0xa781('0x7'),attributes,{'tableName':_0xa781('0x8'),'paranoid':![],'indexes':[{'name':_0xa781('0x9'),'fields':[_0xa781('0xa'),_0xa781('0xb')]}],'timestamps':!![]});};