Built motion from commit (unavailable).|2.5.29
[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 _0x8a7a=['../../config/environment','./cmHopper.attributes','exports','define','CmHopper','cm_hopper','scheduledat','phone','priority','util','api','moment','bluebird','request-promise','path','rimraf'];(function(_0x58128a,_0x8ab991){var _0x56f353=function(_0x925531){while(--_0x925531){_0x58128a['push'](_0x58128a['shift']());}};_0x56f353(++_0x8ab991);}(_0x8a7a,0xf9));var _0xa8a7=function(_0xa4158a,_0x2404b9){_0xa4158a=_0xa4158a-0x0;var _0x59c7b6=_0x8a7a[_0xa4158a];return _0x59c7b6;};'use strict';var _=require('lodash');var util=require(_0xa8a7('0x0'));var logger=require('../../config/logger')(_0xa8a7('0x1'));var moment=require(_0xa8a7('0x2'));var BPromise=require(_0xa8a7('0x3'));var rp=require(_0xa8a7('0x4'));var fs=require('fs');var path=require(_0xa8a7('0x5'));var rimraf=require(_0xa8a7('0x6'));var config=require(_0xa8a7('0x7'));var attributes=require(_0xa8a7('0x8'));module[_0xa8a7('0x9')]=function(_0x454246,_0x17d0e2){return _0x454246[_0xa8a7('0xa')](_0xa8a7('0xb'),attributes,{'tableName':_0xa8a7('0xc'),'paranoid':![],'indexes':[{'name':_0xa8a7('0xd'),'fields':[_0xa8a7('0xd')]},{'name':_0xa8a7('0xe'),'fields':['phone']},{'name':_0xa8a7('0xf'),'fields':[_0xa8a7('0xf')]}],'timestamps':!![]});};