Built motion from commit 449495f6.|2.6.27
[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 _0x2b7d=['api','bluebird','path','rimraf','../../config/environment','exports','SquareReport','report_square','uid_pname','uniqueid','project_name','leaveAt','lodash','util','../../config/logger'];(function(_0x54f5ab,_0x3ff783){var _0x1ad24c=function(_0xce5282){while(--_0xce5282){_0x54f5ab['push'](_0x54f5ab['shift']());}};_0x1ad24c(++_0x3ff783);}(_0x2b7d,0xde));var _0xd2b7=function(_0x31aa4c,_0x342e3b){_0x31aa4c=_0x31aa4c-0x0;var _0x32630c=_0x2b7d[_0x31aa4c];return _0x32630c;};'use strict';var _=require(_0xd2b7('0x0'));var util=require(_0xd2b7('0x1'));var logger=require(_0xd2b7('0x2'))(_0xd2b7('0x3'));var moment=require('moment');var BPromise=require(_0xd2b7('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xd2b7('0x5'));var rimraf=require(_0xd2b7('0x6'));var config=require(_0xd2b7('0x7'));var attributes=require('./squareReport.attributes');module[_0xd2b7('0x8')]=function(_0x5cdaef,_0x49d489){return _0x5cdaef['define'](_0xd2b7('0x9'),attributes,{'tableName':_0xd2b7('0xa'),'paranoid':![],'indexes':[{'name':_0xd2b7('0xb'),'fields':[_0xd2b7('0xc'),_0xd2b7('0xd')]},{'name':'leaveAt','fields':[_0xd2b7('0xe')]}],'timestamps':!![]});};