4479fc50f8ae2963450a18c0816085d106668cb7
[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 _0x2d7d=['interface','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./memberReport.attributes','exports','define','MemberReport','report_member','membername_interface','membername'];(function(_0x195535,_0x3e89d5){var _0x440749=function(_0x5662de){while(--_0x5662de){_0x195535['push'](_0x195535['shift']());}};_0x440749(++_0x3e89d5);}(_0x2d7d,0x1bb));var _0xd2d7=function(_0x89501e,_0x36d962){_0x89501e=_0x89501e-0x0;var _0x2c56af=_0x2d7d[_0x89501e];return _0x2c56af;};'use strict';var _=require(_0xd2d7('0x0'));var util=require(_0xd2d7('0x1'));var logger=require(_0xd2d7('0x2'))(_0xd2d7('0x3'));var moment=require(_0xd2d7('0x4'));var BPromise=require(_0xd2d7('0x5'));var rp=require(_0xd2d7('0x6'));var fs=require('fs');var path=require(_0xd2d7('0x7'));var rimraf=require('rimraf');var config=require(_0xd2d7('0x8'));var attributes=require(_0xd2d7('0x9'));module[_0xd2d7('0xa')]=function(_0xecf6ad,_0x42e540){return _0xecf6ad[_0xd2d7('0xb')](_0xd2d7('0xc'),attributes,{'tableName':_0xd2d7('0xd'),'paranoid':![],'indexes':[{'name':_0xd2d7('0xe'),'fields':[_0xd2d7('0xf'),_0xd2d7('0x10')]}],'timestamps':!![]});};