Built motion from commit b5413ace.|2.6.9
[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 _0x3b40=['report_square','uid_pname','uniqueid','project_name','leaveAt','lodash','util','moment','bluebird','request-promise','path','rimraf','../../config/environment','./squareReport.attributes','exports','SquareReport'];(function(_0x5286dc,_0xfcba6){var _0x579101=function(_0x58f6f4){while(--_0x58f6f4){_0x5286dc['push'](_0x5286dc['shift']());}};_0x579101(++_0xfcba6);}(_0x3b40,0x135));var _0x03b4=function(_0x1a7ba7,_0x131274){_0x1a7ba7=_0x1a7ba7-0x0;var _0x5619d6=_0x3b40[_0x1a7ba7];return _0x5619d6;};'use strict';var _=require(_0x03b4('0x0'));var util=require(_0x03b4('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x03b4('0x2'));var BPromise=require(_0x03b4('0x3'));var rp=require(_0x03b4('0x4'));var fs=require('fs');var path=require(_0x03b4('0x5'));var rimraf=require(_0x03b4('0x6'));var config=require(_0x03b4('0x7'));var attributes=require(_0x03b4('0x8'));module[_0x03b4('0x9')]=function(_0x1494ed,_0x96a1dd){return _0x1494ed['define'](_0x03b4('0xa'),attributes,{'tableName':_0x03b4('0xb'),'paranoid':![],'indexes':[{'name':_0x03b4('0xc'),'fields':[_0x03b4('0xd'),_0x03b4('0xe')]},{'name':'leaveAt','fields':[_0x03b4('0xf')]}],'timestamps':!![]});};