Built motion from commit 3d6333b4.|2.6.31
[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 _0x37df=['api','request-promise','../../config/environment','./squareReport.attributes','exports','define','SquareReport','report_square','uid_pname','uniqueid','project_name','leaveAt','lodash','../../config/logger'];(function(_0x428046,_0xed9fb2){var _0x196ec1=function(_0x2fcf36){while(--_0x2fcf36){_0x428046['push'](_0x428046['shift']());}};_0x196ec1(++_0xed9fb2);}(_0x37df,0x16a));var _0xf37d=function(_0x30c649,_0x2ebbac){_0x30c649=_0x30c649-0x0;var _0x3edfb9=_0x37df[_0x30c649];return _0x3edfb9;};'use strict';var _=require(_0xf37d('0x0'));var util=require('util');var logger=require(_0xf37d('0x1'))(_0xf37d('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xf37d('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xf37d('0x4'));var attributes=require(_0xf37d('0x5'));module[_0xf37d('0x6')]=function(_0x295f8d,_0x4d0596){return _0x295f8d[_0xf37d('0x7')](_0xf37d('0x8'),attributes,{'tableName':_0xf37d('0x9'),'paranoid':![],'indexes':[{'name':_0xf37d('0xa'),'fields':[_0xf37d('0xb'),_0xf37d('0xc')]},{'name':'leaveAt','fields':[_0xf37d('0xd')]}],'timestamps':!![]});};