1657cc4fb389e4743e013a5b5f59acac3409893a
[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 _0xb2f2=['bluebird','request-promise','path','rimraf','../../config/environment','exports','define','report_square_details','lodash','util','api','moment'];(function(_0x3e1f65,_0x15100d){var _0x8e3abb=function(_0x21228a){while(--_0x21228a){_0x3e1f65['push'](_0x3e1f65['shift']());}};_0x8e3abb(++_0x15100d);}(_0xb2f2,0xc8));var _0x2b2f=function(_0x8d904c,_0x1a26c3){_0x8d904c=_0x8d904c-0x0;var _0x2beb70=_0xb2f2[_0x8d904c];return _0x2beb70;};'use strict';var _=require(_0x2b2f('0x0'));var util=require(_0x2b2f('0x1'));var logger=require('../../config/logger')(_0x2b2f('0x2'));var moment=require(_0x2b2f('0x3'));var BPromise=require(_0x2b2f('0x4'));var rp=require(_0x2b2f('0x5'));var fs=require('fs');var path=require(_0x2b2f('0x6'));var rimraf=require(_0x2b2f('0x7'));var config=require(_0x2b2f('0x8'));var attributes=require('./squareReportDetail.attributes');module[_0x2b2f('0x9')]=function(_0x2dd1a8,_0x6d540e){return _0x2dd1a8[_0x2b2f('0xa')]('SquareDetailsReport',attributes,{'tableName':_0x2b2f('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};