Built motion from commit da617fac.|2.6.6
[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 _0xfb4b=['../../config/logger','api','bluebird','path','rimraf','../../config/environment','./cmHopperFinal.attributes','exports','define','CmHopperFinal','calleridnum','uniqueid','util'];(function(_0x5807c9,_0x556d63){var _0xe912f6=function(_0x1c63fb){while(--_0x1c63fb){_0x5807c9['push'](_0x5807c9['shift']());}};_0xe912f6(++_0x556d63);}(_0xfb4b,0x192));var _0xbfb4=function(_0x3ebdb3,_0x38f046){_0x3ebdb3=_0x3ebdb3-0x0;var _0x82ed19=_0xfb4b[_0x3ebdb3];return _0x82ed19;};'use strict';var _=require('lodash');var util=require(_0xbfb4('0x0'));var logger=require(_0xbfb4('0x1'))(_0xbfb4('0x2'));var moment=require('moment');var BPromise=require(_0xbfb4('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xbfb4('0x4'));var rimraf=require(_0xbfb4('0x5'));var config=require(_0xbfb4('0x6'));var attributes=require(_0xbfb4('0x7'));module[_0xbfb4('0x8')]=function(_0x525b26,_0x3dce2f){return _0x525b26[_0xbfb4('0x9')](_0xbfb4('0xa'),attributes,{'tableName':'cm_hopper_final','paranoid':![],'indexes':[{'name':_0xbfb4('0xb'),'fields':[_0xbfb4('0xb')]},{'name':_0xbfb4('0xc'),'fields':[_0xbfb4('0xc')]}],'timestamps':!![]});};