Built motion from commit a679711e.|2.6.15
[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 _0x9ad2=['util','../../config/logger','api','moment','path','rimraf','../../config/environment','./squareReport.attributes','exports','define','report_square','uid_pname','uniqueid','project_name','leaveAt','lodash'];(function(_0x55f8b4,_0x43f30d){var _0x2475f9=function(_0xdd6f4a){while(--_0xdd6f4a){_0x55f8b4['push'](_0x55f8b4['shift']());}};_0x2475f9(++_0x43f30d);}(_0x9ad2,0x11f));var _0x29ad=function(_0x5afb89,_0x3ab2e2){_0x5afb89=_0x5afb89-0x0;var _0x4227d0=_0x9ad2[_0x5afb89];return _0x4227d0;};'use strict';var _=require(_0x29ad('0x0'));var util=require(_0x29ad('0x1'));var logger=require(_0x29ad('0x2'))(_0x29ad('0x3'));var moment=require(_0x29ad('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x29ad('0x5'));var rimraf=require(_0x29ad('0x6'));var config=require(_0x29ad('0x7'));var attributes=require(_0x29ad('0x8'));module[_0x29ad('0x9')]=function(_0x107fe5,_0xd49588){return _0x107fe5[_0x29ad('0xa')]('SquareReport',attributes,{'tableName':_0x29ad('0xb'),'paranoid':![],'indexes':[{'name':_0x29ad('0xc'),'fields':[_0x29ad('0xd'),_0x29ad('0xe')]},{'name':_0x29ad('0xf'),'fields':['leaveAt']}],'timestamps':!![]});};