f3d64ae157ab90126a9f086542289f39c3eff9b0
[motion2.git] / server / api / cmHopperFinal / cmHopperFinal.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 _0x584f=['moment','bluebird','request-promise','path','./cmHopperFinal.attributes','exports','define','CmHopperFinal','cm_hopper_final','calleridnum','uniqueid','lodash','util','api'];(function(_0x58efa6,_0x2c00bd){var _0x5d643c=function(_0x1d1ef2){while(--_0x1d1ef2){_0x58efa6['push'](_0x58efa6['shift']());}};_0x5d643c(++_0x2c00bd);}(_0x584f,0xf9));var _0xf584=function(_0x9ebaa3,_0x4c6efd){_0x9ebaa3=_0x9ebaa3-0x0;var _0x543241=_0x584f[_0x9ebaa3];return _0x543241;};'use strict';var _=require(_0xf584('0x0'));var util=require(_0xf584('0x1'));var logger=require('../../config/logger')(_0xf584('0x2'));var moment=require(_0xf584('0x3'));var BPromise=require(_0xf584('0x4'));var rp=require(_0xf584('0x5'));var fs=require('fs');var path=require(_0xf584('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xf584('0x7'));module[_0xf584('0x8')]=function(_0x4021cd,_0x517780){return _0x4021cd[_0xf584('0x9')](_0xf584('0xa'),attributes,{'tableName':_0xf584('0xb'),'paranoid':![],'indexes':[{'name':_0xf584('0xc'),'fields':[_0xf584('0xc')]},{'name':_0xf584('0xd'),'fields':['uniqueid']}],'timestamps':!![]});};