972dbc62e4a5e671642d31adc08c8518a8c2eb4c
[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 _0xc087=['../../config/environment','exports','ChatTransferReport','report_chat_transfer','lodash','util','../../config/logger','moment','bluebird','request-promise','path','rimraf'];(function(_0x57b54c,_0x54ce0d){var _0x59cc19=function(_0xa33bc6){while(--_0xa33bc6){_0x57b54c['push'](_0x57b54c['shift']());}};_0x59cc19(++_0x54ce0d);}(_0xc087,0x190));var _0x7c08=function(_0xc6d32b,_0x608367){_0xc6d32b=_0xc6d32b-0x0;var _0x5d773a=_0xc087[_0xc6d32b];return _0x5d773a;};'use strict';var _=require(_0x7c08('0x0'));var util=require(_0x7c08('0x1'));var logger=require(_0x7c08('0x2'))('api');var moment=require(_0x7c08('0x3'));var BPromise=require(_0x7c08('0x4'));var rp=require(_0x7c08('0x5'));var fs=require('fs');var path=require(_0x7c08('0x6'));var rimraf=require(_0x7c08('0x7'));var config=require(_0x7c08('0x8'));var attributes=require('./chatTransferReport.attributes');module[_0x7c08('0x9')]=function(_0x44ab08,_0x2bace4){return _0x44ab08['define'](_0x7c08('0xa'),attributes,{'tableName':_0x7c08('0xb'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};