58519c451641a6bc2b47abeb09f5830fda5e6a92
[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 _0xa849=['../../config/environment','define','uid_pname','uniqueid','project_name','leaveAt','lodash','util','api','moment','bluebird','request-promise'];(function(_0x3729e9,_0x30edc9){var _0x471a56=function(_0x367383){while(--_0x367383){_0x3729e9['push'](_0x3729e9['shift']());}};_0x471a56(++_0x30edc9);}(_0xa849,0x162));var _0x9a84=function(_0x507862,_0x30f75d){_0x507862=_0x507862-0x0;var _0x4f7e59=_0xa849[_0x507862];return _0x4f7e59;};'use strict';var _=require(_0x9a84('0x0'));var util=require(_0x9a84('0x1'));var logger=require('../../config/logger')(_0x9a84('0x2'));var moment=require(_0x9a84('0x3'));var BPromise=require(_0x9a84('0x4'));var rp=require(_0x9a84('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x9a84('0x6'));var attributes=require('./squareReport.attributes');module['exports']=function(_0x421963,_0x4eb6e6){return _0x421963[_0x9a84('0x7')]('SquareReport',attributes,{'tableName':'report_square','paranoid':![],'indexes':[{'name':_0x9a84('0x8'),'fields':[_0x9a84('0x9'),_0x9a84('0xa')]},{'name':_0x9a84('0xb'),'fields':[_0x9a84('0xb')]}],'timestamps':!![]});};