Built motion from commit (unavailable).|2.5.30
[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 _0xe4d3=['rimraf','./cmHopperFinal.attributes','exports','define','CmHopperFinal','cm_hopper_final','calleridnum','uniqueid','util','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x591f88,_0x3e0cd1){var _0x5541e6=function(_0x2a04a4){while(--_0x2a04a4){_0x591f88['push'](_0x591f88['shift']());}};_0x5541e6(++_0x3e0cd1);}(_0xe4d3,0xbc));var _0x3e4d=function(_0x38ad44,_0x1f6663){_0x38ad44=_0x38ad44-0x0;var _0x3ecb0b=_0xe4d3[_0x38ad44];return _0x3ecb0b;};'use strict';var _=require('lodash');var util=require(_0x3e4d('0x0'));var logger=require(_0x3e4d('0x1'))(_0x3e4d('0x2'));var moment=require(_0x3e4d('0x3'));var BPromise=require(_0x3e4d('0x4'));var rp=require(_0x3e4d('0x5'));var fs=require('fs');var path=require(_0x3e4d('0x6'));var rimraf=require(_0x3e4d('0x7'));var config=require('../../config/environment');var attributes=require(_0x3e4d('0x8'));module[_0x3e4d('0x9')]=function(_0x3541ef,_0x55624c){return _0x3541ef[_0x3e4d('0xa')](_0x3e4d('0xb'),attributes,{'tableName':_0x3e4d('0xc'),'paranoid':![],'indexes':[{'name':'calleridnum','fields':[_0x3e4d('0xd')]},{'name':_0x3e4d('0xe'),'fields':[_0x3e4d('0xe')]}],'timestamps':!![]});};