f22eb75d61b6bfe55d3fd4e56a45992573a6691c
[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 _0xa5a7=['path','../../config/environment','./chatTransferReport.attributes','ChatTransferReport','report_chat_transfer','uniqueid','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x2e840a,_0x4cd495){var _0xd7bdaf=function(_0x230a82){while(--_0x230a82){_0x2e840a['push'](_0x2e840a['shift']());}};_0xd7bdaf(++_0x4cd495);}(_0xa5a7,0x102));var _0x7a5a=function(_0x479904,_0x13fd2a){_0x479904=_0x479904-0x0;var _0x27ae1f=_0xa5a7[_0x479904];return _0x27ae1f;};'use strict';var _=require(_0x7a5a('0x0'));var util=require(_0x7a5a('0x1'));var logger=require(_0x7a5a('0x2'))(_0x7a5a('0x3'));var moment=require(_0x7a5a('0x4'));var BPromise=require(_0x7a5a('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x7a5a('0x6'));var rimraf=require('rimraf');var config=require(_0x7a5a('0x7'));var attributes=require(_0x7a5a('0x8'));module['exports']=function(_0x6d8df5,_0x311b6b){return _0x6d8df5['define'](_0x7a5a('0x9'),attributes,{'tableName':_0x7a5a('0xa'),'paranoid':![],'indexes':[{'name':_0x7a5a('0xb'),'fields':[_0x7a5a('0xb')]}],'timestamps':!![]});};