Built motion from commit (unavailable).|2.5.0
[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 _0x395a=['api','bluebird','request-promise','path','rimraf','../../config/environment','exports','CmHopperFinal','cm_hopper_final','calleridnum','uniqueid','../../config/logger'];(function(_0x55a511,_0x2ec93d){var _0x52dc79=function(_0x1425bb){while(--_0x1425bb){_0x55a511['push'](_0x55a511['shift']());}};_0x52dc79(++_0x2ec93d);}(_0x395a,0x83));var _0xa395=function(_0x1e3671,_0x9ae4fc){_0x1e3671=_0x1e3671-0x0;var _0x48d5f5=_0x395a[_0x1e3671];return _0x48d5f5;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xa395('0x0'))(_0xa395('0x1'));var moment=require('moment');var BPromise=require(_0xa395('0x2'));var rp=require(_0xa395('0x3'));var fs=require('fs');var path=require(_0xa395('0x4'));var rimraf=require(_0xa395('0x5'));var config=require(_0xa395('0x6'));var attributes=require('./cmHopperFinal.attributes');module[_0xa395('0x7')]=function(_0x5bd0f9,_0x11270b){return _0x5bd0f9['define'](_0xa395('0x8'),attributes,{'tableName':_0xa395('0x9'),'paranoid':![],'indexes':[{'name':_0xa395('0xa'),'fields':['calleridnum']},{'name':_0xa395('0xb'),'fields':[_0xa395('0xb')]}],'timestamps':!![]});};