Built motion from commit e1760111.|2.6.18
[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 _0xb5fe=['../../config/environment','./squareReport.attributes','exports','define','report_square','uid_pname','uniqueid','project_name','leaveAt','util','../../config/logger','api','bluebird','request-promise','path','rimraf'];(function(_0x274ad0,_0x6e5ac5){var _0x3fe517=function(_0x293356){while(--_0x293356){_0x274ad0['push'](_0x274ad0['shift']());}};_0x3fe517(++_0x6e5ac5);}(_0xb5fe,0x79));var _0xeb5f=function(_0x10bf6a,_0x24ffda){_0x10bf6a=_0x10bf6a-0x0;var _0x505532=_0xb5fe[_0x10bf6a];return _0x505532;};'use strict';var _=require('lodash');var util=require(_0xeb5f('0x0'));var logger=require(_0xeb5f('0x1'))(_0xeb5f('0x2'));var moment=require('moment');var BPromise=require(_0xeb5f('0x3'));var rp=require(_0xeb5f('0x4'));var fs=require('fs');var path=require(_0xeb5f('0x5'));var rimraf=require(_0xeb5f('0x6'));var config=require(_0xeb5f('0x7'));var attributes=require(_0xeb5f('0x8'));module[_0xeb5f('0x9')]=function(_0x7a7753,_0x153b76){return _0x7a7753[_0xeb5f('0xa')]('SquareReport',attributes,{'tableName':_0xeb5f('0xb'),'paranoid':![],'indexes':[{'name':_0xeb5f('0xc'),'fields':[_0xeb5f('0xd'),_0xeb5f('0xe')]},{'name':_0xeb5f('0xf'),'fields':[_0xeb5f('0xf')]}],'timestamps':!![]});};