Built motion from commit 3c2ce842.|2.6.31
[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 _0xe09a=['path','../../config/environment','exports','define','ChatTransferReport','report_chat_transfer','uniqueid','lodash','util','api','moment','bluebird','request-promise'];(function(_0x2a56ad,_0x2b94bf){var _0x425175=function(_0x342f20){while(--_0x342f20){_0x2a56ad['push'](_0x2a56ad['shift']());}};_0x425175(++_0x2b94bf);}(_0xe09a,0x180));var _0xae09=function(_0xbca1b1,_0x33f0ce){_0xbca1b1=_0xbca1b1-0x0;var _0x4e1686=_0xe09a[_0xbca1b1];return _0x4e1686;};'use strict';var _=require(_0xae09('0x0'));var util=require(_0xae09('0x1'));var logger=require('../../config/logger')(_0xae09('0x2'));var moment=require(_0xae09('0x3'));var BPromise=require(_0xae09('0x4'));var rp=require(_0xae09('0x5'));var fs=require('fs');var path=require(_0xae09('0x6'));var rimraf=require('rimraf');var config=require(_0xae09('0x7'));var attributes=require('./chatTransferReport.attributes');module[_0xae09('0x8')]=function(_0x3008e9,_0x340ce4){return _0x3008e9[_0xae09('0x9')](_0xae09('0xa'),attributes,{'tableName':_0xae09('0xb'),'paranoid':![],'indexes':[{'name':_0xae09('0xc'),'fields':[_0xae09('0xc')]}],'timestamps':!![]});};