Built motion from commit 00bf23f6.|2.6.16
[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 _0xedae=['util','../../config/logger','moment','bluebird','request-promise','../../config/environment','exports','report_square','uid_pname','project_name','leaveAt','lodash'];(function(_0x101ccf,_0x37e172){var _0x99b0f1=function(_0x4111c8){while(--_0x4111c8){_0x101ccf['push'](_0x101ccf['shift']());}};_0x99b0f1(++_0x37e172);}(_0xedae,0xa7));var _0xeeda=function(_0x2576d7,_0x167624){_0x2576d7=_0x2576d7-0x0;var _0x16a08c=_0xedae[_0x2576d7];return _0x16a08c;};'use strict';var _=require(_0xeeda('0x0'));var util=require(_0xeeda('0x1'));var logger=require(_0xeeda('0x2'))('api');var moment=require(_0xeeda('0x3'));var BPromise=require(_0xeeda('0x4'));var rp=require(_0xeeda('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xeeda('0x6'));var attributes=require('./squareReport.attributes');module[_0xeeda('0x7')]=function(_0x12b4aa,_0x35d1a7){return _0x12b4aa['define']('SquareReport',attributes,{'tableName':_0xeeda('0x8'),'paranoid':![],'indexes':[{'name':_0xeeda('0x9'),'fields':['uniqueid',_0xeeda('0xa')]},{'name':_0xeeda('0xb'),'fields':['leaveAt']}],'timestamps':!![]});};