Built motion from commit 092f8824.|2.5.49
[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 _0xa46e=['project_name','leaveAt','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./squareReport.attributes','exports','define','SquareReport','report_square','uid_pname'];(function(_0x2fd160,_0x53c0d6){var _0x5c2031=function(_0x8ecfa5){while(--_0x8ecfa5){_0x2fd160['push'](_0x2fd160['shift']());}};_0x5c2031(++_0x53c0d6);}(_0xa46e,0x1b2));var _0xea46=function(_0x1f5887,_0x2fa1f1){_0x1f5887=_0x1f5887-0x0;var _0x21774b=_0xa46e[_0x1f5887];return _0x21774b;};'use strict';var _=require('lodash');var util=require(_0xea46('0x0'));var logger=require(_0xea46('0x1'))(_0xea46('0x2'));var moment=require(_0xea46('0x3'));var BPromise=require(_0xea46('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xea46('0x5'));var rimraf=require(_0xea46('0x6'));var config=require(_0xea46('0x7'));var attributes=require(_0xea46('0x8'));module[_0xea46('0x9')]=function(_0x4be0a7,_0x33afbd){return _0x4be0a7[_0xea46('0xa')](_0xea46('0xb'),attributes,{'tableName':_0xea46('0xc'),'paranoid':![],'indexes':[{'name':_0xea46('0xd'),'fields':['uniqueid',_0xea46('0xe')]},{'name':_0xea46('0xf'),'fields':[_0xea46('0xf')]}],'timestamps':!![]});};