Built motion from commit eddce310.|2.6.12
[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 _0x7976=['name_whatsapp','WhatsappAccountId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./disposition.attributes','define','Disposition','tools_dispositions','name_voice','name','ChatWebsiteId','name_mail','SmsAccountId','name_fax','name_openchannel'];(function(_0x161885,_0x1ae085){var _0x2ec8a2=function(_0x21e0ee){while(--_0x21e0ee){_0x161885['push'](_0x161885['shift']());}};_0x2ec8a2(++_0x1ae085);}(_0x7976,0x1ce));var _0x6797=function(_0x30433a,_0x5a717b){_0x30433a=_0x30433a-0x0;var _0x237f71=_0x7976[_0x30433a];return _0x237f71;};'use strict';var _=require(_0x6797('0x0'));var util=require(_0x6797('0x1'));var logger=require(_0x6797('0x2'))(_0x6797('0x3'));var moment=require(_0x6797('0x4'));var BPromise=require(_0x6797('0x5'));var rp=require(_0x6797('0x6'));var fs=require('fs');var path=require(_0x6797('0x7'));var rimraf=require(_0x6797('0x8'));var config=require(_0x6797('0x9'));var attributes=require(_0x6797('0xa'));module['exports']=function(_0x5a2a10,_0x4c9cc2){return _0x5a2a10[_0x6797('0xb')](_0x6797('0xc'),attributes,{'tableName':_0x6797('0xd'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x6797('0xe'),'fields':[_0x6797('0xf'),'ListId']},{'unique':!![],'name':'name_chat','fields':[_0x6797('0xf'),_0x6797('0x10')]},{'unique':!![],'name':_0x6797('0x11'),'fields':[_0x6797('0xf'),'MailAccountId']},{'unique':!![],'name':'name_sms','fields':['name',_0x6797('0x12')]},{'unique':!![],'name':_0x6797('0x13'),'fields':[_0x6797('0xf'),'FaxAccountId']},{'unique':!![],'name':_0x6797('0x14'),'fields':[_0x6797('0xf'),'OpenchannelAccountId']},{'unique':!![],'name':_0x6797('0x15'),'fields':['name',_0x6797('0x16')]}],'timestamps':!![]});};