Built motion from commit (unavailable).|2.5.22
[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 _0xb939=['rimraf','../../config/environment','./cmHopper.attributes','exports','define','cm_hopper','scheduledat','phone','priority','lodash','util','api','moment','request-promise','path'];(function(_0x34ae18,_0x2f629e){var _0x9bf2ba=function(_0x3baeb3){while(--_0x3baeb3){_0x34ae18['push'](_0x34ae18['shift']());}};_0x9bf2ba(++_0x2f629e);}(_0xb939,0x1ad));var _0x9b93=function(_0x24cbed,_0x2bb38c){_0x24cbed=_0x24cbed-0x0;var _0x1537e7=_0xb939[_0x24cbed];return _0x1537e7;};'use strict';var _=require(_0x9b93('0x0'));var util=require(_0x9b93('0x1'));var logger=require('../../config/logger')(_0x9b93('0x2'));var moment=require(_0x9b93('0x3'));var BPromise=require('bluebird');var rp=require(_0x9b93('0x4'));var fs=require('fs');var path=require(_0x9b93('0x5'));var rimraf=require(_0x9b93('0x6'));var config=require(_0x9b93('0x7'));var attributes=require(_0x9b93('0x8'));module[_0x9b93('0x9')]=function(_0x3e2299,_0x4321f8){return _0x3e2299[_0x9b93('0xa')]('CmHopper',attributes,{'tableName':_0x9b93('0xb'),'paranoid':![],'indexes':[{'name':_0x9b93('0xc'),'fields':[_0x9b93('0xc')]},{'name':_0x9b93('0xd'),'fields':[_0x9b93('0xd')]},{'name':_0x9b93('0xe'),'fields':[_0x9b93('0xe')]}],'timestamps':!![]});};