a44b7ead713866b4fb0527f7ad04bbd4968c15cd
[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 _0xc207=['moment','bluebird','request-promise','path','../../config/environment','./squareReport.attributes','SquareReport','report_square','uid_pname','uniqueid','project_name','api'];(function(_0x29e7fb,_0x5b2ff3){var _0x171dad=function(_0x3ddce4){while(--_0x3ddce4){_0x29e7fb['push'](_0x29e7fb['shift']());}};_0x171dad(++_0x5b2ff3);}(_0xc207,0xcb));var _0x7c20=function(_0x12b859,_0x40804e){_0x12b859=_0x12b859-0x0;var _0x867976=_0xc207[_0x12b859];return _0x867976;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0x7c20('0x0'));var moment=require(_0x7c20('0x1'));var BPromise=require(_0x7c20('0x2'));var rp=require(_0x7c20('0x3'));var fs=require('fs');var path=require(_0x7c20('0x4'));var rimraf=require('rimraf');var config=require(_0x7c20('0x5'));var attributes=require(_0x7c20('0x6'));module['exports']=function(_0x4e85e8,_0x66c6a9){return _0x4e85e8['define'](_0x7c20('0x7'),attributes,{'tableName':_0x7c20('0x8'),'paranoid':![],'indexes':[{'name':_0x7c20('0x9'),'fields':[_0x7c20('0xa'),_0x7c20('0xb')]},{'name':'leaveAt','fields':['leaveAt']}],'timestamps':!![]});};