5dd018d3b9178cad13565dd8b643e08a72083744
[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 _0xadf5=['moment','bluebird','request-promise','path','../../config/environment','./cmHopper.attributes','exports','define','CmHopper','cm_hopper','scheduledat','phone','util','../../config/logger','api'];(function(_0x44a220,_0x1c594c){var _0x37a9eb=function(_0x53cb36){while(--_0x53cb36){_0x44a220['push'](_0x44a220['shift']());}};_0x37a9eb(++_0x1c594c);}(_0xadf5,0xa2));var _0x5adf=function(_0x25662e,_0x4cec68){_0x25662e=_0x25662e-0x0;var _0x59b7bc=_0xadf5[_0x25662e];return _0x59b7bc;};'use strict';var _=require('lodash');var util=require(_0x5adf('0x0'));var logger=require(_0x5adf('0x1'))(_0x5adf('0x2'));var moment=require(_0x5adf('0x3'));var BPromise=require(_0x5adf('0x4'));var rp=require(_0x5adf('0x5'));var fs=require('fs');var path=require(_0x5adf('0x6'));var rimraf=require('rimraf');var config=require(_0x5adf('0x7'));var attributes=require(_0x5adf('0x8'));module[_0x5adf('0x9')]=function(_0x1a0414,_0x28b3ba){return _0x1a0414[_0x5adf('0xa')](_0x5adf('0xb'),attributes,{'tableName':_0x5adf('0xc'),'paranoid':![],'indexes':[{'name':_0x5adf('0xd'),'fields':[_0x5adf('0xd')]},{'name':_0x5adf('0xe'),'fields':['phone']},{'name':'priority','fields':['priority']}],'timestamps':!![]});};