4e735d95f1b9bbc23325cada77f7c67267d69065
[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 _0xfc2e=['api','moment','bluebird','path','rimraf','../../config/environment','./squareReport.attributes','exports','define','uid_pname','uniqueid','project_name','leaveAt','util'];(function(_0x4be669,_0x28a697){var _0x2e1141=function(_0x35b7de){while(--_0x35b7de){_0x4be669['push'](_0x4be669['shift']());}};_0x2e1141(++_0x28a697);}(_0xfc2e,0xdf));var _0xefc2=function(_0x290675,_0xe20764){_0x290675=_0x290675-0x0;var _0x56758d=_0xfc2e[_0x290675];return _0x56758d;};'use strict';var _=require('lodash');var util=require(_0xefc2('0x0'));var logger=require('../../config/logger')(_0xefc2('0x1'));var moment=require(_0xefc2('0x2'));var BPromise=require(_0xefc2('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xefc2('0x4'));var rimraf=require(_0xefc2('0x5'));var config=require(_0xefc2('0x6'));var attributes=require(_0xefc2('0x7'));module[_0xefc2('0x8')]=function(_0x4285e6,_0x4b1c62){return _0x4285e6[_0xefc2('0x9')]('SquareReport',attributes,{'tableName':'report_square','paranoid':![],'indexes':[{'name':_0xefc2('0xa'),'fields':[_0xefc2('0xb'),_0xefc2('0xc')]},{'name':_0xefc2('0xd'),'fields':['leaveAt']}],'timestamps':!![]});};