Built motion from commit e6806ed6.|2.6.0
[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 _0x1406=['uniqueid','util','api','bluebird','request-promise','path','exports','define','WhatsappTransferReport'];(function(_0x4618a1,_0x5f16ee){var _0x13857b=function(_0x5a1290){while(--_0x5a1290){_0x4618a1['push'](_0x4618a1['shift']());}};_0x13857b(++_0x5f16ee);}(_0x1406,0x1e7));var _0x6140=function(_0x2e5254,_0x52b14f){_0x2e5254=_0x2e5254-0x0;var _0x3b36df=_0x1406[_0x2e5254];return _0x3b36df;};'use strict';var _=require('lodash');var util=require(_0x6140('0x0'));var logger=require('../../config/logger')(_0x6140('0x1'));var moment=require('moment');var BPromise=require(_0x6140('0x2'));var rp=require(_0x6140('0x3'));var fs=require('fs');var path=require(_0x6140('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./whatsappTransferReport.attributes');module[_0x6140('0x5')]=function(_0x2b74f9,_0x5a1f18){return _0x2b74f9[_0x6140('0x6')](_0x6140('0x7'),attributes,{'tableName':'report_whatsapp_transfer','paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x6140('0x8')]}],'timestamps':!![]});};