Built motion from commit (unavailable).|2.5.20
[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 _0x2107=['../../config/logger','bluebird','path','rimraf','../../config/environment','./squareReport.attributes','exports','define','SquareReport','report_square','lodash','util'];(function(_0x5d4f12,_0x11e67c){var _0x4eb577=function(_0x4d7a2d){while(--_0x4d7a2d){_0x5d4f12['push'](_0x5d4f12['shift']());}};_0x4eb577(++_0x11e67c);}(_0x2107,0x6a));var _0x7210=function(_0x469ac7,_0x38e416){_0x469ac7=_0x469ac7-0x0;var _0x22f3b0=_0x2107[_0x469ac7];return _0x22f3b0;};'use strict';var _=require(_0x7210('0x0'));var util=require(_0x7210('0x1'));var logger=require(_0x7210('0x2'))('api');var moment=require('moment');var BPromise=require(_0x7210('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x7210('0x4'));var rimraf=require(_0x7210('0x5'));var config=require(_0x7210('0x6'));var attributes=require(_0x7210('0x7'));module[_0x7210('0x8')]=function(_0x4ee772,_0x156ad6){return _0x4ee772[_0x7210('0x9')](_0x7210('0xa'),attributes,{'tableName':_0x7210('0xb'),'paranoid':![],'indexes':[{'name':'uid_pname','fields':['uniqueid','project_name']},{'name':'leaveAt','fields':['leaveAt']}],'timestamps':!![]});};