b2719c274042cbf0c515b794dadbebbe3600a355
[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 _0x43f7=['rimraf','../../config/environment','./squareReport.attributes','exports','define','SquareReport','report_square','uid_pname','uniqueid','project_name','leaveAt','util','../../config/logger','api','moment','bluebird','path'];(function(_0x567150,_0x432dbe){var _0x4cdf89=function(_0x5ee077){while(--_0x5ee077){_0x567150['push'](_0x567150['shift']());}};_0x4cdf89(++_0x432dbe);}(_0x43f7,0xf9));var _0x743f=function(_0x69f2b7,_0x202dd6){_0x69f2b7=_0x69f2b7-0x0;var _0x4e706b=_0x43f7[_0x69f2b7];return _0x4e706b;};'use strict';var _=require('lodash');var util=require(_0x743f('0x0'));var logger=require(_0x743f('0x1'))(_0x743f('0x2'));var moment=require(_0x743f('0x3'));var BPromise=require(_0x743f('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x743f('0x5'));var rimraf=require(_0x743f('0x6'));var config=require(_0x743f('0x7'));var attributes=require(_0x743f('0x8'));module[_0x743f('0x9')]=function(_0x208654,_0x3c6cb3){return _0x208654[_0x743f('0xa')](_0x743f('0xb'),attributes,{'tableName':_0x743f('0xc'),'paranoid':![],'indexes':[{'name':_0x743f('0xd'),'fields':[_0x743f('0xe'),_0x743f('0xf')]},{'name':_0x743f('0x10'),'fields':['leaveAt']}],'timestamps':!![]});};