fca5a6aba5dd2772635c96cd0ae38013b7d755b8
[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 _0xd06e=['../../config/logger','api','bluebird','path','rimraf','../../config/environment','./chatTransferReport.attributes','exports','define','ChatTransferReport','report_chat_transfer','uniqueid','lodash','util'];(function(_0x52c4e9,_0x5412d0){var _0x252a03=function(_0x57857c){while(--_0x57857c){_0x52c4e9['push'](_0x52c4e9['shift']());}};_0x252a03(++_0x5412d0);}(_0xd06e,0x124));var _0xed06=function(_0x468428,_0x5c7844){_0x468428=_0x468428-0x0;var _0x3749ff=_0xd06e[_0x468428];return _0x3749ff;};'use strict';var _=require(_0xed06('0x0'));var util=require(_0xed06('0x1'));var logger=require(_0xed06('0x2'))(_0xed06('0x3'));var moment=require('moment');var BPromise=require(_0xed06('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xed06('0x5'));var rimraf=require(_0xed06('0x6'));var config=require(_0xed06('0x7'));var attributes=require(_0xed06('0x8'));module[_0xed06('0x9')]=function(_0x8efe03,_0x2af5aa){return _0x8efe03[_0xed06('0xa')](_0xed06('0xb'),attributes,{'tableName':_0xed06('0xc'),'paranoid':![],'indexes':[{'name':_0xed06('0xd'),'fields':['uniqueid']}],'timestamps':!![]});};