Built motion from commit (unavailable).|2.5.30
[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 _0xfc2c=['define','ChatTransferReport','report_chat_transfer','uniqueid','util','api','moment','bluebird','rimraf','../../config/environment','exports'];(function(_0x217a49,_0x3029df){var _0x5c4f4f=function(_0x8232a5){while(--_0x8232a5){_0x217a49['push'](_0x217a49['shift']());}};_0x5c4f4f(++_0x3029df);}(_0xfc2c,0xa9));var _0xcfc2=function(_0x3152be,_0x181f61){_0x3152be=_0x3152be-0x0;var _0xca3c3b=_0xfc2c[_0x3152be];return _0xca3c3b;};'use strict';var _=require('lodash');var util=require(_0xcfc2('0x0'));var logger=require('../../config/logger')(_0xcfc2('0x1'));var moment=require(_0xcfc2('0x2'));var BPromise=require(_0xcfc2('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xcfc2('0x4'));var config=require(_0xcfc2('0x5'));var attributes=require('./chatTransferReport.attributes');module[_0xcfc2('0x6')]=function(_0x5ebdcd,_0x1a2084){return _0x5ebdcd[_0xcfc2('0x7')](_0xcfc2('0x8'),attributes,{'tableName':_0xcfc2('0x9'),'paranoid':![],'indexes':[{'name':_0xcfc2('0xa'),'fields':[_0xcfc2('0xa')]}],'timestamps':!![]});};