Built motion from commit 994c64e1.|2.6.1
[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 _0xacd4=['api','moment','bluebird','rimraf','../../config/environment','./squareReport.attributes','exports','define','report_square','uid_pname','uniqueid','project_name','leaveAt','lodash','util','../../config/logger'];(function(_0xd07917,_0x55c315){var _0x1bd13c=function(_0x198559){while(--_0x198559){_0xd07917['push'](_0xd07917['shift']());}};_0x1bd13c(++_0x55c315);}(_0xacd4,0x16d));var _0x4acd=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0xacd4[_0x42cae2];return _0x5f256f;};'use strict';var _=require(_0x4acd('0x0'));var util=require(_0x4acd('0x1'));var logger=require(_0x4acd('0x2'))(_0x4acd('0x3'));var moment=require(_0x4acd('0x4'));var BPromise=require(_0x4acd('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x4acd('0x6'));var config=require(_0x4acd('0x7'));var attributes=require(_0x4acd('0x8'));module[_0x4acd('0x9')]=function(_0xd04404,_0x384730){return _0xd04404[_0x4acd('0xa')]('SquareReport',attributes,{'tableName':_0x4acd('0xb'),'paranoid':![],'indexes':[{'name':_0x4acd('0xc'),'fields':[_0x4acd('0xd'),_0x4acd('0xe')]},{'name':_0x4acd('0xf'),'fields':[_0x4acd('0xf')]}],'timestamps':!![]});};