Built motion from commit b5996064.|2.6.21
[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 _0xb1c5=['request-promise','path','rimraf','../../config/environment','./memberReport.attributes','exports','define','MemberReport','report_member','membername','interface','util','api','moment','bluebird'];(function(_0x1d606d,_0x376e51){var _0x3c38bd=function(_0x2ea4e2){while(--_0x2ea4e2){_0x1d606d['push'](_0x1d606d['shift']());}};_0x3c38bd(++_0x376e51);}(_0xb1c5,0x182));var _0x5b1c=function(_0xfae23b,_0x2be4ba){_0xfae23b=_0xfae23b-0x0;var _0x200640=_0xb1c5[_0xfae23b];return _0x200640;};'use strict';var _=require('lodash');var util=require(_0x5b1c('0x0'));var logger=require('../../config/logger')(_0x5b1c('0x1'));var moment=require(_0x5b1c('0x2'));var BPromise=require(_0x5b1c('0x3'));var rp=require(_0x5b1c('0x4'));var fs=require('fs');var path=require(_0x5b1c('0x5'));var rimraf=require(_0x5b1c('0x6'));var config=require(_0x5b1c('0x7'));var attributes=require(_0x5b1c('0x8'));module[_0x5b1c('0x9')]=function(_0x523231,_0x3a9850){return _0x523231[_0x5b1c('0xa')](_0x5b1c('0xb'),attributes,{'tableName':_0x5b1c('0xc'),'paranoid':![],'indexes':[{'name':'membername_interface','fields':[_0x5b1c('0xd'),_0x5b1c('0xe')]}],'timestamps':!![]});};