57e7c652f3004e1acc396de8d58e44b1af8b2970
[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 _0xa686=['./squareReport.attributes','exports','SquareReport','uid_pname','uniqueid','project_name','leaveAt','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf'];(function(_0x3c4737,_0x2329ec){var _0x2bb926=function(_0x3b9605){while(--_0x3b9605){_0x3c4737['push'](_0x3c4737['shift']());}};_0x2bb926(++_0x2329ec);}(_0xa686,0xac));var _0x6a68=function(_0x49d519,_0x876d21){_0x49d519=_0x49d519-0x0;var _0x2c7544=_0xa686[_0x49d519];return _0x2c7544;};'use strict';var _=require(_0x6a68('0x0'));var util=require(_0x6a68('0x1'));var logger=require(_0x6a68('0x2'))(_0x6a68('0x3'));var moment=require(_0x6a68('0x4'));var BPromise=require(_0x6a68('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6a68('0x6'));var rimraf=require(_0x6a68('0x7'));var config=require('../../config/environment');var attributes=require(_0x6a68('0x8'));module[_0x6a68('0x9')]=function(_0x1ae8d2,_0x4854ea){return _0x1ae8d2['define'](_0x6a68('0xa'),attributes,{'tableName':'report_square','paranoid':![],'indexes':[{'name':_0x6a68('0xb'),'fields':[_0x6a68('0xc'),_0x6a68('0xd')]},{'name':'leaveAt','fields':[_0x6a68('0xe')]}],'timestamps':!![]});};