Built motion from commit 25580385.|2.6.2
[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 _0x55b9=['../../config/environment','./squareReport.attributes','report_square','uid_pname','uniqueid','project_name','leaveAt','lodash','util','api','moment','bluebird','request-promise','path'];(function(_0x2c7f2b,_0x3c384a){var _0x6a1787=function(_0x550c70){while(--_0x550c70){_0x2c7f2b['push'](_0x2c7f2b['shift']());}};_0x6a1787(++_0x3c384a);}(_0x55b9,0xcb));var _0x955b=function(_0x48954b,_0x1a1dfb){_0x48954b=_0x48954b-0x0;var _0x1e8ef2=_0x55b9[_0x48954b];return _0x1e8ef2;};'use strict';var _=require(_0x955b('0x0'));var util=require(_0x955b('0x1'));var logger=require('../../config/logger')(_0x955b('0x2'));var moment=require(_0x955b('0x3'));var BPromise=require(_0x955b('0x4'));var rp=require(_0x955b('0x5'));var fs=require('fs');var path=require(_0x955b('0x6'));var rimraf=require('rimraf');var config=require(_0x955b('0x7'));var attributes=require(_0x955b('0x8'));module['exports']=function(_0x244141,_0x577954){return _0x244141['define']('SquareReport',attributes,{'tableName':_0x955b('0x9'),'paranoid':![],'indexes':[{'name':_0x955b('0xa'),'fields':[_0x955b('0xb'),_0x955b('0xc')]},{'name':_0x955b('0xd'),'fields':['leaveAt']}],'timestamps':!![]});};