Built motion from commit (unavailable).|2.4.18
[motion2.git] / server / api / cmHopper / cmHopper.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 _0x93b4=['bluebird','path','rimraf','../../config/environment','./cmHopper.attributes','exports','define','CmHopper','cm_hopper','scheduledat','phone','priority','lodash','util','../../config/logger','api','moment'];(function(_0x288b36,_0x527364){var _0x486645=function(_0x59912f){while(--_0x59912f){_0x288b36['push'](_0x288b36['shift']());}};_0x486645(++_0x527364);}(_0x93b4,0xe9));var _0x493b=function(_0x2b7ba3,_0x3eb26a){_0x2b7ba3=_0x2b7ba3-0x0;var _0x2d189f=_0x93b4[_0x2b7ba3];return _0x2d189f;};'use strict';var _=require(_0x493b('0x0'));var util=require(_0x493b('0x1'));var logger=require(_0x493b('0x2'))(_0x493b('0x3'));var moment=require(_0x493b('0x4'));var BPromise=require(_0x493b('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x493b('0x6'));var rimraf=require(_0x493b('0x7'));var config=require(_0x493b('0x8'));var attributes=require(_0x493b('0x9'));module[_0x493b('0xa')]=function(_0x3342dc,_0x28d656){return _0x3342dc[_0x493b('0xb')](_0x493b('0xc'),attributes,{'tableName':_0x493b('0xd'),'paranoid':![],'indexes':[{'name':_0x493b('0xe'),'fields':[_0x493b('0xe')]},{'name':_0x493b('0xf'),'fields':[_0x493b('0xf')]},{'name':_0x493b('0x10'),'fields':[_0x493b('0x10')]}],'timestamps':!![]});};