Built motion from commit 497d3d92.|2.5.43
[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 _0x81a0=['../../config/environment','exports','define','ChatTransferReport','report_chat_transfer','uniqueid','util','../../config/logger','bluebird','request-promise','path','rimraf'];(function(_0x30f897,_0x37455e){var _0x40bfff=function(_0x5530bf){while(--_0x5530bf){_0x30f897['push'](_0x30f897['shift']());}};_0x40bfff(++_0x37455e);}(_0x81a0,0xf6));var _0x081a=function(_0x4f2068,_0x577dcc){_0x4f2068=_0x4f2068-0x0;var _0x11957e=_0x81a0[_0x4f2068];return _0x11957e;};'use strict';var _=require('lodash');var util=require(_0x081a('0x0'));var logger=require(_0x081a('0x1'))('api');var moment=require('moment');var BPromise=require(_0x081a('0x2'));var rp=require(_0x081a('0x3'));var fs=require('fs');var path=require(_0x081a('0x4'));var rimraf=require(_0x081a('0x5'));var config=require(_0x081a('0x6'));var attributes=require('./chatTransferReport.attributes');module[_0x081a('0x7')]=function(_0x535ad3,_0x4c2087){return _0x535ad3[_0x081a('0x8')](_0x081a('0x9'),attributes,{'tableName':_0x081a('0xa'),'paranoid':![],'indexes':[{'name':_0x081a('0xb'),'fields':[_0x081a('0xb')]}],'timestamps':!![]});};