Built motion from commit (unavailable).|2.5.10
[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 _0xe468=['../../config/environment','uid_pname','uniqueid','leaveAt','lodash','util','../../config/logger','api','request-promise','rimraf'];(function(_0x4b29c5,_0x4c8316){var _0x4f8636=function(_0x74b013){while(--_0x74b013){_0x4b29c5['push'](_0x4b29c5['shift']());}};_0x4f8636(++_0x4c8316);}(_0xe468,0x1b2));var _0x8e46=function(_0x70145d,_0x520b56){_0x70145d=_0x70145d-0x0;var _0x136c17=_0xe468[_0x70145d];return _0x136c17;};'use strict';var _=require(_0x8e46('0x0'));var util=require(_0x8e46('0x1'));var logger=require(_0x8e46('0x2'))(_0x8e46('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x8e46('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x8e46('0x5'));var config=require(_0x8e46('0x6'));var attributes=require('./squareReport.attributes');module['exports']=function(_0x4294e7,_0x16b966){return _0x4294e7['define']('SquareReport',attributes,{'tableName':'report_square','paranoid':![],'indexes':[{'name':_0x8e46('0x7'),'fields':[_0x8e46('0x8'),'project_name']},{'name':_0x8e46('0x9'),'fields':[_0x8e46('0x9')]}],'timestamps':!![]});};