Built motion from commit (unavailable).|2.4.21
[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 _0x6370=['report_square','uid_pname','project_name','leaveAt','lodash','util','../../config/logger','moment','request-promise','path','rimraf','define'];(function(_0x3e2489,_0x41d9dd){var _0x2254ce=function(_0x227e46){while(--_0x227e46){_0x3e2489['push'](_0x3e2489['shift']());}};_0x2254ce(++_0x41d9dd);}(_0x6370,0xf4));var _0x0637=function(_0x151b2a,_0x2b88b8){_0x151b2a=_0x151b2a-0x0;var _0x5c2c04=_0x6370[_0x151b2a];return _0x5c2c04;};'use strict';var _=require(_0x0637('0x0'));var util=require(_0x0637('0x1'));var logger=require(_0x0637('0x2'))('api');var moment=require(_0x0637('0x3'));var BPromise=require('bluebird');var rp=require(_0x0637('0x4'));var fs=require('fs');var path=require(_0x0637('0x5'));var rimraf=require(_0x0637('0x6'));var config=require('../../config/environment');var attributes=require('./squareReport.attributes');module['exports']=function(_0x5610ed,_0x58d7ae){return _0x5610ed[_0x0637('0x7')]('SquareReport',attributes,{'tableName':_0x0637('0x8'),'paranoid':![],'indexes':[{'name':_0x0637('0x9'),'fields':['uniqueid',_0x0637('0xa')]},{'name':'leaveAt','fields':[_0x0637('0xb')]}],'timestamps':!![]});};