e73f152a029bb8afc45b7bc6be8f843f7e3b6568
[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 _0x4237=['uid_pname','uniqueid','leaveAt','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','SquareReport'];(function(_0x312ac8,_0x9b640c){var _0x228770=function(_0x42ff76){while(--_0x42ff76){_0x312ac8['push'](_0x312ac8['shift']());}};_0x228770(++_0x9b640c);}(_0x4237,0x107));var _0x7423=function(_0x229897,_0x49b540){_0x229897=_0x229897-0x0;var _0x5e1946=_0x4237[_0x229897];return _0x5e1946;};'use strict';var _=require(_0x7423('0x0'));var util=require(_0x7423('0x1'));var logger=require(_0x7423('0x2'))(_0x7423('0x3'));var moment=require(_0x7423('0x4'));var BPromise=require(_0x7423('0x5'));var rp=require(_0x7423('0x6'));var fs=require('fs');var path=require(_0x7423('0x7'));var rimraf=require('rimraf');var config=require(_0x7423('0x8'));var attributes=require('./squareReport.attributes');module['exports']=function(_0x32af49,_0x4cd1c8){return _0x32af49['define'](_0x7423('0x9'),attributes,{'tableName':'report_square','paranoid':![],'indexes':[{'name':_0x7423('0xa'),'fields':[_0x7423('0xb'),'project_name']},{'name':_0x7423('0xc'),'fields':['leaveAt']}],'timestamps':!![]});};