d44db6876e2f2a65e2e08eb4bd2465daaeab080b
[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 _0xc67a=['../../config/environment','define','SquareReport','report_square','uid_pname','project_name','leaveAt','lodash','util','moment','bluebird','request-promise','rimraf'];(function(_0x54a360,_0x97497e){var _0x5b9d56=function(_0x4cd847){while(--_0x4cd847){_0x54a360['push'](_0x54a360['shift']());}};_0x5b9d56(++_0x97497e);}(_0xc67a,0x118));var _0xac67=function(_0x5d36e6,_0x348859){_0x5d36e6=_0x5d36e6-0x0;var _0x12f967=_0xc67a[_0x5d36e6];return _0x12f967;};'use strict';var _=require(_0xac67('0x0'));var util=require(_0xac67('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xac67('0x2'));var BPromise=require(_0xac67('0x3'));var rp=require(_0xac67('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xac67('0x5'));var config=require(_0xac67('0x6'));var attributes=require('./squareReport.attributes');module['exports']=function(_0x160888,_0x4fbeef){return _0x160888[_0xac67('0x7')](_0xac67('0x8'),attributes,{'tableName':_0xac67('0x9'),'paranoid':![],'indexes':[{'name':_0xac67('0xa'),'fields':['uniqueid',_0xac67('0xb')]},{'name':_0xac67('0xc'),'fields':[_0xac67('0xc')]}],'timestamps':!![]});};