333a08c729c37a3438e416accdcacf8fbab3bbc6
[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 _0x7bb2=['rimraf','../../config/environment','./squareReport.attributes','exports','define','SquareReport','report_square','uid_pname','uniqueid','project_name','util','../../config/logger','moment','bluebird','request-promise','path'];(function(_0x199b25,_0x3fc103){var _0x364eff=function(_0x129255){while(--_0x129255){_0x199b25['push'](_0x199b25['shift']());}};_0x364eff(++_0x3fc103);}(_0x7bb2,0x10a));var _0x27bb=function(_0x14c811,_0x123bee){_0x14c811=_0x14c811-0x0;var _0x31c0a9=_0x7bb2[_0x14c811];return _0x31c0a9;};'use strict';var _=require('lodash');var util=require(_0x27bb('0x0'));var logger=require(_0x27bb('0x1'))('api');var moment=require(_0x27bb('0x2'));var BPromise=require(_0x27bb('0x3'));var rp=require(_0x27bb('0x4'));var fs=require('fs');var path=require(_0x27bb('0x5'));var rimraf=require(_0x27bb('0x6'));var config=require(_0x27bb('0x7'));var attributes=require(_0x27bb('0x8'));module[_0x27bb('0x9')]=function(_0x5bd3c0,_0x5b3071){return _0x5bd3c0[_0x27bb('0xa')](_0x27bb('0xb'),attributes,{'tableName':_0x27bb('0xc'),'paranoid':![],'indexes':[{'name':_0x27bb('0xd'),'fields':[_0x27bb('0xe'),_0x27bb('0xf')]},{'name':'leaveAt','fields':['leaveAt']}],'timestamps':!![]});};