Built motion from commit e6806ed6.|2.6.0
[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 _0x3a90=['leaveAt','lodash','util','bluebird','request-promise','../../config/environment','./squareReport.attributes','exports','SquareReport','report_square','uid_pname','uniqueid','project_name'];(function(_0x22925b,_0x27d4d9){var _0x4ebfcf=function(_0x21844c){while(--_0x21844c){_0x22925b['push'](_0x22925b['shift']());}};_0x4ebfcf(++_0x27d4d9);}(_0x3a90,0x17a));var _0x03a9=function(_0x1b7560,_0xbde2f5){_0x1b7560=_0x1b7560-0x0;var _0x90c1b1=_0x3a90[_0x1b7560];return _0x90c1b1;};'use strict';var _=require(_0x03a9('0x0'));var util=require(_0x03a9('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x03a9('0x2'));var rp=require(_0x03a9('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x03a9('0x4'));var attributes=require(_0x03a9('0x5'));module[_0x03a9('0x6')]=function(_0x21559c,_0x5964eb){return _0x21559c['define'](_0x03a9('0x7'),attributes,{'tableName':_0x03a9('0x8'),'paranoid':![],'indexes':[{'name':_0x03a9('0x9'),'fields':[_0x03a9('0xa'),_0x03a9('0xb')]},{'name':'leaveAt','fields':[_0x03a9('0xc')]}],'timestamps':!![]});};