0dab479da42950911dd34055663e8814b0f0a9ae
[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 _0x94cb=['path','rimraf','../../config/environment','./squareReport.attributes','exports','SquareReport','report_square','uid_pname','uniqueid','leaveAt','lodash','../../config/logger','api','moment','request-promise'];(function(_0x397cfb,_0xb8f317){var _0x15fed9=function(_0x3eba43){while(--_0x3eba43){_0x397cfb['push'](_0x397cfb['shift']());}};_0x15fed9(++_0xb8f317);}(_0x94cb,0x82));var _0xb94c=function(_0xb67250,_0x4417d3){_0xb67250=_0xb67250-0x0;var _0x26f76e=_0x94cb[_0xb67250];return _0x26f76e;};'use strict';var _=require(_0xb94c('0x0'));var util=require('util');var logger=require(_0xb94c('0x1'))(_0xb94c('0x2'));var moment=require(_0xb94c('0x3'));var BPromise=require('bluebird');var rp=require(_0xb94c('0x4'));var fs=require('fs');var path=require(_0xb94c('0x5'));var rimraf=require(_0xb94c('0x6'));var config=require(_0xb94c('0x7'));var attributes=require(_0xb94c('0x8'));module[_0xb94c('0x9')]=function(_0x3e1122,_0x547c67){return _0x3e1122['define'](_0xb94c('0xa'),attributes,{'tableName':_0xb94c('0xb'),'paranoid':![],'indexes':[{'name':_0xb94c('0xc'),'fields':[_0xb94c('0xd'),'project_name']},{'name':_0xb94c('0xe'),'fields':['leaveAt']}],'timestamps':!![]});};