Built motion from commit (unavailable).|2.5.6
[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 _0x5ae3=['path','rimraf','../../config/environment','exports','define','WhatsappTransferReport','uniqueid','lodash','util','api','moment','bluebird','request-promise'];(function(_0x385f88,_0x2402a6){var _0x56792f=function(_0x489c87){while(--_0x489c87){_0x385f88['push'](_0x385f88['shift']());}};_0x56792f(++_0x2402a6);}(_0x5ae3,0xca));var _0x35ae=function(_0x5e23bf,_0x3f3a59){_0x5e23bf=_0x5e23bf-0x0;var _0x572b89=_0x5ae3[_0x5e23bf];return _0x572b89;};'use strict';var _=require(_0x35ae('0x0'));var util=require(_0x35ae('0x1'));var logger=require('../../config/logger')(_0x35ae('0x2'));var moment=require(_0x35ae('0x3'));var BPromise=require(_0x35ae('0x4'));var rp=require(_0x35ae('0x5'));var fs=require('fs');var path=require(_0x35ae('0x6'));var rimraf=require(_0x35ae('0x7'));var config=require(_0x35ae('0x8'));var attributes=require('./whatsappTransferReport.attributes');module[_0x35ae('0x9')]=function(_0x3e11fe,_0x2a4186){return _0x3e11fe[_0x35ae('0xa')](_0x35ae('0xb'),attributes,{'tableName':'report_whatsapp_transfer','paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x35ae('0xc')]}],'timestamps':!![]});};