da62e721605e513219319ca1296bf15e005e6ea1
[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 _0xc130=['api','moment','bluebird','path','rimraf','./chatTransferReport.attributes','exports','define','ChatTransferReport','report_chat_transfer','uniqueid','lodash','util','../../config/logger'];(function(_0x36f486,_0x938bc6){var _0x39e0d3=function(_0x2c1118){while(--_0x2c1118){_0x36f486['push'](_0x36f486['shift']());}};_0x39e0d3(++_0x938bc6);}(_0xc130,0x115));var _0x0c13=function(_0xda5792,_0x527e2a){_0xda5792=_0xda5792-0x0;var _0x28ecb3=_0xc130[_0xda5792];return _0x28ecb3;};'use strict';var _=require(_0x0c13('0x0'));var util=require(_0x0c13('0x1'));var logger=require(_0x0c13('0x2'))(_0x0c13('0x3'));var moment=require(_0x0c13('0x4'));var BPromise=require(_0x0c13('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0c13('0x6'));var rimraf=require(_0x0c13('0x7'));var config=require('../../config/environment');var attributes=require(_0x0c13('0x8'));module[_0x0c13('0x9')]=function(_0x5e1fa9,_0x502fee){return _0x5e1fa9[_0x0c13('0xa')](_0x0c13('0xb'),attributes,{'tableName':_0x0c13('0xc'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x0c13('0xd')]}],'timestamps':!![]});};