e0ca4ec9ddb812f16ad95e7754814d1bb0b0fe61
[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 _0xa068=['uniqueid','project_name','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','./squareReport.attributes','exports','define','SquareReport','report_square','uid_pname'];(function(_0xefd519,_0xc62635){var _0x4bb882=function(_0x37e0a1){while(--_0x37e0a1){_0xefd519['push'](_0xefd519['shift']());}};_0x4bb882(++_0xc62635);}(_0xa068,0x122));var _0x8a06=function(_0xc8530e,_0x292597){_0xc8530e=_0xc8530e-0x0;var _0x53c7fa=_0xa068[_0xc8530e];return _0x53c7fa;};'use strict';var _=require('lodash');var util=require(_0x8a06('0x0'));var logger=require(_0x8a06('0x1'))(_0x8a06('0x2'));var moment=require(_0x8a06('0x3'));var BPromise=require(_0x8a06('0x4'));var rp=require(_0x8a06('0x5'));var fs=require('fs');var path=require(_0x8a06('0x6'));var rimraf=require(_0x8a06('0x7'));var config=require('../../config/environment');var attributes=require(_0x8a06('0x8'));module[_0x8a06('0x9')]=function(_0x2098df,_0x58f0b9){return _0x2098df[_0x8a06('0xa')](_0x8a06('0xb'),attributes,{'tableName':_0x8a06('0xc'),'paranoid':![],'indexes':[{'name':_0x8a06('0xd'),'fields':[_0x8a06('0xe'),_0x8a06('0xf')]},{'name':'leaveAt','fields':['leaveAt']}],'timestamps':!![]});};