64ae2307dcc6e2742f00d12fa1615b595fa1e073
[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 _0x4e5f=['../../config/environment','./squareReport.attributes','define','uid_pname','uniqueid','leaveAt','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf'];(function(_0xd2d11a,_0x45f33b){var _0xe42478=function(_0x81740b){while(--_0x81740b){_0xd2d11a['push'](_0xd2d11a['shift']());}};_0xe42478(++_0x45f33b);}(_0x4e5f,0x172));var _0xf4e5=function(_0xc1e762,_0x57ebee){_0xc1e762=_0xc1e762-0x0;var _0x482a5b=_0x4e5f[_0xc1e762];return _0x482a5b;};'use strict';var _=require(_0xf4e5('0x0'));var util=require(_0xf4e5('0x1'));var logger=require(_0xf4e5('0x2'))(_0xf4e5('0x3'));var moment=require(_0xf4e5('0x4'));var BPromise=require(_0xf4e5('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf4e5('0x6'));var rimraf=require(_0xf4e5('0x7'));var config=require(_0xf4e5('0x8'));var attributes=require(_0xf4e5('0x9'));module['exports']=function(_0x5204ec,_0x57470e){return _0x5204ec[_0xf4e5('0xa')]('SquareReport',attributes,{'tableName':'report_square','paranoid':![],'indexes':[{'name':_0xf4e5('0xb'),'fields':[_0xf4e5('0xc'),'project_name']},{'name':'leaveAt','fields':[_0xf4e5('0xd')]}],'timestamps':!![]});};