Built motion from commit b5413ace.|2.6.9
[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 _0xe9a8=['define','report_chat_transfer','uniqueid','lodash','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports'];(function(_0x2d7f0e,_0x3e6fbd){var _0x110b07=function(_0x557b00){while(--_0x557b00){_0x2d7f0e['push'](_0x2d7f0e['shift']());}};_0x110b07(++_0x3e6fbd);}(_0xe9a8,0x1a3));var _0x8e9a=function(_0x8cb470,_0x2b9757){_0x8cb470=_0x8cb470-0x0;var _0x2ca139=_0xe9a8[_0x8cb470];return _0x2ca139;};'use strict';var _=require(_0x8e9a('0x0'));var util=require('util');var logger=require(_0x8e9a('0x1'))(_0x8e9a('0x2'));var moment=require(_0x8e9a('0x3'));var BPromise=require(_0x8e9a('0x4'));var rp=require(_0x8e9a('0x5'));var fs=require('fs');var path=require(_0x8e9a('0x6'));var rimraf=require(_0x8e9a('0x7'));var config=require(_0x8e9a('0x8'));var attributes=require('./chatTransferReport.attributes');module[_0x8e9a('0x9')]=function(_0xad754e,_0xcd46d5){return _0xad754e[_0x8e9a('0xa')]('ChatTransferReport',attributes,{'tableName':_0x8e9a('0xb'),'paranoid':![],'indexes':[{'name':_0x8e9a('0xc'),'fields':['uniqueid']}],'timestamps':!![]});};