c0515d00a650f0731fc50513c697a98021f41a93
[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 _0xac4b=['ChatTransferReport','report_chat_transfer','uniqueid','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','./chatTransferReport.attributes','exports','define'];(function(_0x136846,_0xc9ba49){var _0x16e0d2=function(_0x1d7824){while(--_0x1d7824){_0x136846['push'](_0x136846['shift']());}};_0x16e0d2(++_0xc9ba49);}(_0xac4b,0xc6));var _0xbac4=function(_0x2e2236,_0x56e98b){_0x2e2236=_0x2e2236-0x0;var _0x1e7d54=_0xac4b[_0x2e2236];return _0x1e7d54;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xbac4('0x0'))(_0xbac4('0x1'));var moment=require(_0xbac4('0x2'));var BPromise=require(_0xbac4('0x3'));var rp=require(_0xbac4('0x4'));var fs=require('fs');var path=require(_0xbac4('0x5'));var rimraf=require(_0xbac4('0x6'));var config=require('../../config/environment');var attributes=require(_0xbac4('0x7'));module[_0xbac4('0x8')]=function(_0x34b9fc,_0x2f0c06){return _0x34b9fc[_0xbac4('0x9')](_0xbac4('0xa'),attributes,{'tableName':_0xbac4('0xb'),'paranoid':![],'indexes':[{'name':_0xbac4('0xc'),'fields':[_0xbac4('0xc')]}],'timestamps':!![]});};