Built motion from commit da24aabd.|2.6.20
[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 _0xf36b=['project_name','leaveAt','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','./squareReport.attributes','define','report_square','uid_pname','uniqueid'];(function(_0x1d357f,_0x2a064){var _0x425d68=function(_0x3418e1){while(--_0x3418e1){_0x1d357f['push'](_0x1d357f['shift']());}};_0x425d68(++_0x2a064);}(_0xf36b,0x110));var _0xbf36=function(_0xdcb4e4,_0xb3d63c){_0xdcb4e4=_0xdcb4e4-0x0;var _0x105a6b=_0xf36b[_0xdcb4e4];return _0x105a6b;};'use strict';var _=require(_0xbf36('0x0'));var util=require(_0xbf36('0x1'));var logger=require(_0xbf36('0x2'))(_0xbf36('0x3'));var moment=require(_0xbf36('0x4'));var BPromise=require(_0xbf36('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xbf36('0x6'));var rimraf=require(_0xbf36('0x7'));var config=require('../../config/environment');var attributes=require(_0xbf36('0x8'));module['exports']=function(_0x5a793b,_0x39d5f9){return _0x5a793b[_0xbf36('0x9')]('SquareReport',attributes,{'tableName':_0xbf36('0xa'),'paranoid':![],'indexes':[{'name':_0xbf36('0xb'),'fields':[_0xbf36('0xc'),_0xbf36('0xd')]},{'name':_0xbf36('0xe'),'fields':[_0xbf36('0xe')]}],'timestamps':!![]});};