Built motion from commit (unavailable).|2.5.0
[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 _0xe523=['exports','define','SquareReport','report_square','uid_pname','uniqueid','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./squareReport.attributes'];(function(_0x18f6cb,_0x1ee225){var _0x293e92=function(_0x1b5882){while(--_0x1b5882){_0x18f6cb['push'](_0x18f6cb['shift']());}};_0x293e92(++_0x1ee225);}(_0xe523,0x92));var _0x3e52=function(_0x20d9f4,_0x4a50c9){_0x20d9f4=_0x20d9f4-0x0;var _0x308465=_0xe523[_0x20d9f4];return _0x308465;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x3e52('0x0'))(_0x3e52('0x1'));var moment=require('moment');var BPromise=require(_0x3e52('0x2'));var rp=require(_0x3e52('0x3'));var fs=require('fs');var path=require(_0x3e52('0x4'));var rimraf=require(_0x3e52('0x5'));var config=require(_0x3e52('0x6'));var attributes=require(_0x3e52('0x7'));module[_0x3e52('0x8')]=function(_0x1a80f0,_0x362d41){return _0x1a80f0[_0x3e52('0x9')](_0x3e52('0xa'),attributes,{'tableName':_0x3e52('0xb'),'paranoid':![],'indexes':[{'name':_0x3e52('0xc'),'fields':[_0x3e52('0xd'),'project_name']},{'name':'leaveAt','fields':['leaveAt']}],'timestamps':!![]});};