e1318378f97652d38715e779fb6f11fe1196f141
[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 _0xe4a2=['define','ChatTransferReport','report_chat_transfer','uniqueid','util','../../config/logger','moment','rimraf','../../config/environment','exports'];(function(_0x5b8df9,_0x298d9c){var _0x43b942=function(_0x517bfa){while(--_0x517bfa){_0x5b8df9['push'](_0x5b8df9['shift']());}};_0x43b942(++_0x298d9c);}(_0xe4a2,0xd6));var _0x2e4a=function(_0x2ec7ac,_0x3e44ae){_0x2ec7ac=_0x2ec7ac-0x0;var _0x2f5783=_0xe4a2[_0x2ec7ac];return _0x2f5783;};'use strict';var _=require('lodash');var util=require(_0x2e4a('0x0'));var logger=require(_0x2e4a('0x1'))('api');var moment=require(_0x2e4a('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x2e4a('0x3'));var config=require(_0x2e4a('0x4'));var attributes=require('./chatTransferReport.attributes');module[_0x2e4a('0x5')]=function(_0x3dbf33,_0x2b93ce){return _0x3dbf33[_0x2e4a('0x6')](_0x2e4a('0x7'),attributes,{'tableName':_0x2e4a('0x8'),'paranoid':![],'indexes':[{'name':_0x2e4a('0x9'),'fields':[_0x2e4a('0x9')]}],'timestamps':!![]});};