0d38cb418698651e5a41dbba58165bb04372096f
[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 _0x091d=['project_name','leaveAt','lodash','util','../../config/logger','api','moment','request-promise','path','rimraf','./squareReport.attributes','exports','define','SquareReport','report_square','uid_pname','uniqueid'];(function(_0x5171a8,_0x468b88){var _0x2da013=function(_0x3d7be0){while(--_0x3d7be0){_0x5171a8['push'](_0x5171a8['shift']());}};_0x2da013(++_0x468b88);}(_0x091d,0xac));var _0xd091=function(_0x2eb955,_0x392f85){_0x2eb955=_0x2eb955-0x0;var _0x28f9d4=_0x091d[_0x2eb955];return _0x28f9d4;};'use strict';var _=require(_0xd091('0x0'));var util=require(_0xd091('0x1'));var logger=require(_0xd091('0x2'))(_0xd091('0x3'));var moment=require(_0xd091('0x4'));var BPromise=require('bluebird');var rp=require(_0xd091('0x5'));var fs=require('fs');var path=require(_0xd091('0x6'));var rimraf=require(_0xd091('0x7'));var config=require('../../config/environment');var attributes=require(_0xd091('0x8'));module[_0xd091('0x9')]=function(_0x17cb0e,_0x21a1bf){return _0x17cb0e[_0xd091('0xa')](_0xd091('0xb'),attributes,{'tableName':_0xd091('0xc'),'paranoid':![],'indexes':[{'name':_0xd091('0xd'),'fields':[_0xd091('0xe'),_0xd091('0xf')]},{'name':_0xd091('0x10'),'fields':['leaveAt']}],'timestamps':!![]});};