Built motion from commit (unavailable).|2.5.18
[motion2.git] / server / api / disposition / disposition.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 _0x7fd6=['name_sms','SmsAccountId','FaxAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','lodash','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','define','Disposition','tools_dispositions','name_voice','name','ListId','name_chat','name_mail','MailAccountId'];(function(_0x1344d6,_0x2181e6){var _0xf45b24=function(_0x2d90c1){while(--_0x2d90c1){_0x1344d6['push'](_0x1344d6['shift']());}};_0xf45b24(++_0x2181e6);}(_0x7fd6,0x157));var _0x67fd=function(_0x31283e,_0x520f74){_0x31283e=_0x31283e-0x0;var _0x5b24c0=_0x7fd6[_0x31283e];return _0x5b24c0;};'use strict';var _=require(_0x67fd('0x0'));var util=require('util');var logger=require(_0x67fd('0x1'))(_0x67fd('0x2'));var moment=require(_0x67fd('0x3'));var BPromise=require(_0x67fd('0x4'));var rp=require(_0x67fd('0x5'));var fs=require('fs');var path=require(_0x67fd('0x6'));var rimraf=require('rimraf');var config=require(_0x67fd('0x7'));var attributes=require('./disposition.attributes');module['exports']=function(_0x49e35b,_0x57c327){return _0x49e35b[_0x67fd('0x8')](_0x67fd('0x9'),attributes,{'tableName':_0x67fd('0xa'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x67fd('0xb'),'fields':[_0x67fd('0xc'),_0x67fd('0xd')]},{'unique':!![],'name':_0x67fd('0xe'),'fields':[_0x67fd('0xc'),'ChatWebsiteId']},{'unique':!![],'name':_0x67fd('0xf'),'fields':[_0x67fd('0xc'),_0x67fd('0x10')]},{'unique':!![],'name':_0x67fd('0x11'),'fields':[_0x67fd('0xc'),_0x67fd('0x12')]},{'unique':!![],'name':'name_fax','fields':[_0x67fd('0xc'),_0x67fd('0x13')]},{'unique':!![],'name':_0x67fd('0x14'),'fields':[_0x67fd('0xc'),_0x67fd('0x15')]},{'unique':!![],'name':_0x67fd('0x16'),'fields':[_0x67fd('0xc'),_0x67fd('0x17')]}],'timestamps':!![]});};