Built motion from commit 0900f080.|2.5.45
[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 _0xa00e=['report_square','uid_pname','uniqueid','project_name','leaveAt','lodash','util','moment','bluebird','request-promise','path','rimraf','define','SquareReport'];(function(_0x1effb9,_0x37dccf){var _0x450c15=function(_0x2de889){while(--_0x2de889){_0x1effb9['push'](_0x1effb9['shift']());}};_0x450c15(++_0x37dccf);}(_0xa00e,0x17f));var _0xea00=function(_0x27243f,_0x4685db){_0x27243f=_0x27243f-0x0;var _0x5c9b05=_0xa00e[_0x27243f];return _0x5c9b05;};'use strict';var _=require(_0xea00('0x0'));var util=require(_0xea00('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xea00('0x2'));var BPromise=require(_0xea00('0x3'));var rp=require(_0xea00('0x4'));var fs=require('fs');var path=require(_0xea00('0x5'));var rimraf=require(_0xea00('0x6'));var config=require('../../config/environment');var attributes=require('./squareReport.attributes');module['exports']=function(_0x5b47d4,_0x41a524){return _0x5b47d4[_0xea00('0x7')](_0xea00('0x8'),attributes,{'tableName':_0xea00('0x9'),'paranoid':![],'indexes':[{'name':_0xea00('0xa'),'fields':[_0xea00('0xb'),_0xea00('0xc')]},{'name':_0xea00('0xd'),'fields':[_0xea00('0xd')]}],'timestamps':!![]});};