Built motion from commit ab870f9e.|2.5.44
[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 _0x1cf6=['../../config/environment','./squareReport.attributes','exports','define','SquareReport','uid_pname','uniqueid','project_name','leaveAt','lodash','moment','path','rimraf'];(function(_0x20122c,_0x2d0760){var _0xbaad10=function(_0x26c627){while(--_0x26c627){_0x20122c['push'](_0x20122c['shift']());}};_0xbaad10(++_0x2d0760);}(_0x1cf6,0xf3));var _0x61cf=function(_0x49ebd5,_0x397420){_0x49ebd5=_0x49ebd5-0x0;var _0x391e85=_0x1cf6[_0x49ebd5];return _0x391e85;};'use strict';var _=require(_0x61cf('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0x61cf('0x1'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x61cf('0x2'));var rimraf=require(_0x61cf('0x3'));var config=require(_0x61cf('0x4'));var attributes=require(_0x61cf('0x5'));module[_0x61cf('0x6')]=function(_0x59e6b5,_0x2fb6da){return _0x59e6b5[_0x61cf('0x7')](_0x61cf('0x8'),attributes,{'tableName':'report_square','paranoid':![],'indexes':[{'name':_0x61cf('0x9'),'fields':[_0x61cf('0xa'),_0x61cf('0xb')]},{'name':_0x61cf('0xc'),'fields':[_0x61cf('0xc')]}],'timestamps':!![]});};