f425d060f8941555c695418c60b16ee32ad93edd
[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 _0x89a7=['../../config/environment','./squareReport.attributes','exports','define','SquareReport','report_square','uniqueid','project_name','leaveAt','lodash','api','moment','bluebird','request-promise','rimraf'];(function(_0x15709b,_0x537ee3){var _0x2a2192=function(_0xa0dfc1){while(--_0xa0dfc1){_0x15709b['push'](_0x15709b['shift']());}};_0x2a2192(++_0x537ee3);}(_0x89a7,0xdb));var _0x789a=function(_0x139c5a,_0x33b685){_0x139c5a=_0x139c5a-0x0;var _0x11934c=_0x89a7[_0x139c5a];return _0x11934c;};'use strict';var _=require(_0x789a('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x789a('0x1'));var moment=require(_0x789a('0x2'));var BPromise=require(_0x789a('0x3'));var rp=require(_0x789a('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x789a('0x5'));var config=require(_0x789a('0x6'));var attributes=require(_0x789a('0x7'));module[_0x789a('0x8')]=function(_0x230754,_0x4671fe){return _0x230754[_0x789a('0x9')](_0x789a('0xa'),attributes,{'tableName':_0x789a('0xb'),'paranoid':![],'indexes':[{'name':'uid_pname','fields':[_0x789a('0xc'),_0x789a('0xd')]},{'name':_0x789a('0xe'),'fields':['leaveAt']}],'timestamps':!![]});};