Built motion from commit (unavailable).|2.5.4
[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 _0xfdef=['bluebird','path','rimraf','../../config/environment','./cmHopper.attributes','exports','define','CmHopper','cm_hopper','scheduledat','phone','priority','lodash','util'];(function(_0x46f6b8,_0x38d1b5){var _0x42ac20=function(_0x4ffb46){while(--_0x4ffb46){_0x46f6b8['push'](_0x46f6b8['shift']());}};_0x42ac20(++_0x38d1b5);}(_0xfdef,0x15c));var _0xffde=function(_0x5a11a6,_0x3016be){_0x5a11a6=_0x5a11a6-0x0;var _0x587761=_0xfdef[_0x5a11a6];return _0x587761;};'use strict';var _=require(_0xffde('0x0'));var util=require(_0xffde('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0xffde('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xffde('0x3'));var rimraf=require(_0xffde('0x4'));var config=require(_0xffde('0x5'));var attributes=require(_0xffde('0x6'));module[_0xffde('0x7')]=function(_0x2b47da,_0x242c16){return _0x2b47da[_0xffde('0x8')](_0xffde('0x9'),attributes,{'tableName':_0xffde('0xa'),'paranoid':![],'indexes':[{'name':_0xffde('0xb'),'fields':[_0xffde('0xb')]},{'name':_0xffde('0xc'),'fields':[_0xffde('0xc')]},{'name':'priority','fields':[_0xffde('0xd')]}],'timestamps':!![]});};