3867ea880c5e98cb2b94efaca7b2f5ee93d90c70
[motion2.git] / server / api / squareReport / squareReport.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 _0xbbe4=['report_square','uid_pname','uniqueid','leaveAt','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','./squareReport.attributes','exports','SquareReport'];(function(_0x5e112f,_0x5d47c6){var _0x590234=function(_0x25f1da){while(--_0x25f1da){_0x5e112f['push'](_0x5e112f['shift']());}};_0x590234(++_0x5d47c6);}(_0xbbe4,0x1c6));var _0x4bbe=function(_0x38230,_0x148d0c){_0x38230=_0x38230-0x0;var _0x522ec9=_0xbbe4[_0x38230];return _0x522ec9;};'use strict';var _=require(_0x4bbe('0x0'));var util=require(_0x4bbe('0x1'));var logger=require(_0x4bbe('0x2'))(_0x4bbe('0x3'));var moment=require('moment');var BPromise=require(_0x4bbe('0x4'));var rp=require(_0x4bbe('0x5'));var fs=require('fs');var path=require(_0x4bbe('0x6'));var rimraf=require(_0x4bbe('0x7'));var config=require('../../config/environment');var attributes=require(_0x4bbe('0x8'));module[_0x4bbe('0x9')]=function(_0x1b5be2,_0x547125){return _0x1b5be2['define'](_0x4bbe('0xa'),attributes,{'tableName':_0x4bbe('0xb'),'paranoid':![],'indexes':[{'name':_0x4bbe('0xc'),'fields':[_0x4bbe('0xd'),'project_name']},{'name':_0x4bbe('0xe'),'fields':[_0x4bbe('0xe')]}],'timestamps':!![]});};