115b335bae0b773a2fc45f785b5243594f088c71
[motion2.git] / server / api / cannedAnswer / cannedAnswer.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 _0xb63a=['utf8mb4_unicode_ci','lodash','util','api','moment','bluebird','path','rimraf','../../config/environment','./cannedAnswer.attributes','define','CannedAnswer','tools_canned_answers','utf8mb4'];(function(_0x33f764,_0x545987){var _0x491a5a=function(_0x107e44){while(--_0x107e44){_0x33f764['push'](_0x33f764['shift']());}};_0x491a5a(++_0x545987);}(_0xb63a,0x135));var _0xab63=function(_0x51a6d6,_0x3c9c49){_0x51a6d6=_0x51a6d6-0x0;var _0x5ef1a8=_0xb63a[_0x51a6d6];return _0x5ef1a8;};'use strict';var _=require(_0xab63('0x0'));var util=require(_0xab63('0x1'));var logger=require('../../config/logger')(_0xab63('0x2'));var moment=require(_0xab63('0x3'));var BPromise=require(_0xab63('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xab63('0x5'));var rimraf=require(_0xab63('0x6'));var config=require(_0xab63('0x7'));var attributes=require(_0xab63('0x8'));module['exports']=function(_0x127ccd,_0x881bbe){return _0x127ccd[_0xab63('0x9')](_0xab63('0xa'),attributes,{'tableName':_0xab63('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xab63('0xc'),'collate':_0xab63('0xd')});};