Built motion from commit 5b761a7b.|2.5.36
[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 _0x01a1=['../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./squareReport.attributes','exports','SquareReport','report_square','uid_pname','project_name','leaveAt','lodash','util'];(function(_0x5d860f,_0x467498){var _0x236490=function(_0x5e045c){while(--_0x5e045c){_0x5d860f['push'](_0x5d860f['shift']());}};_0x236490(++_0x467498);}(_0x01a1,0x18e));var _0x101a=function(_0x20290f,_0x2d3821){_0x20290f=_0x20290f-0x0;var _0xc13e02=_0x01a1[_0x20290f];return _0xc13e02;};'use strict';var _=require(_0x101a('0x0'));var util=require(_0x101a('0x1'));var logger=require(_0x101a('0x2'))(_0x101a('0x3'));var moment=require(_0x101a('0x4'));var BPromise=require(_0x101a('0x5'));var rp=require(_0x101a('0x6'));var fs=require('fs');var path=require(_0x101a('0x7'));var rimraf=require('rimraf');var config=require(_0x101a('0x8'));var attributes=require(_0x101a('0x9'));module[_0x101a('0xa')]=function(_0x379ca5,_0x38af54){return _0x379ca5['define'](_0x101a('0xb'),attributes,{'tableName':_0x101a('0xc'),'paranoid':![],'indexes':[{'name':_0x101a('0xd'),'fields':['uniqueid',_0x101a('0xe')]},{'name':_0x101a('0xf'),'fields':['leaveAt']}],'timestamps':!![]});};