2b736fef644187c24430cbb347a653841f7aa2a9
[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 _0x6c63=['SquareDetailsReport','report_square_details','util','../../config/logger','api','request-promise','path','../../config/environment','exports','define'];(function(_0x27f0f6,_0x517f4d){var _0x2d138e=function(_0x153a04){while(--_0x153a04){_0x27f0f6['push'](_0x27f0f6['shift']());}};_0x2d138e(++_0x517f4d);}(_0x6c63,0x17e));var _0x36c6=function(_0x164cf8,_0x9856bb){_0x164cf8=_0x164cf8-0x0;var _0x4811e4=_0x6c63[_0x164cf8];return _0x4811e4;};'use strict';var _=require('lodash');var util=require(_0x36c6('0x0'));var logger=require(_0x36c6('0x1'))(_0x36c6('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x36c6('0x3'));var fs=require('fs');var path=require(_0x36c6('0x4'));var rimraf=require('rimraf');var config=require(_0x36c6('0x5'));var attributes=require('./squareReportDetail.attributes');module[_0x36c6('0x6')]=function(_0x7ba4e9,_0x4dbe0f){return _0x7ba4e9[_0x36c6('0x7')](_0x36c6('0x8'),attributes,{'tableName':_0x36c6('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};