07c78ab181e0c54a4837256cef1c0d8a8db6ae6a
[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 _0x6391=['report_square','uid_pname','project_name','leaveAt','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','./squareReport.attributes','define','SquareReport'];(function(_0x1a69fc,_0xc78d18){var _0xf58ab1=function(_0x3b9efe){while(--_0x3b9efe){_0x1a69fc['push'](_0x1a69fc['shift']());}};_0xf58ab1(++_0xc78d18);}(_0x6391,0x121));var _0x1639=function(_0x5b077b,_0x50b707){_0x5b077b=_0x5b077b-0x0;var _0x16faf7=_0x6391[_0x5b077b];return _0x16faf7;};'use strict';var _=require('lodash');var util=require(_0x1639('0x0'));var logger=require(_0x1639('0x1'))(_0x1639('0x2'));var moment=require(_0x1639('0x3'));var BPromise=require(_0x1639('0x4'));var rp=require(_0x1639('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x1639('0x6'));var config=require(_0x1639('0x7'));var attributes=require(_0x1639('0x8'));module['exports']=function(_0x38cf65,_0x17b77c){return _0x38cf65[_0x1639('0x9')](_0x1639('0xa'),attributes,{'tableName':_0x1639('0xb'),'paranoid':![],'indexes':[{'name':_0x1639('0xc'),'fields':['uniqueid',_0x1639('0xd')]},{'name':_0x1639('0xe'),'fields':['leaveAt']}],'timestamps':!![]});};