Built motion from commit (unavailable).|2.4.18
[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 _0xed24=['uid_pname','uniqueid','project_name','leaveAt','lodash','util','../../config/logger','api','moment','bluebird','request-promise','../../config/environment','./squareReport.attributes','exports','report_square'];(function(_0x3ec122,_0x55150a){var _0x4ecf41=function(_0x1709cd){while(--_0x1709cd){_0x3ec122['push'](_0x3ec122['shift']());}};_0x4ecf41(++_0x55150a);}(_0xed24,0x8b));var _0x4ed2=function(_0x546177,_0xfbb53){_0x546177=_0x546177-0x0;var _0x5c3720=_0xed24[_0x546177];return _0x5c3720;};'use strict';var _=require(_0x4ed2('0x0'));var util=require(_0x4ed2('0x1'));var logger=require(_0x4ed2('0x2'))(_0x4ed2('0x3'));var moment=require(_0x4ed2('0x4'));var BPromise=require(_0x4ed2('0x5'));var rp=require(_0x4ed2('0x6'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x4ed2('0x7'));var attributes=require(_0x4ed2('0x8'));module[_0x4ed2('0x9')]=function(_0x2b85ec,_0x412888){return _0x2b85ec['define']('SquareReport',attributes,{'tableName':_0x4ed2('0xa'),'paranoid':![],'indexes':[{'name':_0x4ed2('0xb'),'fields':[_0x4ed2('0xc'),_0x4ed2('0xd')]},{'name':'leaveAt','fields':[_0x4ed2('0xe')]}],'timestamps':!![]});};