6df0d7b3e1ad162b38995b0cf70478ac1162cae3
[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 _0xa75f=['./squareReport.attributes','exports','define','SquareReport','report_square','uid_pname','uniqueid','project_name','leaveAt','lodash','util','../../config/logger','api','moment','request-promise'];(function(_0x4b933e,_0x12c3c6){var _0xdf4c60=function(_0x383289){while(--_0x383289){_0x4b933e['push'](_0x4b933e['shift']());}};_0xdf4c60(++_0x12c3c6);}(_0xa75f,0xcc));var _0xfa75=function(_0x423004,_0x35bbec){_0x423004=_0x423004-0x0;var _0x2c8bdc=_0xa75f[_0x423004];return _0x2c8bdc;};'use strict';var _=require(_0xfa75('0x0'));var util=require(_0xfa75('0x1'));var logger=require(_0xfa75('0x2'))(_0xfa75('0x3'));var moment=require(_0xfa75('0x4'));var BPromise=require('bluebird');var rp=require(_0xfa75('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xfa75('0x6'));module[_0xfa75('0x7')]=function(_0x46dc23,_0x56b085){return _0x46dc23[_0xfa75('0x8')](_0xfa75('0x9'),attributes,{'tableName':_0xfa75('0xa'),'paranoid':![],'indexes':[{'name':_0xfa75('0xb'),'fields':[_0xfa75('0xc'),_0xfa75('0xd')]},{'name':_0xfa75('0xe'),'fields':[_0xfa75('0xe')]}],'timestamps':!![]});};