Built motion from commit 19a84241.|2.5.34
[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 _0xfa40=['leaveAt','lodash','util','../../config/logger','api','moment','bluebird','../../config/environment','./squareReport.attributes','define','report_square','uniqueid','project_name'];(function(_0x43b22b,_0xea722c){var _0xd4e124=function(_0x271814){while(--_0x271814){_0x43b22b['push'](_0x43b22b['shift']());}};_0xd4e124(++_0xea722c);}(_0xfa40,0x9d));var _0x0fa4=function(_0x187ee1,_0x3fd1e6){_0x187ee1=_0x187ee1-0x0;var _0x388160=_0xfa40[_0x187ee1];return _0x388160;};'use strict';var _=require(_0x0fa4('0x0'));var util=require(_0x0fa4('0x1'));var logger=require(_0x0fa4('0x2'))(_0x0fa4('0x3'));var moment=require(_0x0fa4('0x4'));var BPromise=require(_0x0fa4('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x0fa4('0x6'));var attributes=require(_0x0fa4('0x7'));module['exports']=function(_0x2c70df,_0x48f115){return _0x2c70df[_0x0fa4('0x8')]('SquareReport',attributes,{'tableName':_0x0fa4('0x9'),'paranoid':![],'indexes':[{'name':'uid_pname','fields':[_0x0fa4('0xa'),_0x0fa4('0xb')]},{'name':_0x0fa4('0xc'),'fields':[_0x0fa4('0xc')]}],'timestamps':!![]});};