Built motion from commit (unavailable).|2.5.7
[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 _0xde5d=['rimraf','./squareReport.attributes','exports','define','SquareReport','uniqueid','project_name','leaveAt','lodash','util','api','moment','bluebird','request-promise','path'];(function(_0x3a6f38,_0x105a88){var _0x1e06ae=function(_0x2e4478){while(--_0x2e4478){_0x3a6f38['push'](_0x3a6f38['shift']());}};_0x1e06ae(++_0x105a88);}(_0xde5d,0x134));var _0xdde5=function(_0x465028,_0x4570ac){_0x465028=_0x465028-0x0;var _0xb783d4=_0xde5d[_0x465028];return _0xb783d4;};'use strict';var _=require(_0xdde5('0x0'));var util=require(_0xdde5('0x1'));var logger=require('../../config/logger')(_0xdde5('0x2'));var moment=require(_0xdde5('0x3'));var BPromise=require(_0xdde5('0x4'));var rp=require(_0xdde5('0x5'));var fs=require('fs');var path=require(_0xdde5('0x6'));var rimraf=require(_0xdde5('0x7'));var config=require('../../config/environment');var attributes=require(_0xdde5('0x8'));module[_0xdde5('0x9')]=function(_0x486afa,_0xc5cda0){return _0x486afa[_0xdde5('0xa')](_0xdde5('0xb'),attributes,{'tableName':'report_square','paranoid':![],'indexes':[{'name':'uid_pname','fields':[_0xdde5('0xc'),_0xdde5('0xd')]},{'name':_0xdde5('0xe'),'fields':[_0xdde5('0xe')]}],'timestamps':!![]});};