5428d8dcd68253b25682aafe87cfc80dba9cd0c2
[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 _0x356b=['./squareReport.attributes','exports','define','SquareReport','report_square','uid_pname','uniqueid','project_name','leaveAt','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf'];(function(_0x340942,_0x5b35f0){var _0x3b10d5=function(_0x5252fa){while(--_0x5252fa){_0x340942['push'](_0x340942['shift']());}};_0x3b10d5(++_0x5b35f0);}(_0x356b,0x13b));var _0xb356=function(_0x4ca445,_0x38e103){_0x4ca445=_0x4ca445-0x0;var _0x3a6ff7=_0x356b[_0x4ca445];return _0x3a6ff7;};'use strict';var _=require(_0xb356('0x0'));var util=require(_0xb356('0x1'));var logger=require(_0xb356('0x2'))(_0xb356('0x3'));var moment=require(_0xb356('0x4'));var BPromise=require(_0xb356('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xb356('0x6'));var rimraf=require(_0xb356('0x7'));var config=require('../../config/environment');var attributes=require(_0xb356('0x8'));module[_0xb356('0x9')]=function(_0x968168,_0x5f53b0){return _0x968168[_0xb356('0xa')](_0xb356('0xb'),attributes,{'tableName':_0xb356('0xc'),'paranoid':![],'indexes':[{'name':_0xb356('0xd'),'fields':[_0xb356('0xe'),_0xb356('0xf')]},{'name':_0xb356('0x10'),'fields':[_0xb356('0x10')]}],'timestamps':!![]});};