Built motion from commit efa66e19.|2.6.22
[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 _0xdf6a=['util','../../config/logger','api','moment','bluebird','request-promise','rimraf','./squareReport.attributes','exports','define','report_square','uid_pname','uniqueid','project_name','leaveAt','lodash'];(function(_0x35c122,_0x468833){var _0x4940f2=function(_0x2150a2){while(--_0x2150a2){_0x35c122['push'](_0x35c122['shift']());}};_0x4940f2(++_0x468833);}(_0xdf6a,0xff));var _0xadf6=function(_0x217f80,_0x20e335){_0x217f80=_0x217f80-0x0;var _0x22a488=_0xdf6a[_0x217f80];return _0x22a488;};'use strict';var _=require(_0xadf6('0x0'));var util=require(_0xadf6('0x1'));var logger=require(_0xadf6('0x2'))(_0xadf6('0x3'));var moment=require(_0xadf6('0x4'));var BPromise=require(_0xadf6('0x5'));var rp=require(_0xadf6('0x6'));var fs=require('fs');var path=require('path');var rimraf=require(_0xadf6('0x7'));var config=require('../../config/environment');var attributes=require(_0xadf6('0x8'));module[_0xadf6('0x9')]=function(_0x2146da,_0x91b35e){return _0x2146da[_0xadf6('0xa')]('SquareReport',attributes,{'tableName':_0xadf6('0xb'),'paranoid':![],'indexes':[{'name':_0xadf6('0xc'),'fields':[_0xadf6('0xd'),_0xadf6('0xe')]},{'name':_0xadf6('0xf'),'fields':[_0xadf6('0xf')]}],'timestamps':!![]});};