Built motion from commit e02f907f.|2.6.14
[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 _0xf442=['../../config/logger','moment','path','rimraf','../../config/environment','./squareReport.attributes','exports','define','SquareReport','report_square','uid_pname','uniqueid','project_name','leaveAt','lodash','util'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xf442,0x10e));var _0x2f44=function(_0x212160,_0x319603){_0x212160=_0x212160-0x0;var _0x24ea68=_0xf442[_0x212160];return _0x24ea68;};'use strict';var _=require(_0x2f44('0x0'));var util=require(_0x2f44('0x1'));var logger=require(_0x2f44('0x2'))('api');var moment=require(_0x2f44('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x2f44('0x4'));var rimraf=require(_0x2f44('0x5'));var config=require(_0x2f44('0x6'));var attributes=require(_0x2f44('0x7'));module[_0x2f44('0x8')]=function(_0x11b730,_0x54670d){return _0x11b730[_0x2f44('0x9')](_0x2f44('0xa'),attributes,{'tableName':_0x2f44('0xb'),'paranoid':![],'indexes':[{'name':_0x2f44('0xc'),'fields':[_0x2f44('0xd'),_0x2f44('0xe')]},{'name':_0x2f44('0xf'),'fields':['leaveAt']}],'timestamps':!![]});};