Built motion from commit 994c64e1.|2.6.1
[motion2.git] / server / api / whatsappTransferReport / whatsappTransferReport.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 _0xaa28=['../../config/logger','api','rimraf','./whatsappTransferReport.attributes','exports','define','WhatsappTransferReport','report_whatsapp_transfer','uniqueid','lodash','util'];(function(_0x49be9d,_0x53fcd4){var _0x313bca=function(_0x119f7a){while(--_0x119f7a){_0x49be9d['push'](_0x49be9d['shift']());}};_0x313bca(++_0x53fcd4);}(_0xaa28,0x1e2));var _0x8aa2=function(_0x3cf4d3,_0x48065e){_0x3cf4d3=_0x3cf4d3-0x0;var _0x4e547b=_0xaa28[_0x3cf4d3];return _0x4e547b;};'use strict';var _=require(_0x8aa2('0x0'));var util=require(_0x8aa2('0x1'));var logger=require(_0x8aa2('0x2'))(_0x8aa2('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x8aa2('0x4'));var config=require('../../config/environment');var attributes=require(_0x8aa2('0x5'));module[_0x8aa2('0x6')]=function(_0xd7b3c5,_0x329e09){return _0xd7b3c5[_0x8aa2('0x7')](_0x8aa2('0x8'),attributes,{'tableName':_0x8aa2('0x9'),'paranoid':![],'indexes':[{'name':_0x8aa2('0xa'),'fields':['uniqueid']}],'timestamps':!![]});};