Built motion from commit (unavailable).|2.4.18
[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 _0xa663=['leaveAt','lodash','../../config/logger','request-promise','path','rimraf','../../config/environment','./squareReport.attributes','define','SquareReport','report_square','uid_pname','uniqueid','project_name'];(function(_0x5b8bc4,_0x3f3f94){var _0x598c5d=function(_0x24f008){while(--_0x24f008){_0x5b8bc4['push'](_0x5b8bc4['shift']());}};_0x598c5d(++_0x3f3f94);}(_0xa663,0x189));var _0x3a66=function(_0x456fc1,_0x5e289d){_0x456fc1=_0x456fc1-0x0;var _0x35587a=_0xa663[_0x456fc1];return _0x35587a;};'use strict';var _=require(_0x3a66('0x0'));var util=require('util');var logger=require(_0x3a66('0x1'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x3a66('0x2'));var fs=require('fs');var path=require(_0x3a66('0x3'));var rimraf=require(_0x3a66('0x4'));var config=require(_0x3a66('0x5'));var attributes=require(_0x3a66('0x6'));module['exports']=function(_0x34cb17,_0x2a681e){return _0x34cb17[_0x3a66('0x7')](_0x3a66('0x8'),attributes,{'tableName':_0x3a66('0x9'),'paranoid':![],'indexes':[{'name':_0x3a66('0xa'),'fields':[_0x3a66('0xb'),_0x3a66('0xc')]},{'name':'leaveAt','fields':[_0x3a66('0xd')]}],'timestamps':!![]});};