Built motion from commit (unavailable).|2.5.31
[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 _0x5b00=['moment','request-promise','../../config/environment','./cmHopper.attributes','exports','define','CmHopper','cm_hopper','scheduledat','phone','priority','lodash','util','../../config/logger'];(function(_0x3f0cb9,_0x359058){var _0x428dd8=function(_0x353b2e){while(--_0x353b2e){_0x3f0cb9['push'](_0x3f0cb9['shift']());}};_0x428dd8(++_0x359058);}(_0x5b00,0xb3));var _0x05b0=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x5b00[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x05b0('0x0'));var util=require(_0x05b0('0x1'));var logger=require(_0x05b0('0x2'))('api');var moment=require(_0x05b0('0x3'));var BPromise=require('bluebird');var rp=require(_0x05b0('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x05b0('0x5'));var attributes=require(_0x05b0('0x6'));module[_0x05b0('0x7')]=function(_0x2f2a89,_0x189ec5){return _0x2f2a89[_0x05b0('0x8')](_0x05b0('0x9'),attributes,{'tableName':_0x05b0('0xa'),'paranoid':![],'indexes':[{'name':_0x05b0('0xb'),'fields':[_0x05b0('0xb')]},{'name':'phone','fields':[_0x05b0('0xc')]},{'name':_0x05b0('0xd'),'fields':['priority']}],'timestamps':!![]});};