34f20f7c0c51be3b9209b541fcfcddfdcc992d75
[motion2.git] / server / api / squareReportDetail / squareReportDetail.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 _0x71cf=['bluebird','request-promise','path','exports','define','SquareDetailsReport','report_square_details','lodash','util','../../config/logger','api'];(function(_0x2ed51e,_0x20d606){var _0x44318c=function(_0x1df2bd){while(--_0x1df2bd){_0x2ed51e['push'](_0x2ed51e['shift']());}};_0x44318c(++_0x20d606);}(_0x71cf,0x96));var _0xf71c=function(_0x5575cd,_0x73ab7a){_0x5575cd=_0x5575cd-0x0;var _0x4979a0=_0x71cf[_0x5575cd];return _0x4979a0;};'use strict';var _=require(_0xf71c('0x0'));var util=require(_0xf71c('0x1'));var logger=require(_0xf71c('0x2'))(_0xf71c('0x3'));var moment=require('moment');var BPromise=require(_0xf71c('0x4'));var rp=require(_0xf71c('0x5'));var fs=require('fs');var path=require(_0xf71c('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./squareReportDetail.attributes');module[_0xf71c('0x7')]=function(_0x4517ac,_0x43f772){return _0x4517ac[_0xf71c('0x8')](_0xf71c('0x9'),attributes,{'tableName':_0xf71c('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};