19f82a4f8cfb86529885c92f238e635d780a509c
[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 _0xe847=['lodash','util','../../config/logger','moment','bluebird','path','rimraf','../../config/environment','define','ChatTransferReport','uniqueid'];(function(_0x36c5b0,_0x5001da){var _0xf19333=function(_0x1e880a){while(--_0x1e880a){_0x36c5b0['push'](_0x36c5b0['shift']());}};_0xf19333(++_0x5001da);}(_0xe847,0x6e));var _0x7e84=function(_0x18c979,_0x2aaec4){_0x18c979=_0x18c979-0x0;var _0x219c54=_0xe847[_0x18c979];return _0x219c54;};'use strict';var _=require(_0x7e84('0x0'));var util=require(_0x7e84('0x1'));var logger=require(_0x7e84('0x2'))('api');var moment=require(_0x7e84('0x3'));var BPromise=require(_0x7e84('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x7e84('0x5'));var rimraf=require(_0x7e84('0x6'));var config=require(_0x7e84('0x7'));var attributes=require('./chatTransferReport.attributes');module['exports']=function(_0xa38e39,_0xcde499){return _0xa38e39[_0x7e84('0x8')](_0x7e84('0x9'),attributes,{'tableName':'report_chat_transfer','paranoid':![],'indexes':[{'name':_0x7e84('0xa'),'fields':['uniqueid']}],'timestamps':!![]});};