53434127dd985aad7f914df26a59e81ebb8370b5
[motion2.git] / server / api / chatTransferReport / chatTransferReport.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 _0xa550=['bluebird','path','rimraf','../../config/environment','./chatTransferReport.attributes','exports','define','ChatTransferReport','report_chat_transfer','uniqueid','lodash','util','../../config/logger','api','moment'];(function(_0xe13e3c,_0x3d3bff){var _0x4024a4=function(_0x163a24){while(--_0x163a24){_0xe13e3c['push'](_0xe13e3c['shift']());}};_0x4024a4(++_0x3d3bff);}(_0xa550,0x127));var _0x0a55=function(_0x4fc212,_0x1087aa){_0x4fc212=_0x4fc212-0x0;var _0x252317=_0xa550[_0x4fc212];return _0x252317;};'use strict';var _=require(_0x0a55('0x0'));var util=require(_0x0a55('0x1'));var logger=require(_0x0a55('0x2'))(_0x0a55('0x3'));var moment=require(_0x0a55('0x4'));var BPromise=require(_0x0a55('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0a55('0x6'));var rimraf=require(_0x0a55('0x7'));var config=require(_0x0a55('0x8'));var attributes=require(_0x0a55('0x9'));module[_0x0a55('0xa')]=function(_0x2cfaef,_0x1334c3){return _0x2cfaef[_0x0a55('0xb')](_0x0a55('0xc'),attributes,{'tableName':_0x0a55('0xd'),'paranoid':![],'indexes':[{'name':_0x0a55('0xe'),'fields':[_0x0a55('0xe')]}],'timestamps':!![]});};