Built motion from commit (unavailable).|2.5.28
[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 _0xbf57=['define','CmHopper','cm_hopper','scheduledat','phone','priority','lodash','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment'];(function(_0x1b0c1f,_0x434b71){var _0x258ba3=function(_0x28e903){while(--_0x28e903){_0x1b0c1f['push'](_0x1b0c1f['shift']());}};_0x258ba3(++_0x434b71);}(_0xbf57,0xe7));var _0x7bf5=function(_0x106487,_0x23de58){_0x106487=_0x106487-0x0;var _0xc1da08=_0xbf57[_0x106487];return _0xc1da08;};'use strict';var _=require(_0x7bf5('0x0'));var util=require(_0x7bf5('0x1'));var logger=require(_0x7bf5('0x2'))(_0x7bf5('0x3'));var moment=require(_0x7bf5('0x4'));var BPromise=require(_0x7bf5('0x5'));var rp=require(_0x7bf5('0x6'));var fs=require('fs');var path=require('path');var rimraf=require(_0x7bf5('0x7'));var config=require(_0x7bf5('0x8'));var attributes=require('./cmHopper.attributes');module['exports']=function(_0x4ce8f1,_0xec4006){return _0x4ce8f1[_0x7bf5('0x9')](_0x7bf5('0xa'),attributes,{'tableName':_0x7bf5('0xb'),'paranoid':![],'indexes':[{'name':_0x7bf5('0xc'),'fields':[_0x7bf5('0xc')]},{'name':_0x7bf5('0xd'),'fields':['phone']},{'name':_0x7bf5('0xe'),'fields':[_0x7bf5('0xe')]}],'timestamps':!![]});};