Built motion from commit f7863d46.|2.5.41
[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 _0x9e93=['../../config/logger','api','moment','bluebird','request-promise','path','rimraf','./cmHopperFinal.attributes','exports','define','CmHopperFinal','cm_hopper_final','uniqueid','lodash','util'];(function(_0x182f0f,_0xfd5bb7){var _0xb571cf=function(_0x5c9d09){while(--_0x5c9d09){_0x182f0f['push'](_0x182f0f['shift']());}};_0xb571cf(++_0xfd5bb7);}(_0x9e93,0x166));var _0x39e9=function(_0x5ad0d7,_0x2645f8){_0x5ad0d7=_0x5ad0d7-0x0;var _0xd83bd=_0x9e93[_0x5ad0d7];return _0xd83bd;};'use strict';var _=require(_0x39e9('0x0'));var util=require(_0x39e9('0x1'));var logger=require(_0x39e9('0x2'))(_0x39e9('0x3'));var moment=require(_0x39e9('0x4'));var BPromise=require(_0x39e9('0x5'));var rp=require(_0x39e9('0x6'));var fs=require('fs');var path=require(_0x39e9('0x7'));var rimraf=require(_0x39e9('0x8'));var config=require('../../config/environment');var attributes=require(_0x39e9('0x9'));module[_0x39e9('0xa')]=function(_0x4e5590,_0x5c7336){return _0x4e5590[_0x39e9('0xb')](_0x39e9('0xc'),attributes,{'tableName':_0x39e9('0xd'),'paranoid':![],'indexes':[{'name':'calleridnum','fields':['calleridnum']},{'name':'uniqueid','fields':[_0x39e9('0xe')]}],'timestamps':!![]});};