Built motion from commit (unavailable).|2.5.8
[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 _0xac50=['../../config/logger','api','request-promise','path','rimraf','../../config/environment','exports','define','ChatTransferReport','lodash'];(function(_0x3899d1,_0x4aa04c){var _0xeb4a7d=function(_0x3ea5ee){while(--_0x3ea5ee){_0x3899d1['push'](_0x3899d1['shift']());}};_0xeb4a7d(++_0x4aa04c);}(_0xac50,0x8b));var _0x0ac5=function(_0x565ed7,_0x398228){_0x565ed7=_0x565ed7-0x0;var _0x183ad7=_0xac50[_0x565ed7];return _0x183ad7;};'use strict';var _=require(_0x0ac5('0x0'));var util=require('util');var logger=require(_0x0ac5('0x1'))(_0x0ac5('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x0ac5('0x3'));var fs=require('fs');var path=require(_0x0ac5('0x4'));var rimraf=require(_0x0ac5('0x5'));var config=require(_0x0ac5('0x6'));var attributes=require('./chatTransferReport.attributes');module[_0x0ac5('0x7')]=function(_0x2f3cc5,_0x1bb208){return _0x2f3cc5[_0x0ac5('0x8')](_0x0ac5('0x9'),attributes,{'tableName':'report_chat_transfer','paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};