Built motion from commit c738b9ac.|2.6.25
[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 _0xcf0e=['leaveAt','lodash','util','../../config/logger','api','moment','request-promise','rimraf','./squareReport.attributes','exports','define','report_square','uniqueid','project_name'];(function(_0xc7168d,_0x179ff1){var _0x5263c2=function(_0x1db565){while(--_0x1db565){_0xc7168d['push'](_0xc7168d['shift']());}};_0x5263c2(++_0x179ff1);}(_0xcf0e,0x71));var _0xecf0=function(_0x2a55f8,_0x540ac4){_0x2a55f8=_0x2a55f8-0x0;var _0x245efd=_0xcf0e[_0x2a55f8];return _0x245efd;};'use strict';var _=require(_0xecf0('0x0'));var util=require(_0xecf0('0x1'));var logger=require(_0xecf0('0x2'))(_0xecf0('0x3'));var moment=require(_0xecf0('0x4'));var BPromise=require('bluebird');var rp=require(_0xecf0('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xecf0('0x6'));var config=require('../../config/environment');var attributes=require(_0xecf0('0x7'));module[_0xecf0('0x8')]=function(_0x2c8b6f,_0x47b07d){return _0x2c8b6f[_0xecf0('0x9')]('SquareReport',attributes,{'tableName':_0xecf0('0xa'),'paranoid':![],'indexes':[{'name':'uid_pname','fields':[_0xecf0('0xb'),_0xecf0('0xc')]},{'name':'leaveAt','fields':[_0xecf0('0xd')]}],'timestamps':!![]});};