Built motion from commit ce03bc3d.|2.5.39
[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 _0x8ab5=['path','rimraf','./squareReport.attributes','define','report_square','uid_pname','uniqueid','project_name','leaveAt','lodash','api','moment','bluebird'];(function(_0x4e9628,_0x250573){var _0x27bc8c=function(_0xb3b7ae){while(--_0xb3b7ae){_0x4e9628['push'](_0x4e9628['shift']());}};_0x27bc8c(++_0x250573);}(_0x8ab5,0x7e));var _0x58ab=function(_0x52a99e,_0x389c47){_0x52a99e=_0x52a99e-0x0;var _0x46f0d3=_0x8ab5[_0x52a99e];return _0x46f0d3;};'use strict';var _=require(_0x58ab('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x58ab('0x1'));var moment=require(_0x58ab('0x2'));var BPromise=require(_0x58ab('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x58ab('0x4'));var rimraf=require(_0x58ab('0x5'));var config=require('../../config/environment');var attributes=require(_0x58ab('0x6'));module['exports']=function(_0x2d7055,_0x2853e9){return _0x2d7055[_0x58ab('0x7')]('SquareReport',attributes,{'tableName':_0x58ab('0x8'),'paranoid':![],'indexes':[{'name':_0x58ab('0x9'),'fields':[_0x58ab('0xa'),_0x58ab('0xb')]},{'name':_0x58ab('0xc'),'fields':[_0x58ab('0xc')]}],'timestamps':!![]});};