Built motion from commit (unavailable).|2.5.24
[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 _0x42be=['request-promise','path','../../config/environment','./cmHopperFinal.attributes','exports','define','CmHopperFinal','cm_hopper_final','calleridnum','uniqueid','util','api','moment'];(function(_0x132593,_0x12ade5){var _0x5ec3bd=function(_0x5dbdd2){while(--_0x5dbdd2){_0x132593['push'](_0x132593['shift']());}};_0x5ec3bd(++_0x12ade5);}(_0x42be,0x1d1));var _0xe42b=function(_0xcb6327,_0x35392a){_0xcb6327=_0xcb6327-0x0;var _0x3214b8=_0x42be[_0xcb6327];return _0x3214b8;};'use strict';var _=require('lodash');var util=require(_0xe42b('0x0'));var logger=require('../../config/logger')(_0xe42b('0x1'));var moment=require(_0xe42b('0x2'));var BPromise=require('bluebird');var rp=require(_0xe42b('0x3'));var fs=require('fs');var path=require(_0xe42b('0x4'));var rimraf=require('rimraf');var config=require(_0xe42b('0x5'));var attributes=require(_0xe42b('0x6'));module[_0xe42b('0x7')]=function(_0x221b0b,_0x3724fa){return _0x221b0b[_0xe42b('0x8')](_0xe42b('0x9'),attributes,{'tableName':_0xe42b('0xa'),'paranoid':![],'indexes':[{'name':_0xe42b('0xb'),'fields':[_0xe42b('0xb')]},{'name':'uniqueid','fields':[_0xe42b('0xc')]}],'timestamps':!![]});};