Built motion from commit da617fac.|2.6.6
[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 _0xa4b3=['lodash','../../config/logger','api','moment','bluebird','path','../../config/environment','exports','define','SquareDetailsReport','report_square_details'];(function(_0x26eb3f,_0x32f0f6){var _0x404a98=function(_0x4e3732){while(--_0x4e3732){_0x26eb3f['push'](_0x26eb3f['shift']());}};_0x404a98(++_0x32f0f6);}(_0xa4b3,0x1c3));var _0x3a4b=function(_0x3c5916,_0x89796a){_0x3c5916=_0x3c5916-0x0;var _0x232c4b=_0xa4b3[_0x3c5916];return _0x232c4b;};'use strict';var _=require(_0x3a4b('0x0'));var util=require('util');var logger=require(_0x3a4b('0x1'))(_0x3a4b('0x2'));var moment=require(_0x3a4b('0x3'));var BPromise=require(_0x3a4b('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x3a4b('0x5'));var rimraf=require('rimraf');var config=require(_0x3a4b('0x6'));var attributes=require('./squareReportDetail.attributes');module[_0x3a4b('0x7')]=function(_0x45320c,_0x1ba669){return _0x45320c[_0x3a4b('0x8')](_0x3a4b('0x9'),attributes,{'tableName':_0x3a4b('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};