Built motion from commit 753c950e.|2.5.42
[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 _0x8217=['../../config/logger','api','request-promise','rimraf','../../config/environment','./squareReport.attributes','exports','define','SquareReport','report_square','uid_pname','project_name','leaveAt','lodash'];(function(_0x491faa,_0x4f2907){var _0x414440=function(_0x310864){while(--_0x310864){_0x491faa['push'](_0x491faa['shift']());}};_0x414440(++_0x4f2907);}(_0x8217,0x117));var _0x7821=function(_0x55fb83,_0x1d3856){_0x55fb83=_0x55fb83-0x0;var _0x59a87a=_0x8217[_0x55fb83];return _0x59a87a;};'use strict';var _=require(_0x7821('0x0'));var util=require('util');var logger=require(_0x7821('0x1'))(_0x7821('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x7821('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x7821('0x4'));var config=require(_0x7821('0x5'));var attributes=require(_0x7821('0x6'));module[_0x7821('0x7')]=function(_0x5d8c76,_0x5ecdbb){return _0x5d8c76[_0x7821('0x8')](_0x7821('0x9'),attributes,{'tableName':_0x7821('0xa'),'paranoid':![],'indexes':[{'name':_0x7821('0xb'),'fields':['uniqueid',_0x7821('0xc')]},{'name':_0x7821('0xd'),'fields':[_0x7821('0xd')]}],'timestamps':!![]});};