777fe266af2ecdd0d25fd701a2457fedcf149310
[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 _0xe447=['request-promise','../../config/environment','./squareReport.attributes','exports','define','SquareReport','uid_pname','project_name','leaveAt','lodash','../../config/logger','moment'];(function(_0x1ca9eb,_0x99a10b){var _0x2e284e=function(_0x1196a4){while(--_0x1196a4){_0x1ca9eb['push'](_0x1ca9eb['shift']());}};_0x2e284e(++_0x99a10b);}(_0xe447,0x141));var _0x7e44=function(_0x22f9c0,_0x35410c){_0x22f9c0=_0x22f9c0-0x0;var _0x1883fe=_0xe447[_0x22f9c0];return _0x1883fe;};'use strict';var _=require(_0x7e44('0x0'));var util=require('util');var logger=require(_0x7e44('0x1'))('api');var moment=require(_0x7e44('0x2'));var BPromise=require('bluebird');var rp=require(_0x7e44('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x7e44('0x4'));var attributes=require(_0x7e44('0x5'));module[_0x7e44('0x6')]=function(_0x5a198e,_0x41d39b){return _0x5a198e[_0x7e44('0x7')](_0x7e44('0x8'),attributes,{'tableName':'report_square','paranoid':![],'indexes':[{'name':_0x7e44('0x9'),'fields':['uniqueid',_0x7e44('0xa')]},{'name':'leaveAt','fields':[_0x7e44('0xb')]}],'timestamps':!![]});};