Built motion from commit (unavailable).|2.5.4
[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 _0xc4f4=['exports','SquareReport','uid_pname','uniqueid','project_name','leaveAt','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./squareReport.attributes'];(function(_0x6c993a,_0x5ea3ab){var _0x27f547=function(_0x22df20){while(--_0x22df20){_0x6c993a['push'](_0x6c993a['shift']());}};_0x27f547(++_0x5ea3ab);}(_0xc4f4,0x17c));var _0x4c4f=function(_0x6131cd,_0x4c26a1){_0x6131cd=_0x6131cd-0x0;var _0x47e916=_0xc4f4[_0x6131cd];return _0x47e916;};'use strict';var _=require(_0x4c4f('0x0'));var util=require(_0x4c4f('0x1'));var logger=require(_0x4c4f('0x2'))(_0x4c4f('0x3'));var moment=require(_0x4c4f('0x4'));var BPromise=require(_0x4c4f('0x5'));var rp=require(_0x4c4f('0x6'));var fs=require('fs');var path=require(_0x4c4f('0x7'));var rimraf=require(_0x4c4f('0x8'));var config=require(_0x4c4f('0x9'));var attributes=require(_0x4c4f('0xa'));module[_0x4c4f('0xb')]=function(_0x2bcc09,_0x5727ae){return _0x2bcc09['define'](_0x4c4f('0xc'),attributes,{'tableName':'report_square','paranoid':![],'indexes':[{'name':_0x4c4f('0xd'),'fields':[_0x4c4f('0xe'),_0x4c4f('0xf')]},{'name':_0x4c4f('0x10'),'fields':['leaveAt']}],'timestamps':!![]});};