00233ec03d98b5f9cb4b294bc522dd1da3f2a949
[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 _0xa225=['moment','bluebird','request-promise','path','../../config/environment','./chatTransferReport.attributes','exports','ChatTransferReport','report_chat_transfer','uniqueid','lodash','util','../../config/logger','api'];(function(_0x2909de,_0x1accd9){var _0x2a1d54=function(_0x523e19){while(--_0x523e19){_0x2909de['push'](_0x2909de['shift']());}};_0x2a1d54(++_0x1accd9);}(_0xa225,0x1bc));var _0x5a22=function(_0x4f7fe0,_0x18201f){_0x4f7fe0=_0x4f7fe0-0x0;var _0x1e2851=_0xa225[_0x4f7fe0];return _0x1e2851;};'use strict';var _=require(_0x5a22('0x0'));var util=require(_0x5a22('0x1'));var logger=require(_0x5a22('0x2'))(_0x5a22('0x3'));var moment=require(_0x5a22('0x4'));var BPromise=require(_0x5a22('0x5'));var rp=require(_0x5a22('0x6'));var fs=require('fs');var path=require(_0x5a22('0x7'));var rimraf=require('rimraf');var config=require(_0x5a22('0x8'));var attributes=require(_0x5a22('0x9'));module[_0x5a22('0xa')]=function(_0x416929,_0x3a4076){return _0x416929['define'](_0x5a22('0xb'),attributes,{'tableName':_0x5a22('0xc'),'paranoid':![],'indexes':[{'name':_0x5a22('0xd'),'fields':['uniqueid']}],'timestamps':!![]});};