Built motion from commit (unavailable).|2.5.4
[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 _0x6d84=['./squareReport.attributes','exports','define','SquareReport','report_square','uid_pname','uniqueid','project_name','leaveAt','util','moment','request-promise','rimraf'];(function(_0x50e117,_0x21aa13){var _0x44bd14=function(_0x348b16){while(--_0x348b16){_0x50e117['push'](_0x50e117['shift']());}};_0x44bd14(++_0x21aa13);}(_0x6d84,0x1d0));var _0x46d8=function(_0x21c0fa,_0x220a53){_0x21c0fa=_0x21c0fa-0x0;var _0x5a1c6e=_0x6d84[_0x21c0fa];return _0x5a1c6e;};'use strict';var _=require('lodash');var util=require(_0x46d8('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0x46d8('0x1'));var BPromise=require('bluebird');var rp=require(_0x46d8('0x2'));var fs=require('fs');var path=require('path');var rimraf=require(_0x46d8('0x3'));var config=require('../../config/environment');var attributes=require(_0x46d8('0x4'));module[_0x46d8('0x5')]=function(_0x285394,_0x212c14){return _0x285394[_0x46d8('0x6')](_0x46d8('0x7'),attributes,{'tableName':_0x46d8('0x8'),'paranoid':![],'indexes':[{'name':_0x46d8('0x9'),'fields':[_0x46d8('0xa'),_0x46d8('0xb')]},{'name':_0x46d8('0xc'),'fields':['leaveAt']}],'timestamps':!![]});};