2c996913a8b5d936276f513d9ce067a8f672927e
[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 _0xd16c=['path','rimraf','../../config/environment','exports','define','ChatTransferReport','report_chat_transfer','uniqueid','lodash','api','moment','request-promise'];(function(_0x39f34f,_0x298f45){var _0x59fee1=function(_0x6ebbb7){while(--_0x6ebbb7){_0x39f34f['push'](_0x39f34f['shift']());}};_0x59fee1(++_0x298f45);}(_0xd16c,0x1dc));var _0xcd16=function(_0x1c7f76,_0x2fec34){_0x1c7f76=_0x1c7f76-0x0;var _0x2388d5=_0xd16c[_0x1c7f76];return _0x2388d5;};'use strict';var _=require(_0xcd16('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xcd16('0x1'));var moment=require(_0xcd16('0x2'));var BPromise=require('bluebird');var rp=require(_0xcd16('0x3'));var fs=require('fs');var path=require(_0xcd16('0x4'));var rimraf=require(_0xcd16('0x5'));var config=require(_0xcd16('0x6'));var attributes=require('./chatTransferReport.attributes');module[_0xcd16('0x7')]=function(_0x35a73e,_0x110f17){return _0x35a73e[_0xcd16('0x8')](_0xcd16('0x9'),attributes,{'tableName':_0xcd16('0xa'),'paranoid':![],'indexes':[{'name':_0xcd16('0xb'),'fields':[_0xcd16('0xb')]}],'timestamps':!![]});};